mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor(core): Update dynamic node parameter endpoints to use DTOs (#12379)
This commit is contained in:
committed by
GitHub
parent
f08db47077
commit
1674dd0f88
@@ -3,11 +3,7 @@ import type express from 'express';
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
IDataObject,
|
||||
ILoadOptions,
|
||||
INodeCredentialTestRequest,
|
||||
INodeCredentials,
|
||||
INodeParameters,
|
||||
INodeTypeNameVersion,
|
||||
IPersonalizationSurveyAnswersV4,
|
||||
IUser,
|
||||
} from 'n8n-workflow';
|
||||
@@ -268,47 +264,6 @@ export declare namespace OAuthRequest {
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------
|
||||
// /dynamic-node-parameters
|
||||
// ----------------------------------
|
||||
export declare namespace DynamicNodeParametersRequest {
|
||||
type BaseRequest<RequestBody = {}> = AuthenticatedRequest<
|
||||
{},
|
||||
{},
|
||||
{
|
||||
path: string;
|
||||
nodeTypeAndVersion: INodeTypeNameVersion;
|
||||
currentNodeParameters: INodeParameters;
|
||||
methodName?: string;
|
||||
credentials?: INodeCredentials;
|
||||
} & RequestBody,
|
||||
{}
|
||||
>;
|
||||
|
||||
/** POST /dynamic-node-parameters/options */
|
||||
type Options = BaseRequest<{
|
||||
loadOptions?: ILoadOptions;
|
||||
}>;
|
||||
|
||||
/** POST /dynamic-node-parameters/resource-locator-results */
|
||||
type ResourceLocatorResults = BaseRequest<{
|
||||
methodName: string;
|
||||
filter?: string;
|
||||
paginationToken?: string;
|
||||
}>;
|
||||
|
||||
/** POST dynamic-node-parameters/resource-mapper-fields */
|
||||
type ResourceMapperFields = BaseRequest<{
|
||||
methodName: string;
|
||||
}>;
|
||||
|
||||
/** POST /dynamic-node-parameters/action-result */
|
||||
type ActionResult = BaseRequest<{
|
||||
handler: string;
|
||||
payload: IDataObject | string | undefined;
|
||||
}>;
|
||||
}
|
||||
|
||||
// ----------------------------------
|
||||
// /tags
|
||||
// ----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user