refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)

* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c.

* 👕 Fix severity
This commit is contained in:
Iván Ovejero
2023-01-27 12:22:44 +01:00
committed by GitHub
parent 845f0f9d20
commit b03e358a12
1840 changed files with 3829 additions and 3516 deletions

View File

@@ -1,12 +1,12 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import {
actionNetworkApiRequest,
@@ -36,7 +36,7 @@ import {
tagOperations,
} from './descriptions';
import {
import type {
AllFieldsUi,
EmailAddressUi,
Operation,

View File

@@ -1,12 +1,12 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import { flow, omit } from 'lodash';
import {
import type {
AllFieldsUi,
FieldWithPrimaryField,
LinksFieldContainer,

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { makeSimpleField } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { eventAdditionalFieldsOptions, makeSimpleField } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { makeSimpleField, personAdditionalFieldsOptions } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const personTagOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { makeSimpleField, petitionAdditionalFieldsOptions } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { makeSimpleField } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { makeSimpleField } from './SharedFields';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const accountContactOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,20 +1,17 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import {
activeCampaignApiRequest,
activeCampaignApiRequestAllItems,
IProduct,
} from './GenericFunctions';
import type { IProduct } from './GenericFunctions';
import { activeCampaignApiRequest, activeCampaignApiRequestAllItems } from './GenericFunctions';
import { contactFields, contactOperations } from './ContactDescription';

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactListOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactTagOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { allCurrencies } from './currencies';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { allCurrencies } from './currencies';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,8 +1,9 @@
import { IExecuteFunctions, IHookFunctions } from 'n8n-core';
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core';
import { IDataObject, ILoadOptionsFunctions, INodeProperties, NodeApiError } from 'n8n-workflow';
import type { IDataObject, ILoadOptionsFunctions, INodeProperties } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
export interface IProduct {
fields: {

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
import { activeCampaignDefaultGetAllProperties } from './GenericFunctions';

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import {
import type {
IDataObject,
IExecuteSingleFunctions,
IHttpRequestOptions,
@@ -6,7 +6,7 @@ import {
INodeTypeDescription,
} from 'n8n-workflow';
import { collectionFields } from './CollectionDescription';
import { FieldsUiValues } from './types';
import type { FieldsUiValues } from './types';
export class Adalo implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const collectionFields: INodeProperties[] = [
{

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -19,9 +19,9 @@ import { listFields, listOperations } from './ListDescription';
import { listEntryFields, listEntryOperations } from './ListEntryDescription';
import { IOrganization } from './OrganizationInterface';
import type { IOrganization } from './OrganizationInterface';
import { IPerson } from './PersonInterface';
import type { IPerson } from './PersonInterface';
export class Affinity implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,12 +1,12 @@
import { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import {
import type {
IDataObject,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { affinityApiRequest, eventsExist, mapResource } from './GenericFunctions';

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const listOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const listEntryOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const organizationOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const personOperations: INodeProperties[] = [
{

View File

@@ -1,13 +1,12 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
jsonParse,
NodeOperationError,
} from 'n8n-workflow';
import { jsonParse, NodeOperationError } from 'n8n-workflow';
import { contactFields, contactOperations } from './ContactDescription';
@@ -15,7 +14,7 @@ import { companyFields, companyOperations } from './CompanyDescription';
import { dealFields, dealOperations } from './DealDescription';
import { IContact, IContactUpdate } from './ContactInterface';
import type { IContact, IContactUpdate } from './ContactInterface';
import {
agileCrmApiRequest,
@@ -26,9 +25,9 @@ import {
validateJSON,
} from './GenericFunctions';
import { IDeal } from './DealInterface';
import type { IDeal } from './DealInterface';
import { IFilter, ISearchConditions } from './FilterInterface';
import type { IFilter, ISearchConditions } from './FilterInterface';
export class AgileCrm implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const companyOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { IDataObject } from 'n8n-workflow';
import type { IDataObject } from 'n8n-workflow';
export interface IProperty {
type: string;

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const dealOperations: INodeProperties[] = [
{

View File

@@ -1,17 +1,18 @@
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import {
import type {
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import { IDataObject, NodeApiError } from 'n8n-workflow';
import type { IDataObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { IContactUpdate } from './ContactInterface';
import type { IContactUpdate } from './ContactInterface';
import { IFilterRules, ISearchConditions } from './FilterInterface';
import type { IFilterRules, ISearchConditions } from './FilterInterface';
export async function agileCrmApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,

View File

@@ -1,12 +1,12 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from './GenericFunctions';

View File

@@ -1,12 +1,12 @@
import { IPollFunctions } from 'n8n-core';
import type { IPollFunctions } from 'n8n-core';
import {
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { apiRequestAllItems, downloadRecordAttachments } from './GenericFunctions';

View File

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

View File

@@ -1,13 +1,14 @@
import { ContainerOptions, create_container, Dictionary, EventContext } from 'rhea';
import type { ContainerOptions, Dictionary, EventContext } from 'rhea';
import { create_container } from 'rhea';
import { IExecuteFunctions } from 'n8n-core';
import {
import type { IExecuteFunctions } from 'n8n-core';
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
export class Amqp implements INodeType {
description: INodeTypeDescription = {

View File

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

View File

@@ -1,14 +1,14 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import {
apiTemplateIoApiRequest,

View File

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

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
IHttpRequestMethods,
ILoadOptionsFunctions,
@@ -8,9 +8,8 @@ import {
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import {
asanaApiRequest,

View File

@@ -1,14 +1,14 @@
import { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { asanaApiRequest, getWorkspaces } from './GenericFunctions';

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactOperations: INodeProperties[] = [
{

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const listOperations: INodeProperties[] = [
{

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactJourneyOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const contactListOperations: INodeProperties[] = [
{

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const listOperations: INodeProperties[] = [
{

View File

@@ -1,5 +1,5 @@
import { IExecuteFunctions } from 'n8n-core';
import {
import type { IExecuteFunctions } from 'n8n-core';
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -7,8 +7,8 @@ import {
INodeType,
INodeTypeDescription,
JsonObject,
NodeApiError,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { awsApiRequestREST } from './GenericFunctions';

View File

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

View File

@@ -1,15 +1,14 @@
import { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import {
import type {
ILoadOptionsFunctions,
INodeListSearchItems,
INodeListSearchResult,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
jsonParse,
NodeOperationError,
} from 'n8n-workflow';
import { jsonParse, NodeOperationError } from 'n8n-workflow';
import { awsApiRequestSOAP } from './GenericFunctions';

View File

@@ -1,6 +1,11 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { certificateFields, certificateOperations } from './CertificateDescription';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const certificateOperations: INodeProperties[] = [
{

View File

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

View File

@@ -1,6 +1,11 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { awsApiRequestREST } from './GenericFunctions';

View File

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

View File

@@ -1,7 +1,7 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -14,7 +14,7 @@ import { awsApiRequest, awsApiRequestAllItems } from './GenericFunctions';
import { itemFields, itemOperations } from './ItemDescription';
import {
import type {
FieldsUiValues,
IAttributeNameUi,
IAttributeValueUi,

View File

@@ -1,13 +1,14 @@
import {
import type {
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IWebhookFunctions,
} from 'n8n-core';
import { deepCopy, IDataObject, IHttpRequestOptions, INodeExecutionData } from 'n8n-workflow';
import type { IDataObject, IHttpRequestOptions, INodeExecutionData } from 'n8n-workflow';
import { deepCopy } from 'n8n-workflow';
import { IRequestBody } from './types';
import type { IRequestBody } from './types';
export async function awsApiRequest(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const itemOperations: INodeProperties[] = [
{

View File

@@ -1,6 +1,7 @@
import { deepCopy, IDataObject, INodeExecutionData, assert } from 'n8n-workflow';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import { deepCopy, assert } from 'n8n-workflow';
import {
import type {
AdjustedPutItem,
AttributeValueType,
EAttributeValueType,

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const listenerCertificateOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const loadBalancerOperations: INodeProperties[] = [
{

View File

@@ -1,13 +1,14 @@
import { parseString as parseXml } from 'xml2js';
import {
import type {
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IWebhookFunctions,
} from 'n8n-core';
import { IHttpRequestOptions, NodeApiError } from 'n8n-workflow';
import type { IHttpRequestOptions } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
export async function awsApiRequest(
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,

View File

@@ -1,13 +1,13 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IBinaryKeyData,
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { awsApiRequestREST, keysTPascalCase } from './GenericFunctions';

View File

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

View File

@@ -4,17 +4,17 @@ import { createHash } from 'crypto';
import { Builder } from 'xml2js';
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IBinaryKeyData,
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
JsonObject,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { bucketFields, bucketOperations } from './BucketDescription';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const bucketOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const fileOperations: INodeProperties[] = [
{

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const folderOperations: INodeProperties[] = [
{

View File

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

View File

@@ -1,14 +1,14 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { awsApiRequestSOAP, awsApiRequestSOAPAllItems } from './GenericFunctions';

View File

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

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
@@ -8,9 +8,8 @@ import {
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import { URL } from 'url';

View File

@@ -1,6 +1,6 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import {
import type {
IBinaryKeyData,
ICredentialDataDecryptedObject,
ICredentialsDecrypted,
@@ -10,15 +10,11 @@ import {
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import {
awsApiRequestREST,
IExpenseDocument,
simplify,
validateCredentials,
} from './GenericFunctions';
import type { IExpenseDocument } from './GenericFunctions';
import { awsApiRequestREST, simplify, validateCredentials } from './GenericFunctions';
export class AwsTextract implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,24 +1,25 @@
import { URL } from 'url';
import { Request, sign } from 'aws4';
import type { Request } from 'aws4';
import { sign } from 'aws4';
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import { parseString } from 'xml2js';
import {
import type {
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IWebhookFunctions,
} from 'n8n-core';
import {
import type {
ICredentialDataDecryptedObject,
ICredentialTestFunctions,
IHttpRequestOptions,
NodeApiError,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
function getEndpointForService(
service: string,

View File

@@ -1,6 +1,11 @@
import { IExecuteFunctions } from 'n8n-core';
import type { IExecuteFunctions } from 'n8n-core';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import type {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { awsApiRequestREST, awsApiRequestRESTAllItems } from './GenericFunctions';

View File

@@ -1,17 +1,19 @@
import { URL } from 'url';
import { Request, sign } from 'aws4';
import type { Request } from 'aws4';
import { sign } from 'aws4';
import { OptionsWithUri } from 'request';
import type { OptionsWithUri } from 'request';
import {
import type {
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IWebhookFunctions,
} from 'n8n-core';
import { ICredentialDataDecryptedObject, IDataObject, NodeApiError } from 'n8n-workflow';
import type { ICredentialDataDecryptedObject, IDataObject } from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { get } from 'lodash';

View File

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

View File

@@ -1,4 +1,4 @@
import { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
import type { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
type BambooHrMap = {
employee: 'create' | 'get' | 'getAll' | 'update';

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const companyReportGetDescription: INodeProperties[] = [
{

View File

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

View File

@@ -1,6 +1,6 @@
import * as get from './get';
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export { get };

View File

@@ -1,4 +1,4 @@
import { EmployeeProperties } from '../../Interfaces';
import type { EmployeeProperties } from '../../Interfaces';
import { createEmployeeSharedDescription } from './shareDescription';

View File

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

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