diff --git a/packages/components/credentials/PubrioApi.credential.ts b/packages/components/credentials/PubrioApi.credential.ts new file mode 100644 index 00000000000..949117f4c76 --- /dev/null +++ b/packages/components/credentials/PubrioApi.credential.ts @@ -0,0 +1,26 @@ +import { INodeParams, INodeCredential } from '../src/Interface' + +class PubrioApi implements INodeCredential { + label: string + name: string + version: number + description: string + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio API' + this.name = 'pubrioApi' + this.version = 1.0 + this.description = + 'Get your API key from dashboard.pubrio.com' + this.inputs = [ + { + label: 'Pubrio API Key', + name: 'pubrioApiKey', + type: 'password' + } + ] + } +} + +module.exports = { credClass: PubrioApi } diff --git a/packages/components/nodes/tools/Pubrio/PubrioAdLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioAdLookup.ts new file mode 100644 index 00000000000..d13d842269c --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioAdLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioAdLookup } from '@pubrio/langchain-tools' + +class PubrioAdLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup Advertisement' + this.name = 'pubrioAdLookup' + this.version = 1.0 + this.type = 'PubrioAdLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up detailed information about a specific advertisement' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioAdLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioAdLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioAdSearch.ts b/packages/components/nodes/tools/Pubrio/PubrioAdSearch.ts new file mode 100644 index 00000000000..c49b1571c85 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioAdSearch.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioAdSearch } from '@pubrio/langchain-tools' + +class PubrioAdSearch_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Ads' + this.name = 'pubrioAdSearch' + this.version = 1.0 + this.type = 'PubrioAdSearch' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search company advertisements by keyword, headline, and target location' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioAdSearch({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioAdSearch_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioBatchRedeemContacts.ts b/packages/components/nodes/tools/Pubrio/PubrioBatchRedeemContacts.ts new file mode 100644 index 00000000000..88fea402723 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioBatchRedeemContacts.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioBatchRedeemContacts } from '@pubrio/langchain-tools' + +class PubrioBatchRedeemContacts_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Batch Redeem Contacts' + this.name = 'pubrioBatchRedeemContacts' + this.version = 1.0 + this.type = 'PubrioBatchRedeemContacts' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Batch reveal contacts for multiple people at once (uses credits)' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioBatchRedeemContacts({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioBatchRedeemContacts_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioCompanyEnrich.ts b/packages/components/nodes/tools/Pubrio/PubrioCompanyEnrich.ts new file mode 100644 index 00000000000..641807ce755 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioCompanyEnrich.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioCompanyEnrich } from '@pubrio/langchain-tools' + +class PubrioCompanyEnrich_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Enrich Company' + this.name = 'pubrioCompanyEnrich' + this.version = 1.0 + this.type = 'PubrioCompanyEnrich' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Enrich a company with full firmographic data (uses credits)' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioCompanyEnrich({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioCompanyEnrich_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioCompanyLinkedInLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioCompanyLinkedInLookup.ts new file mode 100644 index 00000000000..3b8d42dafd5 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioCompanyLinkedInLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioCompanyLinkedInLookup } from '@pubrio/langchain-tools' + +class PubrioCompanyLinkedInLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio LinkedIn Company Lookup' + this.name = 'pubrioCompanyLinkedInLookup' + this.version = 1.0 + this.type = 'PubrioCompanyLinkedInLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up a company by its LinkedIn URL' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioCompanyLinkedInLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioCompanyLinkedInLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioCompanyLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioCompanyLookup.ts new file mode 100644 index 00000000000..18d320753c2 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioCompanyLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioCompanyLookup } from '@pubrio/langchain-tools' + +class PubrioCompanyLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup Company' + this.name = 'pubrioCompanyLookup' + this.version = 1.0 + this.type = 'PubrioCompanyLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up detailed company information by domain, LinkedIn URL, or ID' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioCompanyLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioCompanyLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioCreateMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioCreateMonitor.ts new file mode 100644 index 00000000000..12ea735a29b --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioCreateMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioCreateMonitor } from '@pubrio/langchain-tools' + +class PubrioCreateMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Create Monitor' + this.name = 'pubrioCreateMonitor' + this.version = 1.0 + this.type = 'PubrioCreateMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Create a new signal monitor for jobs, news, or advertisements' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioCreateMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioCreateMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioDeleteMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioDeleteMonitor.ts new file mode 100644 index 00000000000..303961bcc58 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioDeleteMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioDeleteMonitor } from '@pubrio/langchain-tools' + +class PubrioDeleteMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Delete Monitor' + this.name = 'pubrioDeleteMonitor' + this.version = 1.0 + this.type = 'PubrioDeleteMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Delete a monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioDeleteMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioDeleteMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioDuplicateMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioDuplicateMonitor.ts new file mode 100644 index 00000000000..5ce6ea31221 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioDuplicateMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioDuplicateMonitor } from '@pubrio/langchain-tools' + +class PubrioDuplicateMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Duplicate Monitor' + this.name = 'pubrioDuplicateMonitor' + this.version = 1.0 + this.type = 'PubrioDuplicateMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Duplicate an existing monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioDuplicateMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioDuplicateMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioFindSimilarCompanies.ts b/packages/components/nodes/tools/Pubrio/PubrioFindSimilarCompanies.ts new file mode 100644 index 00000000000..7daa8952482 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioFindSimilarCompanies.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioFindSimilarCompanies } from '@pubrio/langchain-tools' + +class PubrioFindSimilarCompanies_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Find Similar Companies' + this.name = 'pubrioFindSimilarCompanies' + this.version = 1.0 + this.type = 'PubrioFindSimilarCompanies' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Find lookalike companies similar to a given company' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioFindSimilarCompanies({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioFindSimilarCompanies_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetCompanySizes.ts b/packages/components/nodes/tools/Pubrio/PubrioGetCompanySizes.ts new file mode 100644 index 00000000000..3d3ebcf6807 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetCompanySizes.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetCompanySizes } from '@pubrio/langchain-tools' + +class PubrioGetCompanySizes_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Company Sizes' + this.name = 'pubrioGetCompanySizes' + this.version = 1.0 + this.type = 'PubrioGetCompanySizes' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all company size range codes for search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetCompanySizes({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetCompanySizes_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetDepartmentFunctions.ts b/packages/components/nodes/tools/Pubrio/PubrioGetDepartmentFunctions.ts new file mode 100644 index 00000000000..a44d049bde2 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetDepartmentFunctions.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetDepartmentFunctions } from '@pubrio/langchain-tools' + +class PubrioGetDepartmentFunctions_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Department Functions' + this.name = 'pubrioGetDepartmentFunctions' + this.version = 1.0 + this.type = 'PubrioGetDepartmentFunctions' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all department function codes for people search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetDepartmentFunctions({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetDepartmentFunctions_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetDepartments.ts b/packages/components/nodes/tools/Pubrio/PubrioGetDepartments.ts new file mode 100644 index 00000000000..c82086dd3ae --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetDepartments.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetDepartments } from '@pubrio/langchain-tools' + +class PubrioGetDepartments_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Departments' + this.name = 'pubrioGetDepartments' + this.version = 1.0 + this.type = 'PubrioGetDepartments' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all department title codes for people search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetDepartments({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetDepartments_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetLocations.ts b/packages/components/nodes/tools/Pubrio/PubrioGetLocations.ts new file mode 100644 index 00000000000..94800c42b4b --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetLocations.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetLocations } from '@pubrio/langchain-tools' + +class PubrioGetLocations_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Locations' + this.name = 'pubrioGetLocations' + this.version = 1.0 + this.type = 'PubrioGetLocations' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all available location codes for search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetLocations({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetLocations_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetManagementLevels.ts b/packages/components/nodes/tools/Pubrio/PubrioGetManagementLevels.ts new file mode 100644 index 00000000000..f541f8f0706 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetManagementLevels.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetManagementLevels } from '@pubrio/langchain-tools' + +class PubrioGetManagementLevels_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Management Levels' + this.name = 'pubrioGetManagementLevels' + this.version = 1.0 + this.type = 'PubrioGetManagementLevels' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all management/seniority level codes for people search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetManagementLevels({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetManagementLevels_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioGetMonitor.ts new file mode 100644 index 00000000000..03437b394f1 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetMonitor } from '@pubrio/langchain-tools' + +class PubrioGetMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Monitor' + this.name = 'pubrioGetMonitor' + this.version = 1.0 + this.type = 'PubrioGetMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get details of a specific monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetMonitorChart.ts b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorChart.ts new file mode 100644 index 00000000000..00b8868a921 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorChart.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetMonitorChart } from '@pubrio/langchain-tools' + +class PubrioGetMonitorChart_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Monitor Chart' + this.name = 'pubrioGetMonitorChart' + this.version = 1.0 + this.type = 'PubrioGetMonitorChart' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get daily trigger chart data for a monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetMonitorChart({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetMonitorChart_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogDetail.ts b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogDetail.ts new file mode 100644 index 00000000000..bf17ccd8482 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogDetail.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetMonitorLogDetail } from '@pubrio/langchain-tools' + +class PubrioGetMonitorLogDetail_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Monitor Log Detail' + this.name = 'pubrioGetMonitorLogDetail' + this.version = 1.0 + this.type = 'PubrioGetMonitorLogDetail' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get details of a specific log entry' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetMonitorLogDetail({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetMonitorLogDetail_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogs.ts b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogs.ts new file mode 100644 index 00000000000..ebe25d530e6 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorLogs.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetMonitorLogs } from '@pubrio/langchain-tools' + +class PubrioGetMonitorLogs_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Monitor Logs' + this.name = 'pubrioGetMonitorLogs' + this.version = 1.0 + this.type = 'PubrioGetMonitorLogs' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get trigger logs for a monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetMonitorLogs({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetMonitorLogs_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetMonitorStats.ts b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorStats.ts new file mode 100644 index 00000000000..06390b53f0f --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetMonitorStats.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetMonitorStats } from '@pubrio/langchain-tools' + +class PubrioGetMonitorStats_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Monitor Stats' + this.name = 'pubrioGetMonitorStats' + this.version = 1.0 + this.type = 'PubrioGetMonitorStats' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get aggregate statistics across monitors' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetMonitorStats({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetMonitorStats_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetNewsCategories.ts b/packages/components/nodes/tools/Pubrio/PubrioGetNewsCategories.ts new file mode 100644 index 00000000000..a9cc9ade7a1 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetNewsCategories.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetNewsCategories } from '@pubrio/langchain-tools' + +class PubrioGetNewsCategories_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get News Categories' + this.name = 'pubrioGetNewsCategories' + this.version = 1.0 + this.type = 'PubrioGetNewsCategories' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all news category codes for news search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetNewsCategories({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetNewsCategories_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetNewsGalleries.ts b/packages/components/nodes/tools/Pubrio/PubrioGetNewsGalleries.ts new file mode 100644 index 00000000000..c2335289eb1 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetNewsGalleries.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetNewsGalleries } from '@pubrio/langchain-tools' + +class PubrioGetNewsGalleries_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get News Galleries' + this.name = 'pubrioGetNewsGalleries' + this.version = 1.0 + this.type = 'PubrioGetNewsGalleries' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all news gallery codes for news search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetNewsGalleries({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetNewsGalleries_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetNewsLanguages.ts b/packages/components/nodes/tools/Pubrio/PubrioGetNewsLanguages.ts new file mode 100644 index 00000000000..88875f946b7 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetNewsLanguages.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetNewsLanguages } from '@pubrio/langchain-tools' + +class PubrioGetNewsLanguages_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get News Languages' + this.name = 'pubrioGetNewsLanguages' + this.version = 1.0 + this.type = 'PubrioGetNewsLanguages' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all news language codes for news search filters' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetNewsLanguages({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetNewsLanguages_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetProfile.ts b/packages/components/nodes/tools/Pubrio/PubrioGetProfile.ts new file mode 100644 index 00000000000..d46fdbe3a3f --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetProfile.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetProfile } from '@pubrio/langchain-tools' + +class PubrioGetProfile_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Profile' + this.name = 'pubrioGetProfile' + this.version = 1.0 + this.type = 'PubrioGetProfile' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get account profile information' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetProfile({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetProfile_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetTimezones.ts b/packages/components/nodes/tools/Pubrio/PubrioGetTimezones.ts new file mode 100644 index 00000000000..5d1f0c7081a --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetTimezones.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetTimezones } from '@pubrio/langchain-tools' + +class PubrioGetTimezones_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Timezones' + this.name = 'pubrioGetTimezones' + this.version = 1.0 + this.type = 'PubrioGetTimezones' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get all available timezone codes' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetTimezones({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetTimezones_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioGetUsage.ts b/packages/components/nodes/tools/Pubrio/PubrioGetUsage.ts new file mode 100644 index 00000000000..aacbe2b2f17 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioGetUsage.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioGetUsage } from '@pubrio/langchain-tools' + +class PubrioGetUsage_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Get Usage' + this.name = 'pubrioGetUsage' + this.version = 1.0 + this.type = 'PubrioGetUsage' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Get credit usage and subscription info' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioGetUsage({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioGetUsage_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioJobLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioJobLookup.ts new file mode 100644 index 00000000000..0dce993c766 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioJobLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioJobLookup } from '@pubrio/langchain-tools' + +class PubrioJobLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup Job' + this.name = 'pubrioJobLookup' + this.version = 1.0 + this.type = 'PubrioJobLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up detailed information about a specific job posting' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioJobLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioJobLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioJobSearch.ts b/packages/components/nodes/tools/Pubrio/PubrioJobSearch.ts new file mode 100644 index 00000000000..e9eca1327f7 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioJobSearch.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioJobSearch } from '@pubrio/langchain-tools' + +class PubrioJobSearch_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Jobs' + this.name = 'pubrioJobSearch' + this.version = 1.0 + this.type = 'PubrioJobSearch' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search job postings by title, location, keyword, company, and date' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioJobSearch({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioJobSearch_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioListMonitors.ts b/packages/components/nodes/tools/Pubrio/PubrioListMonitors.ts new file mode 100644 index 00000000000..21a8a24a228 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioListMonitors.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioListMonitors } from '@pubrio/langchain-tools' + +class PubrioListMonitors_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio List Monitors' + this.name = 'pubrioListMonitors' + this.version = 1.0 + this.type = 'PubrioListMonitors' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'List all monitors with pagination' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioListMonitors({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioListMonitors_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioLookalikeLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioLookalikeLookup.ts new file mode 100644 index 00000000000..f2eb7382668 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioLookalikeLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioLookalikeLookup } from '@pubrio/langchain-tools' + +class PubrioLookalikeLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookalike Lookup' + this.name = 'pubrioLookalikeLookup' + this.version = 1.0 + this.type = 'PubrioLookalikeLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up a lookalike company result by ID' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioLookalikeLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioLookalikeLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioNewsLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioNewsLookup.ts new file mode 100644 index 00000000000..2d607fda9d0 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioNewsLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioNewsLookup } from '@pubrio/langchain-tools' + +class PubrioNewsLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup News' + this.name = 'pubrioNewsLookup' + this.version = 1.0 + this.type = 'PubrioNewsLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up detailed information about a specific news article' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioNewsLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioNewsLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioNewsSearch.ts b/packages/components/nodes/tools/Pubrio/PubrioNewsSearch.ts new file mode 100644 index 00000000000..e8e3749ad93 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioNewsSearch.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioNewsSearch } from '@pubrio/langchain-tools' + +class PubrioNewsSearch_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search News' + this.name = 'pubrioNewsSearch' + this.version = 1.0 + this.type = 'PubrioNewsSearch' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search company news and press releases by category, location, and date' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioNewsSearch({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioNewsSearch_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioPersonEnrich.ts b/packages/components/nodes/tools/Pubrio/PubrioPersonEnrich.ts new file mode 100644 index 00000000000..e8375623e1d --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioPersonEnrich.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioPersonEnrich } from '@pubrio/langchain-tools' + +class PubrioPersonEnrich_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Enrich Person' + this.name = 'pubrioPersonEnrich' + this.version = 1.0 + this.type = 'PubrioPersonEnrich' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Enrich a person with full professional details (uses credits)' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioPersonEnrich({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioPersonEnrich_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioPersonLinkedInLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioPersonLinkedInLookup.ts new file mode 100644 index 00000000000..6b8d8f1b4e6 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioPersonLinkedInLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioPersonLinkedInLookup } from '@pubrio/langchain-tools' + +class PubrioPersonLinkedInLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio LinkedIn Person Lookup' + this.name = 'pubrioPersonLinkedInLookup' + this.version = 1.0 + this.type = 'PubrioPersonLinkedInLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Real-time LinkedIn person lookup by URL' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioPersonLinkedInLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioPersonLinkedInLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioPersonLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioPersonLookup.ts new file mode 100644 index 00000000000..54256954ddc --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioPersonLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioPersonLookup } from '@pubrio/langchain-tools' + +class PubrioPersonLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup Person' + this.name = 'pubrioPersonLookup' + this.version = 1.0 + this.type = 'PubrioPersonLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up a person by LinkedIn URL or people search ID' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioPersonLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioPersonLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioQueryBatchRedeem.ts b/packages/components/nodes/tools/Pubrio/PubrioQueryBatchRedeem.ts new file mode 100644 index 00000000000..171ffc5473c --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioQueryBatchRedeem.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioQueryBatchRedeem } from '@pubrio/langchain-tools' + +class PubrioQueryBatchRedeem_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Query Batch Redeem' + this.name = 'pubrioQueryBatchRedeem' + this.version = 1.0 + this.type = 'PubrioQueryBatchRedeem' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Check the status and results of a batch contact reveal' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioQueryBatchRedeem({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioQueryBatchRedeem_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioRetryMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioRetryMonitor.ts new file mode 100644 index 00000000000..4cdb5465c37 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioRetryMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioRetryMonitor } from '@pubrio/langchain-tools' + +class PubrioRetryMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Retry Monitor' + this.name = 'pubrioRetryMonitor' + this.version = 1.0 + this.type = 'PubrioRetryMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Retry a failed monitor trigger' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioRetryMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioRetryMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioRevealContact.ts b/packages/components/nodes/tools/Pubrio/PubrioRevealContact.ts new file mode 100644 index 00000000000..b8977a65bb0 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioRevealContact.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioRevealContact } from '@pubrio/langchain-tools' + +class PubrioRevealContact_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Reveal Contact' + this.name = 'pubrioRevealContact' + this.version = 1.0 + this.type = 'PubrioRevealContact' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Reveal verified email or phone for a person (uses credits)' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioRevealContact({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioRevealContact_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioRevealMonitorSignature.ts b/packages/components/nodes/tools/Pubrio/PubrioRevealMonitorSignature.ts new file mode 100644 index 00000000000..923368ecb64 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioRevealMonitorSignature.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioRevealMonitorSignature } from '@pubrio/langchain-tools' + +class PubrioRevealMonitorSignature_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Reveal Monitor Signature' + this.name = 'pubrioRevealMonitorSignature' + this.version = 1.0 + this.type = 'PubrioRevealMonitorSignature' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Reveal webhook signature secret for a monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioRevealMonitorSignature({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioRevealMonitorSignature_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchCompanies.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchCompanies.ts new file mode 100644 index 00000000000..24581457d93 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchCompanies.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioCompanySearch } from '@pubrio/langchain-tools' + +class PubrioSearchCompanies_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Companies' + this.name = 'pubrioSearchCompanies' + this.version = 1.0 + this.type = 'PubrioSearchCompanies' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search B2B companies by name, domain, location, industry, technology, headcount, revenue, and more' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioCompanySearch({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchCompanies_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchPeople.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchPeople.ts new file mode 100644 index 00000000000..0ccc64189a5 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchPeople.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioPersonSearch } from '@pubrio/langchain-tools' + +class PubrioSearchPeople_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search People' + this.name = 'pubrioSearchPeople' + this.version = 1.0 + this.type = 'PubrioSearchPeople' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search business professionals by name, title, department, seniority, location, and company' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioPersonSearch({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchPeople_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologies.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologies.ts new file mode 100644 index 00000000000..0e79877e8fe --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologies.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioSearchTechnologies } from '@pubrio/langchain-tools' + +class PubrioSearchTechnologies_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Technologies' + this.name = 'pubrioSearchTechnologies' + this.version = 1.0 + this.type = 'PubrioSearchTechnologies' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search technology names by keyword' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioSearchTechnologies({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchTechnologies_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologyCategories.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologyCategories.ts new file mode 100644 index 00000000000..cd6ca3f94d1 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchTechnologyCategories.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioSearchTechnologyCategories } from '@pubrio/langchain-tools' + +class PubrioSearchTechnologyCategories_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Technology Categories' + this.name = 'pubrioSearchTechnologyCategories' + this.version = 1.0 + this.type = 'PubrioSearchTechnologyCategories' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search technology categories by keyword' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioSearchTechnologyCategories({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchTechnologyCategories_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalCategories.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalCategories.ts new file mode 100644 index 00000000000..5413abc7226 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalCategories.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioSearchVerticalCategories } from '@pubrio/langchain-tools' + +class PubrioSearchVerticalCategories_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Vertical Categories' + this.name = 'pubrioSearchVerticalCategories' + this.version = 1.0 + this.type = 'PubrioSearchVerticalCategories' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search vertical categories by keyword' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioSearchVerticalCategories({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchVerticalCategories_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalSubCategories.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalSubCategories.ts new file mode 100644 index 00000000000..6c3990925c6 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticalSubCategories.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioSearchVerticalSubCategories } from '@pubrio/langchain-tools' + +class PubrioSearchVerticalSubCategories_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Vertical Sub-Categories' + this.name = 'pubrioSearchVerticalSubCategories' + this.version = 1.0 + this.type = 'PubrioSearchVerticalSubCategories' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search vertical sub-categories by keyword' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioSearchVerticalSubCategories({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchVerticalSubCategories_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioSearchVerticals.ts b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticals.ts new file mode 100644 index 00000000000..1c1cb1b010d --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioSearchVerticals.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioSearchVerticals } from '@pubrio/langchain-tools' + +class PubrioSearchVerticals_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Search Verticals' + this.name = 'pubrioSearchVerticals' + this.version = 1.0 + this.type = 'PubrioSearchVerticals' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Search industry verticals by keyword' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioSearchVerticals({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioSearchVerticals_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioTechnologyLookup.ts b/packages/components/nodes/tools/Pubrio/PubrioTechnologyLookup.ts new file mode 100644 index 00000000000..13fb6ec6d91 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioTechnologyLookup.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioTechnologyLookup } from '@pubrio/langchain-tools' + +class PubrioTechnologyLookup_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Lookup Technology' + this.name = 'pubrioTechnologyLookup' + this.version = 1.0 + this.type = 'PubrioTechnologyLookup' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Look up technologies used by a company' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioTechnologyLookup({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioTechnologyLookup_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioTestRunMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioTestRunMonitor.ts new file mode 100644 index 00000000000..6e47a56124d --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioTestRunMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioTestRunMonitor } from '@pubrio/langchain-tools' + +class PubrioTestRunMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Test Run Monitor' + this.name = 'pubrioTestRunMonitor' + this.version = 1.0 + this.type = 'PubrioTestRunMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Execute a test run of a monitor' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioTestRunMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioTestRunMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioUpdateMonitor.ts b/packages/components/nodes/tools/Pubrio/PubrioUpdateMonitor.ts new file mode 100644 index 00000000000..ffbba63156c --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioUpdateMonitor.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioUpdateMonitor } from '@pubrio/langchain-tools' + +class PubrioUpdateMonitor_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Update Monitor' + this.name = 'pubrioUpdateMonitor' + this.version = 1.0 + this.type = 'PubrioUpdateMonitor' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Update an existing monitor configuration' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioUpdateMonitor({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioUpdateMonitor_Tools } diff --git a/packages/components/nodes/tools/Pubrio/PubrioValidateWebhook.ts b/packages/components/nodes/tools/Pubrio/PubrioValidateWebhook.ts new file mode 100644 index 00000000000..683ce85e2e0 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/PubrioValidateWebhook.ts @@ -0,0 +1,42 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getCredentialData, getCredentialParam } from '../../../src/utils' +import { PubrioValidateWebhook } from '@pubrio/langchain-tools' + +class PubrioValidateWebhook_Tools implements INode { + label: string + name: string + version: number + type: string + icon: string + category: string + description: string + baseClasses: string[] + credential: INodeParams + inputs: INodeParams[] + + constructor() { + this.label = 'Pubrio Validate Webhook' + this.name = 'pubrioValidateWebhook' + this.version = 1.0 + this.type = 'PubrioValidateWebhook' + this.icon = 'pubrio.svg' + this.category = 'Tools' + this.description = 'Validate a webhook destination URL' + this.baseClasses = [this.type, 'Tool'] + this.credential = { + label: 'Connect Credential', + name: 'credential', + type: 'credential', + credentialNames: ['pubrioApi'] + } + this.inputs = [] + } + + async init(nodeData: INodeData, _input: string, options?: ICommonObject): Promise { + const credentialData = await getCredentialData(nodeData.credential ?? '', options ?? {}) + const apiKey = getCredentialParam('pubrioApiKey', credentialData, nodeData) + return new PubrioValidateWebhook({ apiKey }) + } +} + +module.exports = { nodeClass: PubrioValidateWebhook_Tools } diff --git a/packages/components/nodes/tools/Pubrio/pubrio.svg b/packages/components/nodes/tools/Pubrio/pubrio.svg new file mode 100644 index 00000000000..033f8889f99 --- /dev/null +++ b/packages/components/nodes/tools/Pubrio/pubrio.svg @@ -0,0 +1,4 @@ + + + P +