UNPKG

n8n

Version:

n8n Workflow Automation Tool

23 lines (22 loc) 1.02 kB
import type { CommunityNodeType } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import { GlobalConfig } from '@n8n/config'; import { CommunityPackagesService } from './community-packages.service'; import { StrapiCommunityNodeType } from '../utils/community-node-types-utils'; export declare class CommunityNodeTypesService { private readonly logger; private globalConfig; private communityPackagesService; private communityNodeTypes; private lastUpdateTimestamp; constructor(logger: Logger, globalConfig: GlobalConfig, communityPackagesService: CommunityPackagesService); private fetchNodeTypes; private detectEnvironment; private updateCommunityNodeTypes; private resetCommunityNodeTypes; private updateRequired; private createIsInstalled; getCommunityNodeTypes(): Promise<CommunityNodeType[]>; getCommunityNodeType(type: string): Promise<CommunityNodeType | null>; findVetted(packageName: string): StrapiCommunityNodeType | undefined; }