👕 Fix built issue by fixing lint issues

This commit is contained in:
Jan Oberhauser 2020-10-01 14:01:39 +02:00
parent 9b5731450f
commit fe802c8f76
165 changed files with 1930 additions and 1864 deletions

View file

@ -6,9 +6,9 @@ import {
export class BitlyOAuth2Api implements ICredentialType {
name = 'bitlyOAuth2Api';
displayName = 'Bitly OAuth2 API';
displayName = 'Bitly OAuth2 API';
documentationUrl = 'bitly';
extends = [
extends = [
'oAuth2Api',
];
properties = [

View file

@ -38,11 +38,11 @@ export class ClickUpOAuth2Api implements ICredentialType {
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'body',
description: 'Resource to consume.',
},
displayName: 'Authentication',
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'body',
description: 'Resource to consume.',
},
];
}

View file

@ -25,8 +25,8 @@ export class DropboxOAuth2Api implements ICredentialType {
type: 'hidden' as NodePropertyTypes,
default: 'https://api.dropboxapi.com/oauth2/token',
required: true,
},
{
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,

View file

@ -22,6 +22,6 @@ export class FreshdeskApi implements ICredentialType {
placeholder: 'company',
description: 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"',
default: ''
}
},
];
}

View file

@ -44,11 +44,11 @@ export class HubspotOAuth2Api implements ICredentialType {
default: 'grant_type=authorization_code',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'body',
description: 'Resource to consume.',
},
displayName: 'Authentication',
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'body',
description: 'Resource to consume.',
},
];
}

View file

@ -15,8 +15,8 @@ export class Mqtt implements ICredentialType {
{
displayName: 'Protocol',
name: 'protocol',
type: 'options' as NodePropertyTypes,
options: [
type: 'options' as NodePropertyTypes,
options: [
{
name: 'mqtt',
value: 'mqtt',
@ -57,4 +57,3 @@ export class Mqtt implements ICredentialType {
},
];
}

View file

@ -49,6 +49,6 @@ export class SpotifyOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden' as NodePropertyTypes,
default: 'header',
}
},
];
}

View file

@ -18,6 +18,6 @@ export class WufooApi implements ICredentialType {
name: 'subdomain',
type: 'string' as NodePropertyTypes,
default: '',
}
},
];
}

View file

