mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
export interface SimplifiedProperty {
|
|
name: string;
|
|
displayName: string;
|
|
type: string;
|
|
description: string;
|
|
default?: any;
|
|
options?: Array<{
|
|
value: string;
|
|
label: string;
|
|
}>;
|
|
required?: boolean;
|
|
placeholder?: string;
|
|
showWhen?: Record<string, any>;
|
|
usageHint?: string;
|
|
expectedFormat?: {
|
|
structure: Record<string, string>;
|
|
modes?: string[];
|
|
example: Record<string, any>;
|
|
};
|
|
}
|
|
export interface EssentialConfig {
|
|
required: string[];
|
|
common: string[];
|
|
categoryPriority?: string[];
|
|
}
|
|
export interface FilteredProperties {
|
|
required: SimplifiedProperty[];
|
|
common: SimplifiedProperty[];
|
|
}
|
|
export declare class PropertyFilter {
|
|
private static ESSENTIAL_PROPERTIES;
|
|
static deduplicateProperties(properties: any[]): any[];
|
|
static getEssentials(allProperties: any[], nodeType: string): FilteredProperties;
|
|
private static extractProperties;
|
|
private static findPropertyByName;
|
|
private static simplifyProperty;
|
|
private static generateUsageHint;
|
|
private static extractDescription;
|
|
private static generateDescription;
|
|
private static inferEssentials;
|
|
static searchProperties(allProperties: any[], query: string, maxResults?: number): SimplifiedProperty[];
|
|
private static searchPropertiesRecursive;
|
|
}
|
|
//# sourceMappingURL=property-filter.d.ts.map
|