mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Convert dynamic node-parameter routes to a decorated controller (no-changelog) (#7284)
1. Reduce a lot of code duplication 2. Move more endpoints out of `Server.ts` 3. Move all query-param parsing and validation into a middleware to make the route handlers simpler.
This commit is contained in:
committed by
GitHub
parent
05ed86c64b
commit
fc60e9a809
@@ -1355,17 +1355,6 @@ export interface ITabBarItem {
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export interface IResourceLocatorReqParams {
|
||||
nodeTypeAndVersion: INodeTypeNameVersion;
|
||||
path: string;
|
||||
methodName?: string;
|
||||
searchList?: ILoadOptions;
|
||||
currentNodeParameters: INodeParameters;
|
||||
credentials?: INodeCredentials;
|
||||
filter?: string;
|
||||
paginationToken?: unknown;
|
||||
}
|
||||
|
||||
export interface IResourceLocatorResultExpanded extends INodeListSearchItems {
|
||||
linkAlt?: string;
|
||||
}
|
||||
@@ -1473,13 +1462,30 @@ export type NodeAuthenticationOption = {
|
||||
displayOptions?: IDisplayOptions;
|
||||
};
|
||||
|
||||
export interface ResourceMapperReqParams {
|
||||
nodeTypeAndVersion: INodeTypeNameVersion;
|
||||
path: string;
|
||||
methodName?: string;
|
||||
currentNodeParameters: INodeParameters;
|
||||
credentials?: INodeCredentials;
|
||||
export declare namespace DynamicNodeParameters {
|
||||
interface BaseRequest {
|
||||
path: string;
|
||||
nodeTypeAndVersion: INodeTypeNameVersion;
|
||||
currentNodeParameters: INodeParameters;
|
||||
methodName?: string;
|
||||
credentials?: INodeCredentials;
|
||||
}
|
||||
|
||||
interface OptionsRequest extends BaseRequest {
|
||||
loadOptions?: ILoadOptions;
|
||||
}
|
||||
|
||||
interface ResourceLocatorResultsRequest extends BaseRequest {
|
||||
methodName: string;
|
||||
filter?: string;
|
||||
paginationToken?: string;
|
||||
}
|
||||
|
||||
interface ResourceMapperFieldsRequest extends BaseRequest {
|
||||
methodName: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface EnvironmentVariable {
|
||||
id: number;
|
||||
key: string;
|
||||
|
||||
Reference in New Issue
Block a user