refactor: Remove n8n-core dependency in nodes-base (no-changelog) (#5649)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-03-09 18:13:15 +01:00 committed by GitHub
parent 5790e5e719
commit 7a4e9ef5fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
667 changed files with 1848 additions and 1590 deletions

View file

@ -16,7 +16,7 @@
import type express from 'express'; import type express from 'express';
import get from 'lodash.get'; import get from 'lodash.get';
import { BINARY_ENCODING, BinaryDataManager, NodeExecuteFunctions, eventEmitter } from 'n8n-core'; import { BinaryDataManager, NodeExecuteFunctions, eventEmitter } from 'n8n-core';
import type { import type {
IBinaryKeyData, IBinaryKeyData,
@ -35,6 +35,7 @@ import type {
WorkflowExecuteMode, WorkflowExecuteMode,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { import {
BINARY_ENCODING,
createDeferredPromise, createDeferredPromise,
ErrorReporterProxy as ErrorReporter, ErrorReporterProxy as ErrorReporter,
LoggerProxy as Logger, LoggerProxy as Logger,

View file

@ -2,7 +2,7 @@ import { readFile, stat } from 'fs/promises';
import type { BinaryMetadata, IBinaryData, INodeExecutionData } from 'n8n-workflow'; import type { BinaryMetadata, IBinaryData, INodeExecutionData } from 'n8n-workflow';
import prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import type { Readable } from 'stream'; import type { Readable } from 'stream';
import { BINARY_ENCODING } from '../Constants'; import { BINARY_ENCODING } from 'n8n-workflow';
import type { IBinaryDataConfig, IBinaryDataManager } from '../Interfaces'; import type { IBinaryDataConfig, IBinaryDataManager } from '../Interfaces';
import { BinaryDataFileSystem } from './FileSystem'; import { BinaryDataFileSystem } from './FileSystem';
import { binaryToBuffer } from './utils'; import { binaryToBuffer } from './utils';

View file

@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/naming-convention */
export const BINARY_ENCODING = 'base64';
export const CUSTOM_EXTENSION_ENV = 'N8N_CUSTOM_EXTENSIONS'; export const CUSTOM_EXTENSION_ENV = 'N8N_CUSTOM_EXTENSIONS';
export const DOWNLOADED_NODES_SUBDIRECTORY = 'nodes'; export const DOWNLOADED_NODES_SUBDIRECTORY = 'nodes';
export const ENCRYPTION_KEY_ENV_OVERWRITE = 'N8N_ENCRYPTION_KEY'; export const ENCRYPTION_KEY_ENV_OVERWRITE = 'N8N_ENCRYPTION_KEY';
@ -10,7 +9,6 @@ export const USER_SETTINGS_SUBFOLDER = '.n8n';
export const PLACEHOLDER_EMPTY_EXECUTION_ID = '__UNKNOWN__'; export const PLACEHOLDER_EMPTY_EXECUTION_ID = '__UNKNOWN__';
export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__'; export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__';
export const TUNNEL_SUBDOMAIN_ENV = 'N8N_TUNNEL_SUBDOMAIN'; export const TUNNEL_SUBDOMAIN_ENV = 'N8N_TUNNEL_SUBDOMAIN';
export const WAIT_TIME_UNLIMITED = '3000-01-01T00:00:00.000Z';
export const RESPONSE_ERROR_MESSAGES = { export const RESPONSE_ERROR_MESSAGES = {
NO_ENCRYPTION_KEY: 'Encryption key is missing or was not set', NO_ENCRYPTION_KEY: 'Encryption key is missing or was not set',

View file

@ -15,9 +15,3 @@ export * from './NodeExecuteFunctions';
export * from './WorkflowExecute'; export * from './WorkflowExecute';
export { eventEmitter, NodeExecuteFunctions, UserSettings }; export { eventEmitter, NodeExecuteFunctions, UserSettings };
export * from './errors'; export * from './errors';
declare module 'http' {
export interface IncomingMessage {
rawBody: Buffer;
}
}

View file

@ -46,7 +46,7 @@ export async function createCustomTsconfig() {
/** /**
* Builds and copies credentials and nodes * Builds and copies credentials and nodes
* *
* @param {IBuildOptions} [options] Options to overwrite default behaviour * @param {IBuildOptions} [options] Options to overwrite default behavior
*/ */
export async function buildFiles({ export async function buildFiles({
destinationFolder = UserSettings.getUserN8nFolderCustomExtensionPath(), destinationFolder = UserSettings.getUserN8nFolderCustomExtensionPath(),

View file

@ -1,5 +1,9 @@
import { IExecuteFunctions } from 'n8n-core'; import {
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow'; IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
export class ClassNameReplace implements INodeType { export class ClassNameReplace implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {

View file

@ -1,5 +1,4 @@
import { ITriggerFunctions } from 'n8n-core'; import { ITriggerFunctions, INodeType, INodeTypeDescription, ITriggerResponse } from 'n8n-workflow';
import { INodeType, INodeTypeDescription, ITriggerResponse } from 'n8n-workflow';
export class ClassNameReplace implements INodeType { export class ClassNameReplace implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {

View file

@ -1,6 +1,10 @@
import { IWebhookFunctions } from 'n8n-core'; import {
IDataObject,
import { IDataObject, INodeTypeDescription, INodeType, IWebhookResponseData } from 'n8n-workflow'; IWebhookFunctions,
INodeTypeDescription,
INodeType,
IWebhookResponseData,
} from 'n8n-workflow';
export class ClassNameReplace implements INodeType { export class ClassNameReplace implements INodeType {
description: INodeTypeDescription = { description: INodeTypeDescription = {

View file

@ -1,4 +1,4 @@
import { BINARY_ENCODING } from 'n8n-core'; import { BINARY_ENCODING } from 'n8n-workflow';
import type { import type {
ICredentialDataDecryptedObject, ICredentialDataDecryptedObject,
ICredentialTestRequest, ICredentialTestRequest,

View file

@ -1,7 +1,6 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IExecuteFunctions,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IDataObject, IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-workflow';
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodePropertyOptions, INodePropertyOptions,

View file

@ -1,6 +1,11 @@
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core'; import type {
IDataObject,
import type { IDataObject, ILoadOptionsFunctions, INodeProperties, JsonObject } from 'n8n-workflow'; IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
INodeProperties,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,12 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; JsonObject,
import type { IDataObject, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function acuitySchedulingApiRequest( export async function acuitySchedulingApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,10 +1,14 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
import { BINARY_ENCODING } from 'n8n-core'; IDataObject,
IExecuteFunctions,
import type { IDataObject, IHookFunctions, IWebhookFunctions, JsonObject } from 'n8n-workflow'; ILoadOptionsFunctions,
import { NodeApiError } from 'n8n-workflow'; IHookFunctions,
IWebhookFunctions,
JsonObject,
} from 'n8n-workflow';
import { BINARY_ENCODING, NodeApiError } from 'n8n-workflow';
export async function affinityApiRequest( export async function affinityApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,13 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; JsonObject,
} from 'n8n-workflow';
import type { IDataObject, JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import type { IContactUpdate } from './ContactInterface'; import type { IContactUpdate } from './ContactInterface';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,6 +1,5 @@
import type { IPollFunctions } from 'n8n-core';
import type { import type {
IPollFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,10 +1,10 @@
import type { IExecuteFunctions, IPollFunctions } from 'n8n-core';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IBinaryKeyData, IBinaryKeyData,
IDataObject, IDataObject,
IExecuteFunctions,
IPollFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,
} from 'n8n-workflow'; } from 'n8n-workflow';

View file

@ -1,8 +1,8 @@
import type { ContainerOptions, Dictionary, EventContext } from 'rhea'; import type { ContainerOptions, Dictionary, EventContext } from 'rhea';
import { create_container } from 'rhea'; import { create_container } from 'rhea';
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,8 +1,13 @@
import type { ContainerOptions, EventContext, Message, ReceiverOptions } from 'rhea'; import type { ContainerOptions, EventContext, Message, ReceiverOptions } from 'rhea';
import { create_container } from 'rhea'; import { create_container } from 'rhea';
import type { ITriggerFunctions } from 'n8n-core'; import type {
import type { IDataObject, INodeType, INodeTypeDescription, ITriggerResponse } from 'n8n-workflow'; ITriggerFunctions,
IDataObject,
INodeType,
INodeTypeDescription,
ITriggerResponse,
} from 'n8n-workflow';
import { deepCopy, jsonParse, NodeOperationError } from 'n8n-workflow'; import { deepCopy, jsonParse, NodeOperationError } from 'n8n-workflow';
export class AmqpTrigger implements INodeType { export class AmqpTrigger implements INodeType {

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,7 +1,6 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type { IExecuteFunctions, ILoadOptionsFunctions, JsonObject } from 'n8n-workflow';
import type { JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function apiTemplateIoApiRequest( export async function apiTemplateIoApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
IHttpRequestMethods, IHttpRequestMethods,
ILoadOptionsFunctions, ILoadOptionsFunctions,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodePropertyOptions, INodePropertyOptions,

View file

@ -1,7 +1,8 @@
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IHttpRequestMethods, IHttpRequestMethods,
IHttpRequestOptions, IHttpRequestOptions,
INodePropertyOptions, INodePropertyOptions,

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,8 +1,12 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, JsonObject } from 'n8n-workflow'; IExecuteSingleFunctions,
ILoadOptionsFunctions,
IDataObject,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function automizyApiRequest( export async function automizyApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,8 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, IHookFunctions, IWebhookFunctions, JsonObject } from 'n8n-workflow'; ILoadOptionsFunctions,
IDataObject,
IHookFunctions,
IWebhookFunctions,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function autopilotApiRequest( export async function autopilotApiRequest(

View file

@ -1,5 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,5 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeListSearchItems, INodeListSearchItems,
INodeListSearchResult, INodeListSearchResult,

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,13 +1,14 @@
import get from 'lodash.get'; import get from 'lodash.get';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
JsonObject,
import type { IDataObject, IHttpRequestOptions, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { jsonParse, NodeApiError } from 'n8n-workflow'; import { jsonParse, NodeApiError } from 'n8n-workflow';
export async function awsApiRequest( export async function awsApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -5,9 +5,8 @@ import type {
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
} from 'n8n-workflow';
import type { IHttpRequestOptions } from 'n8n-workflow';
export async function awsApiRequest( export async function awsApiRequest(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,

View file

@ -1,7 +1,6 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */ /* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,11 +1,12 @@
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
INodeExecutionData,
import type { IDataObject, IHttpRequestOptions, INodeExecutionData } from 'n8n-workflow'; } from 'n8n-workflow';
import { deepCopy } from 'n8n-workflow'; import { deepCopy } from 'n8n-workflow';
import type { IRequestBody } from './types'; import type { IRequestBody } from './types';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -3,13 +3,14 @@ import get from 'lodash.get';
import { parseString } from 'xml2js'; import { parseString } from 'xml2js';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
JsonObject,
import type { IDataObject, IHttpRequestOptions, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function awsApiRequest( export async function awsApiRequest(

View file

@ -5,9 +5,9 @@ import type {
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
JsonObject,
import type { IHttpRequestOptions, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function awsApiRequest( export async function awsApiRequest(

View file

@ -3,13 +3,13 @@ import get from 'lodash.get';
import { parseString } from 'xml2js'; import { parseString } from 'xml2js';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
} from 'n8n-workflow';
import type { IDataObject, IHttpRequestOptions } from 'n8n-workflow';
import { pascalCase } from 'change-case'; import { pascalCase } from 'change-case';

View file

@ -3,13 +3,13 @@ import get from 'lodash.get';
import { parseString } from 'xml2js'; import { parseString } from 'xml2js';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
} from 'n8n-workflow';
import type { IDataObject, IHttpRequestOptions } from 'n8n-workflow';
export async function awsApiRequest( export async function awsApiRequest(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,13 +1,14 @@
import { parseString } from 'xml2js'; import { parseString } from 'xml2js';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; IHttpRequestOptions,
JsonObject,
import type { IDataObject, IHttpRequestOptions, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import get from 'lodash.get'; import get from 'lodash.get';

View file

@ -8,15 +8,12 @@ import type { OptionsWithUri } from 'request';
import { parseString } from 'xml2js'; import { parseString } from 'xml2js';
import type { import type {
ICredentialDataDecryptedObject,
ICredentialTestFunctions,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core';
import type {
ICredentialDataDecryptedObject,
ICredentialTestFunctions,
IHttpRequestOptions, IHttpRequestOptions,
JsonObject, JsonObject,
} from 'n8n-workflow'; } from 'n8n-workflow';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -6,13 +6,14 @@ import { sign } from 'aws4';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
ICredentialDataDecryptedObject,
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-core'; JsonObject,
} from 'n8n-workflow';
import type { ICredentialDataDecryptedObject, IDataObject, JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import get from 'lodash.get'; import get from 'lodash.get';

View file

@ -1,6 +1,9 @@
import type { IExecuteFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { INodeType, INodeTypeBaseDescription, INodeTypeDescription } from 'n8n-workflow'; INodeType,
INodeTypeBaseDescription,
INodeTypeDescription,
} from 'n8n-workflow';
import { router } from './v1/actions/router'; import { router } from './v1/actions/router';
import { versionDescription } from './v1/actions/versionDescription'; import { versionDescription } from './v1/actions/versionDescription';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow'; import { NodeOperationError } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,6 +1,4 @@
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport'; import { apiRequest } from '../../../transport';

View file

@ -1,7 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/no-unsafe-argument */
import type { IExecuteFunctions } from 'n8n-core'; import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import type { INodeExecutionData } from 'n8n-workflow';
import * as employee from './employee'; import * as employee from './employee';
import * as employeeDocument from './employeeDocument'; import * as employeeDocument from './employeeDocument';

View file

@ -1,6 +1,10 @@
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IDataObject,
import type { IDataObject, JsonObject } from 'n8n-workflow'; IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import type { OptionsWithUrl } from 'request'; import type { OptionsWithUrl } from 'request';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,8 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, IHookFunctions, IWebhookFunctions, JsonObject } from 'n8n-workflow'; ILoadOptionsFunctions,
IDataObject,
IHookFunctions,
IWebhookFunctions,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import { snakeCase } from 'change-case'; import { snakeCase } from 'change-case';

View file

@ -1,4 +1,5 @@
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,
@ -6,8 +7,6 @@ import type {
INodeTypeDescription, INodeTypeDescription,
} from 'n8n-workflow'; } from 'n8n-workflow';
import type { IExecuteFunctions } from 'n8n-core';
import { import {
baserowApiRequest, baserowApiRequest,
baserowApiRequestAllItems, baserowApiRequestAllItems,

View file

@ -1,8 +1,11 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IDataObject, ILoadOptionsFunctions, JsonObject } from 'n8n-workflow'; import type {
IDataObject,
IExecuteFunctions,
ILoadOptionsFunctions,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import type { Accumulator, BaserowCredentials, LoadedResource } from './types'; import type { Accumulator, BaserowCredentials, LoadedResource } from './types';

View file

@ -1,6 +1,10 @@
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, IHookFunctions, IWebhookFunctions } from 'n8n-workflow'; ILoadOptionsFunctions,
IDataObject,
IHookFunctions,
IWebhookFunctions,
} from 'n8n-workflow';
import { beeminderApiRequest, beeminderApiRequestAllItems } from './GenericFunctions'; import { beeminderApiRequest, beeminderApiRequestAllItems } from './GenericFunctions';

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,8 +1,12 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, IHookFunctions, IWebhookFunctions } from 'n8n-workflow'; ILoadOptionsFunctions,
IDataObject,
IHookFunctions,
IWebhookFunctions,
} from 'n8n-workflow';
const BEEMINDER_URI = 'https://www.beeminder.com/api/v1'; const BEEMINDER_URI = 'https://www.beeminder.com/api/v1';

View file

@ -1,8 +1,8 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
ICredentialsDecrypted, ICredentialsDecrypted,
ICredentialTestFunctions, ICredentialTestFunctions,
IDataObject, IDataObject,

View file

@ -1,11 +1,12 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; JsonObject,
import type { IDataObject, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function bitbucketApiRequest( export async function bitbucketApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,13 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; JsonObject,
} from 'n8n-workflow';
import type { IDataObject, JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function bitlyApiRequest( export async function bitlyApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData, INodeExecutionData,

View file

@ -1,7 +1,6 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IExecuteFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodePropertyOptions, INodePropertyOptions,
JsonObject, JsonObject,

View file

@ -1,6 +1,10 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core'; import type {
IHookFunctions,
import type { INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow'; IWebhookFunctions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import { boxApiRequest, boxApiRequestAllItems } from './GenericFunctions'; import { boxApiRequest, boxApiRequestAllItems } from './GenericFunctions';

View file

@ -1,13 +1,14 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; IOAuth2Options,
JsonObject,
import type { IDataObject, IOAuth2Options, JsonObject } from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function boxApiRequest( export async function boxApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,13 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; JsonObject,
} from 'n8n-workflow';
import type { IDataObject, JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function brandfetchApiRequest( export async function brandfetchApiRequest(

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,6 +1,10 @@
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core'; import type {
IExecuteFunctions,
import type { IDataObject, ILoadOptionsFunctions, JsonObject } from 'n8n-workflow'; IHookFunctions,
IDataObject,
ILoadOptionsFunctions,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';

View file

@ -1,7 +1,7 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IHookFunctions,
IWebhookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodePropertyOptions, INodePropertyOptions,
INodeType, INodeType,

View file

@ -1,7 +1,7 @@
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IExecuteFunctions,
ILoadOptionsFunctions,
IHookFunctions, IHookFunctions,
IHttpRequestMethods, IHttpRequestMethods,
IHttpRequestOptions, IHttpRequestOptions,

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,11 +1,11 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { import type {
ICredentialDataDecryptedObject, ICredentialDataDecryptedObject,
ICredentialTestFunctions, ICredentialTestFunctions,
IDataObject, IDataObject,
IExecuteFunctions,
ILoadOptionsFunctions,
IHookFunctions, IHookFunctions,
IWebhookFunctions, IWebhookFunctions,
} from 'n8n-workflow'; } from 'n8n-workflow';

View file

@ -1,5 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,7 +1,6 @@
import type { IWebhookFunctions } from 'n8n-core';
import type { import type {
IDataObject, IDataObject,
IWebhookFunctions,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,
IWebhookResponseData, IWebhookResponseData,

View file

@ -1,6 +1,5 @@
import type { IExecuteFunctions } from 'n8n-core';
import type { import type {
IExecuteFunctions,
IDataObject, IDataObject,
INodeExecutionData, INodeExecutionData,
INodeType, INodeType,

View file

@ -1,13 +1,13 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { import type {
IDataObject,
IExecuteFunctions, IExecuteFunctions,
IExecuteSingleFunctions, IExecuteSingleFunctions,
IHookFunctions, IHookFunctions,
ILoadOptionsFunctions, ILoadOptionsFunctions,
} from 'n8n-core'; JsonObject,
} from 'n8n-workflow';
import type { IDataObject, JsonObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow';
export async function circleciApiRequest( export async function circleciApiRequest(

View file

@ -1,6 +1,6 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { import type {
IHookFunctions,
IWebhookFunctions,
IDataObject, IDataObject,
INodeType, INodeType,
INodeTypeDescription, INodeTypeDescription,

View file

@ -1,10 +1,11 @@
import type { OptionsWithUri } from 'request'; import type { OptionsWithUri } from 'request';
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import type { import type {
ICredentialDataDecryptedObject, ICredentialDataDecryptedObject,
IDataObject, IDataObject,
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
INodeProperties, INodeProperties,
IWebhookFunctions, IWebhookFunctions,
JsonObject, JsonObject,

Some files were not shown because too many files have changed in this diff Show more