mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Use NodeConnectionType consistently across the code base (no-changelog) (#10595)
This commit is contained in:
@@ -11,7 +11,13 @@ import type {
|
||||
IHttpRequestMethods,
|
||||
IRequestOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError, sleep, removeCircularRefs } from 'n8n-workflow';
|
||||
import {
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
sleep,
|
||||
removeCircularRefs,
|
||||
NodeConnectionType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import type { IAuthDataSanitizeKeys } from '../GenericFunctions';
|
||||
import { replaceNullValues, sanitizeUiMessage } from '../GenericFunctions';
|
||||
@@ -37,8 +43,8 @@ export class HttpRequestV1 implements INodeType {
|
||||
name: 'HTTP Request',
|
||||
color: '#2200DD',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
credentials: [
|
||||
// ----------------------------------
|
||||
// v1 creds
|
||||
|
||||
@@ -11,7 +11,13 @@ import type {
|
||||
IRequestOptions,
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError, sleep, removeCircularRefs } from 'n8n-workflow';
|
||||
import {
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
sleep,
|
||||
removeCircularRefs,
|
||||
NodeConnectionType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import type { IAuthDataSanitizeKeys } from '../GenericFunctions';
|
||||
import {
|
||||
@@ -41,8 +47,8 @@ export class HttpRequestV2 implements INodeType {
|
||||
color: '#2200DD',
|
||||
},
|
||||
version: 2,
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'httpBasicAuth',
|
||||
|
||||
@@ -18,6 +18,7 @@ import type {
|
||||
import {
|
||||
BINARY_ENCODING,
|
||||
NodeApiError,
|
||||
NodeConnectionType,
|
||||
NodeOperationError,
|
||||
jsonParse,
|
||||
removeCircularRefs,
|
||||
@@ -36,8 +37,8 @@ import {
|
||||
sanitizeUiMessage,
|
||||
setAgentOptions,
|
||||
} from '../GenericFunctions';
|
||||
import type { HttpSslAuthCredentials } from '../interfaces';
|
||||
import { keysToLowercase } from '@utils/utilities';
|
||||
import { type HttpSslAuthCredentials } from '../interfaces';
|
||||
|
||||
function toText<T>(data: T) {
|
||||
if (typeof data === 'object' && data !== null) {
|
||||
@@ -57,8 +58,8 @@ export class HttpRequestV3 implements INodeType {
|
||||
name: 'HTTP Request',
|
||||
color: '#0004F5',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
inputs: [NodeConnectionType.Main],
|
||||
outputs: [NodeConnectionType.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'httpSslAuth',
|
||||
|
||||
Reference in New Issue
Block a user