mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(editor): Add HTTP request nodes for credentials without a node (#7157)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -308,6 +308,11 @@ export interface ICredentialTestRequestData {
|
||||
testRequest: ICredentialTestRequest;
|
||||
}
|
||||
|
||||
type ICredentialHttpRequestNode = {
|
||||
name: string;
|
||||
docsUrl: string;
|
||||
} & ({ apiBaseUrl: string } | { apiBaseUrlPlaceholder: string });
|
||||
|
||||
export interface ICredentialType {
|
||||
name: string;
|
||||
displayName: string;
|
||||
@@ -324,12 +329,13 @@ export interface ICredentialType {
|
||||
) => Promise<IDataObject>;
|
||||
test?: ICredentialTestRequest;
|
||||
genericAuth?: boolean;
|
||||
httpRequestNode?: ICredentialHttpRequestNode;
|
||||
}
|
||||
|
||||
export interface ICredentialTypes {
|
||||
recognizes(credentialType: string): boolean;
|
||||
getByName(credentialType: string): ICredentialType;
|
||||
getNodeTypesToTestWith(type: string): string[];
|
||||
getSupportedNodes(type: string): string[];
|
||||
getParentTypes(typeName: string): string[];
|
||||
}
|
||||
|
||||
@@ -958,6 +964,7 @@ export interface INode {
|
||||
parameters: INodeParameters;
|
||||
credentials?: INodeCredentials;
|
||||
webhookId?: string;
|
||||
extendsCredential?: string;
|
||||
}
|
||||
|
||||
export interface IPinData {
|
||||
@@ -1058,7 +1065,8 @@ export type NodePropertyTypes =
|
||||
| 'credentialsSelect'
|
||||
| 'resourceLocator'
|
||||
| 'curlImport'
|
||||
| 'resourceMapper';
|
||||
| 'resourceMapper'
|
||||
| 'credentials';
|
||||
|
||||
export type CodeAutocompleteTypes = 'function' | 'functionItem';
|
||||
|
||||
@@ -1398,6 +1406,7 @@ export interface INodeTypeBaseDescription {
|
||||
name: string;
|
||||
icon?: string;
|
||||
iconUrl?: string;
|
||||
badgeIconUrl?: string;
|
||||
group: string[];
|
||||
description: string;
|
||||
documentationUrl?: string;
|
||||
@@ -1611,6 +1620,7 @@ export interface INodeTypeDescription extends INodeTypeBaseDescription {
|
||||
inactive: string;
|
||||
};
|
||||
};
|
||||
extendsCredential?: string;
|
||||
__loadOptionsMethods?: string[]; // only for validation during build
|
||||
}
|
||||
|
||||
@@ -1710,7 +1720,7 @@ export type LoadingDetails = {
|
||||
};
|
||||
|
||||
export type CredentialLoadingDetails = LoadingDetails & {
|
||||
nodesToTestWith?: string[];
|
||||
supportedNodes?: string[];
|
||||
extends?: string[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user