UNPKG

n8n

Version:

n8n Workflow Automation Tool

32 lines (31 loc) 1.16 kB
import type { INodeTypeDescription } from 'n8n-workflow'; import { type StrapiFilters } from './strapi-utils'; export type StrapiCommunityNodeType = { id: number; authorGithubUrl: string; authorName: string; checksum: string; description: string; displayName: string; name: string; numberOfStars: number; numberOfDownloads: number; packageName: string; createdAt: string; updatedAt: string; npmVersion: string; isOfficialNode: boolean; companyName?: string; nodeDescription: INodeTypeDescription; nodeVersions?: Array<{ npmVersion: string; checksum: string; }>; aiNodeSdkVersion?: number; }; export type CommunityNodesMetadata = Pick<StrapiCommunityNodeType, 'id' | 'name' | 'npmVersion' | 'updatedAt'>; export declare function getCommunityNodeTypes(environment: 'staging' | 'production', qs: { filters?: StrapiFilters; fields?: string[]; } | undefined, maxAiNodeSdk: number): Promise<StrapiCommunityNodeType[]>; export declare function getCommunityNodesMetadata(environment: 'staging' | 'production', maxAiNodeSdk: number): Promise<CommunityNodesMetadata[]>;