@ -4,11 +4,11 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -18,33 +18,33 @@ import {
} from './GenericFunctions';
import {
contactFields,
contactOperations,
contactFields
} from './ContactDescription';
import {
dealFields,
dealOperations,
dealFields
} from './DealDescription';
import {
ecomOrderFields,
ecomOrderOperations,
ecomOrderFields
} from './EcomOrderDescription';
import {
ecomCustomerFields,
ecomCustomerOperations,
ecomCustomerFields
} from './EcomCustomerDescription';
import {
ecomOrderProductsFields,
ecomOrderProductsOperations,
ecomOrderProductsFields
} from './EcomOrderProductsDescription';
import {
connectionFields,
connectionOperations,
connectionFields
} from './ConnectionDescription';
import {

View file

@ -6,9 +6,9 @@ import {
import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
INodePropertyOptions,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -4,10 +4,10 @@ import {
import {
IDataObject,
ILoadOptionsFunctions,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
affinityApiRequest,

View file

@ -4,10 +4,10 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
IWebhookResponseData,
IDataObject,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {

View file

@ -1,9 +1,9 @@
import { OptionsWithUri } from 'request';
import {
BINARY_ENCODING,
IExecuteFunctions,
ILoadOptionsFunctions,
BINARY_ENCODING
} from 'n8n-core';
import { IDataObject, IHookFunctions, IWebhookFunctions } from 'n8n-workflow';

View file

@ -4,9 +4,9 @@ import {
import {
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions,
} from 'n8n-core';
import {

View file

@ -3,11 +3,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -7,8 +7,8 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
@ -17,9 +17,9 @@ import {
getWorkspaces,
} from './GenericFunctions';
import {
createHmac,
} from 'crypto';
// import {
// createHmac,
// } from 'crypto';
export class AsanaTrigger implements INodeType {
description: INodeTypeDescription = {

View file

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

View file

@ -1,9 +1,9 @@
import { IExecuteFunctions } from 'n8n-core';
import {
INodeTypeDescription,
IDataObject,
INodeExecutionData,
INodeType,
IDataObject
INodeTypeDescription,
} from 'n8n-workflow';
import { awsApiRequestSOAP } from './GenericFunctions';

View file

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

View file

@ -4,11 +4,11 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
IWebhookResponseData,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {

View file

@ -1,7 +1,7 @@
import {
snakeCase,
paramCase,
snakeCase,
} from 'change-case';
import {

View file

@ -6,9 +6,9 @@ import {
import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
INodePropertyOptions,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -4,11 +4,11 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -4,11 +4,11 @@ import {
} from 'n8n-core';
import {
IBinaryKeyData,
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
IBinaryKeyData,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -4,8 +4,8 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -5,8 +5,8 @@ import {
import {
IExecuteFunctions,
IExecuteSingleFunctions,
ILoadOptionsFunctions,
IHookFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import {

View file

@ -4,8 +4,8 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -1,9 +1,9 @@
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeParameterValue,
} from 'n8n-workflow';

View file

@ -4,8 +4,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -4,9 +4,9 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -15,8 +15,8 @@ import {
companyOperations,
} from './CompanyDescription';
import {
personOperations,
personFields,
personOperations,
} from './PersonDescription';
export class Clearbit implements INodeType {

View file

@ -27,8 +27,8 @@ import {
singletonOperations,
} from './SingletonDescription';
import {
getSingleton,
getAllSingletonNames,
getSingleton,
} from './SingletonFunctions';
export class Cockpit implements INodeType {

View file

@ -3,11 +3,11 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
codaApiRequest,

View file

@ -1,8 +1,8 @@
import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import { IDataObject } from 'n8n-workflow';

View file

@ -10,8 +10,8 @@ import {
} from 'n8n-workflow';
import {
contentfulApiRequest,
contenfulApiRequestAllItems,
contentfulApiRequest,
} from './GenericFunctions';
import * as SpaceDescription from './SpaceDescription';

View file

@ -7,8 +7,8 @@ import {
IDataObject,
INodeExecutionData,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -7,8 +7,8 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -1,12 +1,11 @@
import { set } from 'lodash';
import { IExecuteFunctions } from 'n8n-core';
import {
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
} from 'n8n-workflow';
import {

View file

@ -3,15 +3,30 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { customerIoApiRequest, validateJSON } from './GenericFunctions';
import { campaignOperations, campaignFields } from './CampaignDescription';
import { customerOperations, customerFields } from './CustomerDescription';
import { eventOperations, eventFields } from './EventDescription';
import { segmentOperations, segmentFields } from './SegmentDescription';
import {
customerIoApiRequest,
validateJSON,
} from './GenericFunctions';
import {
campaignFields,
campaignOperations,
} from './CampaignDescription';
import {
customerFields,
customerOperations,
} from './CustomerDescription';
import {
eventFields,
eventOperations,
} from './EventDescription';
import {
segmentFields,
segmentOperations,
} from './SegmentDescription';
export class CustomerIo implements INodeType {

View file

@ -4,9 +4,9 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
IDataObject,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -6,9 +6,9 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
INodePropertyOptions,
} from 'n8n-workflow';

View file

@ -2,9 +2,9 @@ import { get } from 'lodash';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
export class Discord implements INodeType {

View file

@ -3,9 +3,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { disqusApiRequest, disqusApiRequestAllItems } from './GenericFunctions';

View file

@ -2,10 +2,10 @@ import {
IExecuteFunctions,
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
INodeExecutionData,
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
driftApiRequest,

View file

@ -5,9 +5,9 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -9,7 +9,13 @@ import {
ITriggerResponse,
} from 'n8n-workflow';
import { connect as imapConnect, ImapSimple, ImapSimpleOptions, getParts, Message } from 'imap-simple';
import {
connect as imapConnect,
getParts,
ImapSimple,
ImapSimpleOptions,
Message,
} from 'imap-simple';
import {
simpleParser,
Source as ParserSource,

View file

@ -4,9 +4,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { createTransport } from 'nodemailer';

View file

@ -7,8 +7,8 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -7,10 +7,10 @@ const fsReadFileAsync = promisify(fsReadFile);
import { IExecuteFunctions } from 'n8n-core';
import {
IExecuteWorkflowInfo,
INodeExecutionData,
INodeType,
INodeTypeDescription,
IExecuteWorkflowInfo,
IWorkflowBase,
} from 'n8n-workflow';

View file

@ -9,17 +9,17 @@ import {
import {OptionsWithUri} from 'request';
import {
layoutsApiRequest,
getFields,
getPortals,
getScripts,
getToken,
parseSort,
layoutsApiRequest,
logout,
parseFields,
parsePortals,
parseQuery,
parseScripts,
parseFields,
logout
parseSort,
} from "./GenericFunctions";
export class FileMaker implements INodeType {

View file

@ -1,7 +1,7 @@
import {
IExecuteFunctions,
IExecuteSingleFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions
} from 'n8n-core';
import {
@ -9,7 +9,6 @@ import {
} from 'n8n-workflow';
import {OptionsWithUri} from 'request';
import {Url} from "url";
interface ScriptsOptions {
script?: any; //tslint:disable-line:no-any

View file

@ -3,17 +3,17 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
flowApiRequest,
FlowApiRequestAllItems,
} from './GenericFunctions';
import {
taskOpeations,
taskFields,
taskOpeations,
} from './TaskDescription';
import {
ITask, TaskInfo,

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -1,9 +1,9 @@
import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions,
} from 'n8n-core';
import { IDataObject } from 'n8n-workflow';

View file

@ -1,10 +1,10 @@
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -12,10 +12,10 @@ import {
} from 'n8n-core';
import {
capitalize,
freshdeskApiRequest,
freshdeskApiRequestAllItems,
// validateJSON,
capitalize
} from './GenericFunctions';
import {
@ -27,9 +27,6 @@ import {
contactOperations,
} from './ContactDescription';
import * as moment from 'moment-timezone';
import { response } from 'express';
enum Status {
Open = 2,
Pending = 3,

View file

@ -3,9 +3,9 @@ import {
} from 'request';
import {
BINARY_ENCODING,
IExecuteFunctions,
ILoadOptionsFunctions,
BINARY_ENCODING
} from 'n8n-core';
import {

View file

@ -5,13 +5,13 @@ import {
import {
IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
githubApiRequest,
getFileSha,
githubApiRequest,
} from './GenericFunctions';
export class Github implements INodeType {

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -4,11 +4,11 @@ import {
import {
IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -17,8 +17,8 @@ import {
} from './GenericFunctions';
import {
eventOperations,
eventFields,
eventOperations,
} from './EventDescription';
import {

View file

@ -4,11 +4,11 @@ import {
import {
IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -19,8 +19,8 @@ import {
} from './GenericFunctions';
import {
contactOperations,
contactFields,
contactOperations,
} from './ContactDescription';
import * as moment from 'moment';

View file

@ -5,9 +5,9 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -4,8 +4,8 @@ import {
import {
IBinaryKeyData,
ILoadOptionsFunctions,
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
@ -21,23 +21,23 @@ import {
} from './GenericFunctions';
import {
messageOperations,
messageFields,
messageOperations,
} from './MessageDescription';
import {
messageLabelOperations,
messageLabelFields,
messageLabelOperations,
} from './MessageLabelDescription';
import {
labelOperations,
labelFields,
labelOperations,
} from './LabelDescription';
import {
draftOperations,
draftFields,
draftOperations,
} from './DraftDescription';
import {

View file

@ -1,6 +1,6 @@
import {
OptionsWithUri,
} from 'request';
} from 'request';
import {
IExecuteFunctions,
@ -61,7 +61,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF
}
}
export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string ,method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
const returnData: IDataObject[] = [];
@ -80,7 +80,7 @@ export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOp
return returnData;
}
function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, credentials: IDataObject) : Promise<IDataObject> {
function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, credentials: IDataObject): Promise<IDataObject> {
//https://developers.google.com/identity/protocols/oauth2/service-account#httprest
const scopes = [
@ -93,25 +93,25 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa
const signature = jwt.sign(
{
'iss': credentials.email as string,
'sub': credentials.email as string,
'scope': scopes.join(' '),
'aud': `https://oauth2.googleapis.com/token`,
'iat': now,
'exp': now + 3600,
'iss': credentials.email as string,
'sub': credentials.email as string,
'scope': scopes.join(' '),
'aud': `https://oauth2.googleapis.com/token`,
'iat': now,
'exp': now + 3600,
},
credentials.privateKey as string,
{
algorithm: 'RS256',
header: {
'kid': credentials.privateKey as string,
'typ': 'JWT',
'alg': 'RS256',
},
algorithm: 'RS256',
header: {
'kid': credentials.privateKey as string,
'typ': 'JWT',
'alg': 'RS256',
},
}
);
);
const options: OptionsWithUri = {
const options: OptionsWithUri = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},

View file

@ -5,11 +5,11 @@ import {
import {
IExecuteFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
} from 'n8n-core';
import {
googleApiRequest,
} from './GenericFunctions';
} from './GenericFunctions';
import {
utils as xlsxUtils,
@ -84,9 +84,9 @@ export class GoogleSheet {
return response;
}
/**
* Returns the cell values
*/
/**
* Returns the cell values
*/
async getData(range: string, valueRenderMode: ValueRenderOption): Promise<string[][] | undefined> {
const query = {
@ -129,9 +129,9 @@ export class GoogleSheet {
}
/**
* Sets the cell values
*/
/**
* Sets the cell values
*/
async batchUpdate(updateData: ISheetUpdateData[], valueInputMode: ValueInputOption) {
const body = {
@ -145,9 +145,9 @@ export class GoogleSheet {
}
/**
* Sets the cell values
*/
/**
* Sets the cell values
*/
async setData(range: string, data: string[][], valueInputMode: ValueInputOption) {
const body = {
@ -161,9 +161,9 @@ export class GoogleSheet {
}
/**
* Appends the cell values
*/
/**
* Appends the cell values
*/
async appendData(range: string, data: string[][], valueInputMode: ValueInputOption) {
const body = {
@ -180,9 +180,9 @@ export class GoogleSheet {
return response;
}
/**
* Returns the given sheet data in a structured way
*/
/**
* Returns the given sheet data in a structured way
*/
structureData(inputData: string[][], startRow: number, keys: string[], addEmpty?: boolean): IDataObject[] {
const returnData = [];
@ -207,10 +207,10 @@ export class GoogleSheet {
}
/**
* Returns the given sheet data in a structured way using
* the startRow as the one with the name of the key
*/
/**
* Returns the given sheet data in a structured way using
* the startRow as the one with the name of the key
*/
structureArrayDataByColumn(inputData: string[][], keyRow: number, dataStartRow: number): IDataObject[] {
const keys: string[] = [];
@ -235,7 +235,7 @@ export class GoogleSheet {
}
getColumnWithOffset (startColumn: string, offset: number): string {
getColumnWithOffset(startColumn: string, offset: number): string {
const columnIndex = xlsxUtils.decode_col(startColumn) + offset;
return xlsxUtils.encode_col(columnIndex);
}
@ -303,7 +303,7 @@ export class GoogleSheet {
sheetDataKeyColumn.shift();
// Create an Array which all the key-values of the Google Sheet
const keyColumnIndexLookup = sheetDataKeyColumn.map((rowContent) => rowContent[0] );
const keyColumnIndexLookup = sheetDataKeyColumn.map((rowContent) => rowContent[0]);
const updateData: ISheetUpdateData[] = [];
let itemKey: string | number | undefined | null;

View file

@ -1,7 +1,7 @@
import {
IExecuteFunctions,
} from 'n8n-core';
} from 'n8n-core';
import {
IDataObject,
@ -613,7 +613,7 @@ export class GoogleSheets implements INodeType {
range = this.getNodeParameter('range', 0) as string;
if (range.includes('!')) {
const [sheet, ranges] = range.split('!');
range = `${encodeURIComponent(sheet)}!${ranges}`;
range = `${encodeURIComponent(sheet)}!${ranges}`;
}
}

View file

@ -17,8 +17,8 @@ import {
} from './GenericFunctions';
import {
taskOperations,
taskFields,
taskOperations,
} from './TaskDescription';
export class GoogleTasks implements INodeType {

View file

@ -1,6 +1,6 @@
import {
IExecuteFunctions,
BINARY_ENCODING,
IExecuteFunctions,
} from 'n8n-core';
import {
@ -28,8 +28,8 @@ import {
} from './PlaylistDescription';
import {
playlistItemOperations,
playlistItemFields,
playlistItemOperations,
} from './PlaylistItemDescription';
import {

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -3,10 +3,10 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
IDataObject,
} from 'n8n-workflow';
import {

View file

@ -3,22 +3,52 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { clientOperations, clientFields } from './ClientDescription';
import { contactOperations, contactFields } from './ContactDescription';
import {
clientFields,
clientOperations,
} from './ClientDescription';
import {
contactFields,
contactOperations,
} from './ContactDescription';
import { companyOperations } from './CompanyDescription';
import { estimateOperations, estimateFields } from './EstimateDescription';
import { expenseOperations, expenseFields } from './ExpenseDescription';
import { harvestApiRequest, harvestApiRequestAllItems } from './GenericFunctions';
import { invoiceOperations, invoiceFields } from './InvoiceDescription';
import { projectOperations, projectFields } from './ProjectDescription';
import { taskOperations, taskFields } from './TaskDescription';
import { timeEntryOperations, timeEntryFields } from './TimeEntryDescription';
import { userOperations, userFields } from './UserDescription';
import {
estimateFields,
estimateOperations,
} from './EstimateDescription';
import {
expenseFields,
expenseOperations,
} from './ExpenseDescription';
import {
harvestApiRequest,
harvestApiRequestAllItems,
} from './GenericFunctions';
import {
invoiceFields,
invoiceOperations,
} from './InvoiceDescription';
import {
projectFields,
projectOperations,
} from './ProjectDescription';
import {
taskFields,
taskOperations,
} from './TaskDescription';
import {
timeEntryFields,
timeEntryOperations,
} from './TimeEntryDescription';
import {
userFields,
userOperations,
} from './UserDescription';
/**
* fetch All resource using paginated calls

View file

@ -1,8 +1,8 @@
import { OptionsWithUri } from 'request';
import {
IHookFunctions,
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import {

View file

@ -8,8 +8,8 @@ import {
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -1,10 +1,10 @@
import * as cheerio from 'cheerio';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
IDataObject,
} from 'n8n-workflow';
type Cheerio = ReturnType<typeof cheerio>;

View file

@ -3,11 +3,11 @@ import {
IExecuteFunctions,
} from 'n8n-core';
import {
IBinaryData,
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
IBinaryData,
} from 'n8n-workflow';
import { OptionsWithUri } from 'request';

View file

@ -17,28 +17,28 @@ import {
} from './GenericFunctions';
import {
contactOperations,
contactFields,
contactOperations,
} from './ContactDescription';
import {
companyOperations,
companyFields,
companyOperations,
} from './CompanyDescription';
import {
dealOperations,
dealFields,
dealOperations,
} from './DealDescription';
import {
formOperations,
formFields,
formOperations,
} from './FormDescription';
import {
ticketOperations,
ticketFields,
ticketOperations,
} from './TicketDescription';
import {
@ -46,8 +46,8 @@ import {
} from './FormInterface';
import {
IDeal,
IAssociation,
IDeal,
} from './DealInterface';
import {

View file

@ -4,10 +4,10 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
IWebhookResponseData,
IDataObject,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {

View file

@ -3,9 +3,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
hunterApiRequest,

View file

@ -2,9 +2,9 @@ import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions
} from 'n8n-core';
import {

View file

@ -3,15 +3,15 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
leadOpeations,
leadFields,
leadOpeations,
} from './LeadDescription';
import {
intercomApiRequest,
@ -19,13 +19,22 @@ import {
validateJSON,
} from './GenericFunctions';
import {
IAvatar,
ILead,
ILeadCompany,
IAvatar,
} from './LeadInterface';
import { userOpeations, userFields } from './UserDescription';
import { IUser, IUserCompany } from './UserInterface';
import { companyOperations, companyFields } from './CompanyDescription';
import {
userFields,
userOpeations,
} from './UserDescription';
import {
IUser,
IUserCompany,
} from './UserInterface';
import {
companyFields,
companyOperations,
} from './CompanyDescription';
import { ICompany } from './CompanyInteface';
export class Intercom implements INodeType {

File diff suppressed because it is too large Load diff

View file

@ -3,8 +3,8 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,

View file

@ -4,8 +4,8 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -10,8 +10,8 @@ import {
} from 'n8n-core';
import {
IDataObject,
ICredentialDataDecryptedObject,
IDataObject,
} from 'n8n-workflow';
export async function jiraSoftwareCloudApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, endpoint: string, method: string, body: any = {}, query?: IDataObject, uri?: string): Promise<any> { // tslint:disable-line:no-any

View file

@ -18,8 +18,8 @@ import {
} from './GenericFunctions';
import {
issueOperations,
issueFields,
issueOperations,
} from './IssueDescription';
import {

View file

@ -5,16 +5,16 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {
jiraSoftwareCloudApiRequest,
allEvents,
eventExists,
getId,
allEvents,
jiraSoftwareCloudApiRequest,
} from './GenericFunctions';
import * as queryString from 'querystring';

View file

@ -9,8 +9,8 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -3,13 +3,13 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
ILoadOptionsFunctions,
INodePropertyOptions,
IBinaryKeyData,
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -19,57 +19,57 @@ import {
} from './GenericFunctions';
import {
contactOperations,
contactFields,
contactOperations,
} from './ContactDescription';
import {
contactNoteOperations,
contactNoteFields,
contactNoteOperations,
} from './ContactNoteDescription';
import {
contactTagOperations,
contactTagFields,
contactTagOperations,
} from './ContactTagDescription';
import {
ecommerceOrderOperations,
ecommerceOrderFields,
ecommerceOrderOperations,
} from './EcommerceOrderDescripion';
import {
ecommerceProductOperations,
ecommerceProductFields,
ecommerceProductOperations,
} from './EcommerceProductDescription';
import {
emailOperations,
emailFields,
emailOperations,
} from './EmailDescription';
import {
fileOperations,
fileFields,
fileOperations,
} from './FileDescription';
import {
companyOperations,
companyFields,
companyOperations,
} from './CompanyDescription';
import {
IContact,
IAddress,
IFax,
IContact,
IEmailContact,
ISocialAccount,
IFax,
IPhone,
ISocialAccount,
} from './ConctactInterface';
import {
IEmail,
IAttachment,
IEmail,
} from './EmaiIInterface';
import {

View file

@ -5,11 +5,11 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResponseData,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {

View file

@ -1,9 +1,9 @@
import { IExecuteSingleFunctions } from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
export class LinkFish implements INodeType {

View file

@ -1,14 +1,20 @@
import { IExecuteFunctions, BINARY_ENCODING } from 'n8n-core';
import {
BINARY_ENCODING,
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { linkedInApiRequest } from './GenericFunctions';
import { postOperations, postFields } from './PostDescription';
import {
postFields,
postOperations,
} from './PostDescription';
export class LinkedIn implements INodeType {
description: INodeTypeDescription = {

View file

@ -5,11 +5,11 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResponseData,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';
import {
mailchimpApiRequest,

View file

@ -4,9 +4,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';

View file

@ -3,9 +3,9 @@ import {
} from 'n8n-core';
import {
IDataObject,
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
mailjetApiRequest,

View file

@ -5,8 +5,8 @@ import {
import {
IDataObject,
INodeTypeDescription,
INodeType,
INodeTypeDescription,
IWebhookResponseData,
} from 'n8n-workflow';

View file

@ -5,10 +5,10 @@ import {
import {
IDataObject,
ILoadOptionsFunctions,
INodeTypeDescription,
INodePropertyOptions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {

View file

@ -2,9 +2,9 @@ import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
IExecuteSingleFunctions,
IHookFunctions,
ILoadOptionsFunctions,
IExecuteSingleFunctions
} from 'n8n-core';
import {

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