refactor: Run lintfix (no-changelog) (#7537)

- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
This commit is contained in:
Iván Ovejero
2023-10-27 14:15:02 +02:00
committed by GitHub
parent 1c4ac02db5
commit 62c096710f
477 changed files with 706 additions and 1003 deletions

View File

@@ -7,11 +7,10 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import moment from 'moment';
import type { IRecord } from './v1/GenericFunctions';
import { apiRequestAllItems, downloadRecordAttachments } from './v1/GenericFunctions';
import moment from 'moment';
export class AirtableTrigger implements INodeType {
description: INodeTypeDescription = {
displayName: 'Airtable Trigger',

View File

@@ -9,11 +9,10 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import type { IRecord } from './GenericFunctions';
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from './GenericFunctions';
import { oldVersionNotice } from '../../../utils/descriptions';
import { generatePairedItemData } from '../../../utils/utilities';
import type { IRecord } from './GenericFunctions';
import { apiRequest, apiRequestAllItems, downloadRecordAttachments } from './GenericFunctions';
const versionDescription: INodeTypeDescription = {
displayName: 'Airtable',

View File

@@ -11,6 +11,9 @@ import type {
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { snakeCase } from 'change-case';
import {
asanaApiRequest,
asanaApiRequestAllItems,
@@ -19,10 +22,6 @@ import {
getWorkspaces,
} from './GenericFunctions';
import moment from 'moment-timezone';
import { snakeCase } from 'change-case';
export class Asana implements INodeType {
description: INodeTypeDescription = {
displayName: 'Asana',

View File

@@ -7,9 +7,8 @@ import type {
IWebhookResponseData,
} from 'n8n-workflow';
import { autopilotApiRequest } from './GenericFunctions';
import { snakeCase } from 'change-case';
import { autopilotApiRequest } from './GenericFunctions';
export class AutopilotTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -10,9 +10,8 @@ import type {
} from 'n8n-workflow';
import { jsonParse, NodeOperationError } from 'n8n-workflow';
import { awsApiRequestSOAP } from './GenericFunctions';
import get from 'lodash/get';
import { awsApiRequestSOAP } from './GenericFunctions';
export class AwsSnsTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,6 +1,5 @@
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
import nock from 'nock';
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
const responseLabels = [
{

View File

@@ -1,7 +1,6 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { paramCase, snakeCase } from 'change-case';
import { createHash } from 'crypto';
import { paramCase, snakeCase } from 'change-case';
import { Builder } from 'xml2js';

View File

@@ -1,7 +1,7 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import { paramCase, snakeCase } from 'change-case';
import { createHash } from 'crypto';
import type { Readable } from 'stream';
import { paramCase, snakeCase } from 'change-case';
import { Builder } from 'xml2js';
@@ -22,7 +22,6 @@ import { folderFields, folderOperations } from './FolderDescription';
import { fileFields, fileOperations } from './FileDescription';
import { awsApiRequestREST, awsApiRequestRESTAllItems } from './GenericFunctions';
import type { Readable } from 'stream';
// Minimum size 5MB for multipart upload in S3
const UPLOAD_CHUNK_SIZE = 5120 * 1024;

View File

@@ -1,3 +1,4 @@
import { URL } from 'url';
import type {
IDataObject,
IExecuteFunctions,
@@ -11,11 +12,8 @@ import type {
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { URL } from 'url';
import { awsApiRequestSOAP } from '../GenericFunctions';
import { pascalCase } from 'change-case';
import { awsApiRequestSOAP } from '../GenericFunctions';
export class AwsSqs implements INodeType {
description: INodeTypeDescription = {

View File

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

View File

@@ -1,10 +1,9 @@
import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import { apiRequest } from '../../../transport';
import moment from 'moment';
import { capitalCase } from 'change-case';
import { apiRequest } from '../../../transport';
export async function create(
this: IExecuteFunctions,

View File

@@ -1,10 +1,9 @@
import type { INodeProperties } from 'n8n-workflow';
import * as create from './create';
import * as get from './get';
import * as getAll from './getAll';
import * as update from './update';
import type { INodeProperties } from 'n8n-workflow';
export { create, get, getAll, update };
export const descriptions: INodeProperties[] = [

View File

@@ -1,11 +1,10 @@
import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { apiRequest } from '../../../transport';
import moment from 'moment';
import { capitalCase } from 'change-case';
import { apiRequest } from '../../../transport';
export async function update(
this: IExecuteFunctions,

View File

@@ -1,11 +1,10 @@
import type { INodeProperties } from 'n8n-workflow';
import * as del from './del';
import * as download from './download';
import * as getAll from './getAll';
import * as update from './update';
import * as upload from './upload';
import type { INodeProperties } from 'n8n-workflow';
export { del, download, getAll, update, upload };
export const descriptions: INodeProperties[] = [

View File

@@ -1,11 +1,10 @@
import type { INodeProperties } from 'n8n-workflow';
import * as del from './del';
import * as download from './download';
import * as getAll from './getAll';
import * as update from './update';
import * as upload from './upload';
import type { INodeProperties } from 'n8n-workflow';
export { del, download, getAll, update, upload };
export const descriptions: INodeProperties[] = [

View File

@@ -9,6 +9,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import {
createDatapoint,
deleteDatapoint,
@@ -18,8 +19,6 @@ import {
import { beeminderApiRequest } from './GenericFunctions';
import moment from 'moment-timezone';
export class Beeminder implements INodeType {
description: INodeTypeDescription = {
displayName: 'Beeminder',

View File

@@ -8,6 +8,8 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import isEmpty from 'lodash/isEmpty';
import partialRight from 'lodash/partialRight';
import {
bitwardenApiRequest as tokenlessBitwardenApiRequest,
getAccessToken,
@@ -32,9 +34,6 @@ import type {
} from './descriptions/MemberDescription';
import { memberFields, memberOperations } from './descriptions/MemberDescription';
import isEmpty from 'lodash/isEmpty';
import partialRight from 'lodash/partialRight';
export class Bitwarden implements INodeType {
description: INodeTypeDescription = {
displayName: 'Bitwarden',

View File

@@ -7,16 +7,14 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { noCase } from 'change-case';
import { boxApiRequest, boxApiRequestAllItems } from './GenericFunctions';
import { fileFields, fileOperations } from './FileDescription';
import { folderFields, folderOperations } from './FolderDescription';
import moment from 'moment-timezone';
import { noCase } from 'change-case';
export class Box implements INodeType {
description: INodeTypeDescription = {
displayName: 'Box',

View File

@@ -243,7 +243,7 @@ export class BrevoTrigger implements INodeType {
const responseData = await BrevoWebhookApi.createWebHook(this, type, events, webhookUrl);
if (responseData === undefined || responseData.id === undefined) {
if (responseData?.id === undefined) {
// Required data is missing so was not successful
return false;
}

View File

@@ -8,6 +8,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { getAttachments, webexApiRequest, webexApiRequestAllItems } from './GenericFunctions';
import {
@@ -19,8 +20,6 @@ import {
messageOperations,
} from './descriptions';
import moment from 'moment-timezone';
export class CiscoWebex implements INodeType {
description: INodeTypeDescription = {
displayName: 'Webex by Cisco',

View File

@@ -1,3 +1,4 @@
import { createHmac } from 'crypto';
import type {
IHookFunctions,
IWebhookFunctions,
@@ -15,8 +16,6 @@ import {
webexApiRequestAllItems,
} from './GenericFunctions';
import { createHmac } from 'crypto';
export class CiscoWebexTrigger implements INodeType {
description: INodeTypeDescription = {
displayName: 'Webex by Cisco Trigger',

View File

@@ -1,3 +1,4 @@
import { createHash } from 'crypto';
import type { OptionsWithUri } from 'request';
import type {
@@ -14,8 +15,6 @@ import { NodeApiError } from 'n8n-workflow';
import upperFirst from 'lodash/upperFirst';
import { createHash } from 'crypto';
export async function webexApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions,
method: string,

View File

@@ -9,6 +9,7 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { clickupApiRequest, clickupApiRequestAllItems, validateJSON } from './GenericFunctions';
import { checklistFields, checklistOperations } from './ChecklistDescription';
@@ -48,8 +49,6 @@ import type { ITask } from './TaskInterface';
import type { IList } from './ListInterface';
import moment from 'moment-timezone';
export class ClickUp implements INodeType {
description: INodeTypeDescription = {
displayName: 'ClickUp',

View File

@@ -1,3 +1,4 @@
import { createHmac } from 'crypto';
import type {
IHookFunctions,
IWebhookFunctions,
@@ -11,8 +12,6 @@ import type {
import { clickupApiRequest } from './GenericFunctions';
import { createHmac } from 'crypto';
export class ClickUpTrigger implements INodeType {
description: INodeTypeDescription = {
displayName: 'ClickUp Trigger',

View File

@@ -8,6 +8,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { clockifyApiRequest, clockifyApiRequestAllItems } from './GenericFunctions';
import type { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
@@ -30,8 +31,6 @@ import { userFields, userOperations } from './UserDescription';
import { workspaceFields, workspaceOperations } from './WorkspaceDescription';
import moment from 'moment-timezone';
export class Clockify implements INodeType {
description: INodeTypeDescription = {
displayName: 'Clockify',

View File

@@ -1,9 +1,8 @@
import { EventEmitter } from 'events';
import type { IExecuteFunctions, INodeExecutionData, IWorkflowDataProxyData } from 'n8n-workflow';
import { ValidationError } from './ValidationError';
import { isObject } from './utils';
import type { IExecuteFunctions, INodeExecutionData, IWorkflowDataProxyData } from 'n8n-workflow';
interface SandboxTextKeys {
object: {
singular: string;

View File

@@ -3,9 +3,9 @@ import { NodeVM } from '@n8n/vm2';
import type { IExecuteFunctions, IWorkflowDataProxyData } from 'n8n-workflow';
import { NodeHelpers } from 'n8n-workflow';
import { normalizeItems } from 'n8n-core';
import { testWorkflows, getWorkflowFilenames, initBinaryDataService } from '@test/nodes/Helpers';
import { Code } from '../Code.node';
import { ValidationError } from '../ValidationError';
import { testWorkflows, getWorkflowFilenames, initBinaryDataService } from '@test/nodes/Helpers';
describe('Test Code Node', () => {
const workflows = getWorkflowFilenames(__dirname);

View File

@@ -8,14 +8,13 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { coinFields, coinOperations } from './CoinDescription';
import { eventFields, eventOperations } from './EventDescription';
import { coinGeckoApiRequest, coinGeckoRequestAllItems } from './GenericFunctions';
import moment from 'moment-timezone';
export class CoinGecko implements INodeType {
description: INodeTypeDescription = {
displayName: 'CoinGecko',

View File

@@ -1,3 +1,4 @@
import { promisify } from 'util';
import type {
IBinaryKeyData,
IExecuteFunctions,
@@ -8,8 +9,6 @@ import type {
import * as fflate from 'fflate';
import { promisify } from 'util';
const gunzip = promisify(fflate.gunzip);
const gzip = promisify(fflate.gzip);
const unzip = promisify(fflate.unzip);

View File

@@ -1,6 +1,8 @@
/* eslint-disable @typescript-eslint/no-loop-func */
import type { WorkflowTestData } from '@test/nodes/types';
import path from 'path';
import os from 'node:os';
import type { IDataObject } from 'n8n-workflow';
import type { WorkflowTestData } from '@test/nodes/types';
import {
getResultNodeData,
@@ -10,9 +12,6 @@ import {
} from '@test/nodes/Helpers';
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
import path from 'path';
import os from 'node:os';
if (os.platform() !== 'win32') {
describe('Execute Compression Node', () => {
beforeEach(async () => {

View File

@@ -9,9 +9,8 @@ import type {
IWebhookResponseData,
} from 'n8n-workflow';
import { convertKitApiRequest } from './GenericFunctions';
import { snakeCase } from 'change-case';
import { convertKitApiRequest } from './GenericFunctions';
export class ConvertKitTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,7 +1,4 @@
import { cortexApiRequest, getEntityLabel, prepareParameters, splitTags } from './GenericFunctions';
import { analyzerFields, analyzersOperations } from './AnalyzerDescriptions';
import { createHash } from 'crypto';
import type {
IDataObject,
IExecuteFunctions,
@@ -11,19 +8,18 @@ import type {
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import upperFirst from 'lodash/upperFirst';
import * as changeCase from 'change-case';
import { cortexApiRequest, getEntityLabel, prepareParameters, splitTags } from './GenericFunctions';
import { analyzerFields, analyzersOperations } from './AnalyzerDescriptions';
import { responderFields, respondersOperations } from './ResponderDescription';
import { jobFields, jobOperations } from './JobDescription';
import upperFirst from 'lodash/upperFirst';
import type { IJob } from './AnalyzerInterface';
import { createHash } from 'crypto';
import * as changeCase from 'change-case';
export class Cortex implements INodeType {
description: INodeTypeDescription = {
displayName: 'Cortex',

View File

@@ -6,6 +6,7 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import pgPromise from 'pg-promise';
import {
generateReturning,
getItemCopy,
@@ -15,8 +16,6 @@ import {
pgUpdate,
} from '../Postgres/v1/genericFunctions';
import pgPromise from 'pg-promise';
export class CrateDb implements INodeType {
description: INodeTypeDescription = {
displayName: 'CrateDB',

View File

@@ -1,10 +1,10 @@
import type { INodeProperties } from 'n8n-workflow';
import { resources } from './resources';
import { activityOperations, activityFields } from './activityFields';
import { memberFields, memberOperations } from './memberFields';
import { noteFields, noteOperations } from './noteFields';
import { organizationFields, organizationOperations } from './organizationFields';
import { taskFields, taskOperations } from './taskFields';
import type { INodeProperties } from 'n8n-workflow';
import { automationFields, automationOperations } from './automationFields';
export const allProperties: INodeProperties[] = [

View File

@@ -1,7 +1,7 @@
import type { INodeProperties } from 'n8n-workflow';
import { memberPresend } from '../GenericFunctions';
import { getAdditionalOptions, getId, mapWith, showFor } from './utils';
import * as shared from './shared';
import { memberPresend } from '../GenericFunctions';
const displayOpts = showFor(['member']);

View File

@@ -1,5 +1,7 @@
import set from 'lodash/set';
import type { BinaryToTextEncoding } from 'crypto';
import { createHash, createHmac, createSign, getHashes, randomBytes } from 'crypto';
import stream from 'stream';
import { promisify } from 'util';
import type {
IExecuteFunctions,
INodeExecutionData,
@@ -8,11 +10,7 @@ import type {
JsonObject,
} from 'n8n-workflow';
import { deepCopy, BINARY_ENCODING } from 'n8n-workflow';
import type { BinaryToTextEncoding } from 'crypto';
import { createHash, createHmac, createSign, getHashes, randomBytes } from 'crypto';
import stream from 'stream';
import { promisify } from 'util';
import set from 'lodash/set';
import { v4 as uuid } from 'uuid';

View File

@@ -8,14 +8,14 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import type { DateTimeUnit, DurationUnit } from 'luxon';
import { DateTime } from 'luxon';
import { CurrentDateDescription } from './CurrentDateDescription';
import { AddToDateDescription } from './AddToDateDescription';
import { SubtractFromDateDescription } from './SubtractFromDateDescription';
import { FormatDateDescription } from './FormatDateDescription';
import { RoundDateDescription } from './RoundDateDescription';
import { GetTimeBetweenDatesDescription } from './GetTimeBetweenDates';
import type { DateTimeUnit, DurationUnit } from 'luxon';
import { DateTime } from 'luxon';
import { ExtractDateDescription } from './ExtractDateDescription';
import { parseDate } from './GenericFunctions';

View File

@@ -5,6 +5,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import { setSeed, array as mfArray } from 'minifaker';
import {
generateCreditCard,
generateIPv4,
@@ -19,7 +20,6 @@ import {
generateUUID,
generateVersion,
} from './randomData';
import { setSeed, array as mfArray } from 'minifaker';
import { generateGarbageMemory, runGarbageCollector } from './functions';
export class DebugHelper implements INodeType {

View File

@@ -1,3 +1,6 @@
import { parse as pathParse } from 'path';
import { writeFile as fsWriteFile } from 'fs';
import { promisify } from 'util';
import type {
IDataObject,
IExecuteFunctions,
@@ -11,9 +14,6 @@ import type {
import { deepCopy } from 'n8n-workflow';
import gm from 'gm';
import { file } from 'tmp-promise';
import { parse as pathParse } from 'path';
import { writeFile as fsWriteFile } from 'fs';
import { promisify } from 'util';
const fsWriteFileAsync = promisify(fsWriteFile);
import getSystemFonts from 'get-system-fonts';

View File

@@ -8,12 +8,11 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { egoiApiRequest, egoiApiRequestAllItems, simplify } from './GenericFunctions';
import type { ICreateMemberBody } from './Interfaces';
import moment from 'moment-timezone';
export class Egoi implements INodeType {
description: INodeTypeDescription = {
displayName: 'E-goi',

View File

@@ -12,6 +12,7 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import type { OptionsWithUri } from 'request';
import {
elasticSecurityApiRequest,
getConnector,
@@ -39,8 +40,6 @@ import type {
ElasticSecurityApiCredentials,
} from './types';
import type { OptionsWithUri } from 'request';
export class ElasticSecurity implements INodeType {
description: INodeTypeDescription = {
displayName: 'Elastic Security',

View File

@@ -7,14 +7,13 @@ import type {
} from 'n8n-workflow';
import { jsonParse } from 'n8n-workflow';
import omit from 'lodash/omit';
import { elasticsearchApiRequest, elasticsearchApiRequestAllItems } from './GenericFunctions';
import { documentFields, documentOperations, indexFields, indexOperations } from './descriptions';
import type { DocumentGetAllOptions, FieldsUiValues } from './types';
import omit from 'lodash/omit';
export class Elasticsearch implements INodeType {
description: INodeTypeDescription = {
displayName: 'Elasticsearch',

View File

@@ -9,7 +9,6 @@ import type {
import * as send from './send.operation';
// eslint-disable-next-line n8n-nodes-base/node-class-description-missing-subtitle
const versionDescription: INodeTypeDescription = {
displayName: 'Send Email',
name: 'emailSend',

View File

@@ -7,14 +7,13 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import isEmpty from 'lodash/isEmpty';
import { emeliaApiTest, emeliaGraphqlRequest, loadResource } from './GenericFunctions';
import { campaignFields, campaignOperations } from './CampaignDescription';
import { contactListFields, contactListOperations } from './ContactListDescription';
import isEmpty from 'lodash/isEmpty';
export class Emelia implements INodeType {
description: INodeTypeDescription = {
displayName: 'Emelia',

View File

@@ -1,3 +1,4 @@
import { exec } from 'child_process';
import type {
IExecuteFunctions,
INodeExecutionData,
@@ -6,8 +7,6 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { exec } from 'child_process';
export interface IExecReturnData {
exitCode: number;
error?: Error;

View File

@@ -6,8 +6,8 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import { getWorkflowInfo } from './GenericFunctions';
import { generatePairedItemData } from '../../utils/utilities';
import { getWorkflowInfo } from './GenericFunctions';
export class ExecuteWorkflow implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,3 +1,4 @@
import { readFile as fsReadFile } from 'fs/promises';
import {
NodeOperationError,
type IExecuteFunctions,
@@ -5,8 +6,6 @@ import {
jsonParse,
} from 'n8n-workflow';
import { readFile as fsReadFile } from 'fs/promises';
export async function getWorkflowInfo(this: IExecuteFunctions, source: string, itemIndex = 0) {
const workflowInfo: IExecuteWorkflowInfo = {};

View File

@@ -1,3 +1,4 @@
import { randomBytes } from 'crypto';
import type {
IHookFunctions,
IWebhookFunctions,
@@ -7,11 +8,8 @@ import type {
IWebhookResponseData,
} from 'n8n-workflow';
import { figmaApiRequest } from './GenericFunctions';
import { snakeCase } from 'change-case';
import { randomBytes } from 'crypto';
import { figmaApiRequest } from './GenericFunctions';
export class FigmaTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -8,6 +8,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import { tz } from 'moment-timezone';
import {
adjustAddress,
adjustAgentRoles,
@@ -57,8 +58,6 @@ import {
import type { AddressFixedCollection, LoadedResource, LoadedUser, RolesParameter } from './types';
import { tz } from 'moment-timezone';
export class Freshservice implements INodeType {
description: INodeTypeDescription = {
displayName: 'Freshservice',

View File

@@ -7,6 +7,9 @@ import type {
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import type { OptionsWithUri } from 'request';
import { omit } from 'lodash';
import type {
AddressFixedCollection,
FreshserviceCredentials,
@@ -14,10 +17,6 @@ import type {
RolesParameter,
} from './types';
import type { OptionsWithUri } from 'request';
import { omit } from 'lodash';
export async function freshserviceApiRequest(
this: IExecuteFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string,

View File

@@ -7,6 +7,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import { tz } from 'moment-timezone';
import {
adjustAccounts,
adjustAttendees,
@@ -38,8 +39,6 @@ import {
import type { FreshworksConfigResponse, LoadedCurrency, LoadedUser, LoadOption } from './types';
import { tz } from 'moment-timezone';
export class FreshworksCrm implements INodeType {
description: INodeTypeDescription = {
displayName: 'Freshworks CRM',

View File

@@ -8,6 +8,7 @@ import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import type { OptionsWithUri } from 'request';
import omit from 'lodash/omit';
import type {
FreshworksConfigResponse,
FreshworksCrmApiCredentials,
@@ -15,8 +16,6 @@ import type {
ViewsResponse,
} from './types';
import omit from 'lodash/omit';
export async function freshworksCrmApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions,
method: string,

View File

@@ -1,3 +1,9 @@
import { createWriteStream } from 'fs';
import { basename, dirname } from 'path';
import type { Readable } from 'stream';
import { pipeline } from 'stream';
import { promisify } from 'util';
import { BINARY_ENCODING, NodeApiError } from 'n8n-workflow';
import type {
ICredentialDataDecryptedObject,
ICredentialsDecrypted,
@@ -10,17 +16,11 @@ import type {
INodeTypeDescription,
JsonObject,
} from 'n8n-workflow';
import { BINARY_ENCODING, NodeApiError } from 'n8n-workflow';
import { formatPrivateKey } from '@utils/utilities';
import { createWriteStream } from 'fs';
import { basename, dirname } from 'path';
import type { Readable } from 'stream';
import { pipeline } from 'stream';
import { promisify } from 'util';
import { file as tmpFile } from 'tmp-promise';
import ftpClient from 'promise-ftp';
import sftpClient from 'ssh2-sftp-client';
import { formatPrivateKey } from '@utils/utilities';
interface ReturnFtpItem {
type: string;

View File

@@ -8,12 +8,11 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { getresponseApiRequest, getResponseApiRequestAllItems } from './GenericFunctions';
import { contactFields, contactOperations } from './ContactDescription';
import moment from 'moment-timezone';
export class GetResponse implements INodeType {
description: INodeTypeDescription = {
displayName: 'GetResponse',

View File

@@ -9,12 +9,11 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { ghostApiRequest, ghostApiRequestAllItems, validateJSON } from './GenericFunctions';
import { postFields, postOperations } from './PostDescription';
import moment from 'moment-timezone';
export class Ghost implements INodeType {
description: INodeTypeDescription = {
displayName: 'Ghost',

View File

@@ -1,3 +1,5 @@
import { access, mkdir } from 'fs/promises';
import { URL } from 'url';
import type {
IExecuteFunctions,
INodeExecutionData,
@@ -5,6 +7,8 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import type { LogOptions, SimpleGit, SimpleGitOptions } from 'simple-git';
import simpleGit from 'simple-git';
import {
addConfigFields,
addFields,
@@ -15,13 +19,6 @@ import {
tagFields,
} from './descriptions';
import type { LogOptions, SimpleGit, SimpleGitOptions } from 'simple-git';
import simpleGit from 'simple-git';
import { access, mkdir } from 'fs/promises';
import { URL } from 'url';
export class Git implements INodeType {
description: INodeTypeDescription = {
displayName: 'Git',

View File

@@ -7,9 +7,9 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { snakeCase } from 'change-case';
import { getFileSha, githubApiRequest, githubApiRequestAllItems } from './GenericFunctions';
import { snakeCase } from 'change-case';
import { getRepositories, getUsers } from './SearchFunctions';
export class Github implements INodeType {

View File

@@ -9,6 +9,20 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import isEmpty from 'lodash/isEmpty';
import omit from 'lodash/omit';
import moment from 'moment-timezone';
import {
goToWebinarApiRequest,
goToWebinarApiRequestAllItems,
handleGetAll,
loadAnswers,
loadRegistranMultiChoiceQuestions,
loadRegistranSimpleQuestions,
loadWebinars,
loadWebinarSessions,
} from './GenericFunctions';
import {
attendeeFields,
attendeeOperations,
@@ -24,22 +38,6 @@ import {
webinarOperations,
} from './descriptions';
import {
goToWebinarApiRequest,
goToWebinarApiRequestAllItems,
handleGetAll,
loadAnswers,
loadRegistranMultiChoiceQuestions,
loadRegistranSimpleQuestions,
loadWebinars,
loadWebinarSessions,
} from './GenericFunctions';
import isEmpty from 'lodash/isEmpty';
import omit from 'lodash/omit';
import moment from 'moment-timezone';
export class GoToWebinar implements INodeType {
description: INodeTypeDescription = {
displayName: 'GoToWebinar',

View File

@@ -10,10 +10,10 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment-timezone';
import { reportFields, reportOperations } from './ReportDescription';
import { userActivityFields, userActivityOperations } from './UserActivityDescription';
import { googleApiRequest, googleApiRequestAllItems, merge, simplify } from './GenericFunctions';
import moment from 'moment-timezone';
import type { IData } from './Interfaces';
import { oldVersionNotice } from '@utils/descriptions';

View File

@@ -1,13 +1,11 @@
import type { INodeTypes } from 'n8n-workflow';
import nock from 'nock';
import * as transport from '../../../v2/transport';
import { setup, workflowToTests } from '@test/nodes/Helpers';
import type { WorkflowTestData } from '@test/nodes/types';
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
import * as transport from '../../../v2/transport';
import nock from 'nock';
jest.mock('../../../v2/transport', () => {
const originalModule = jest.requireActual('../../../v2/transport');
return {

View File

@@ -1,11 +1,10 @@
import type { INodeTypes } from 'n8n-workflow';
import nock from 'nock';
import * as transport from '../../../v2/transport';
import { setup, workflowToTests } from '@test/nodes/Helpers';
import type { WorkflowTestData } from '@test/nodes/types';
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
import nock from 'nock';
import * as transport from '../../../v2/transport';
jest.mock('../../../v2/transport', () => {
const originalModule = jest.requireActual('../../../v2/transport');

View File

@@ -1,11 +1,10 @@
import type { INodeTypes } from 'n8n-workflow';
import nock from 'nock';
import * as transport from '../../../v2/transport';
import { setup, workflowToTests } from '@test/nodes/Helpers';
import type { WorkflowTestData } from '@test/nodes/types';
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
import nock from 'nock';
import * as transport from '../../../v2/transport';
jest.mock('../../../v2/transport', () => {
const originalModule = jest.requireActual('../../../v2/transport');

View File

@@ -1,7 +1,7 @@
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
import { constructExecutionMetaData } from 'n8n-core';
import { prepareOutput } from '../../../v2/helpers/utils';
import { mock } from 'jest-mock-extended';
import { prepareOutput } from '../../../v2/helpers/utils';
describe('Google BigQuery v2 Utils', () => {
it('should prepareOutput', () => {

View File

@@ -13,14 +13,13 @@ import type {
import { NodeApiError } from 'n8n-workflow';
import { v4 as uuid } from 'uuid';
import { generatePairedItemData } from '../../../../utils/utilities';
import { googleApiRequest, googleApiRequestAllItems, simplify } from './GenericFunctions';
import { recordFields, recordOperations } from './RecordDescription';
import { v4 as uuid } from 'uuid';
import { oldVersionNotice } from '@utils/descriptions';
import { generatePairedItemData } from '../../../../utils/utilities';
const versionDescription: INodeTypeDescription = {
displayName: 'Google BigQuery',

View File

@@ -6,11 +6,11 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError, sleep } from 'n8n-workflow';
import { getResolvables, updateDisplayOptions } from '@utils/utilities';
import type { ResponseWithJobReference } from '../../helpers/interfaces';
import { prepareOutput } from '../../helpers/utils';
import { googleApiRequest } from '../../transport';
import { getResolvables, updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -6,10 +6,10 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { v4 as uuid } from 'uuid';
import { generatePairedItemData, updateDisplayOptions } from '@utils/utilities';
import type { TableSchema } from '../../helpers/interfaces';
import { checkSchema, wrapData } from '../../helpers/utils';
import { googleApiRequest } from '../../transport';
import { generatePairedItemData, updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -10,6 +10,8 @@ import type {
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { v4 as uuid } from 'uuid';
import {
encodeURIComponentOnce,
getCalendars,
@@ -24,10 +26,6 @@ import { calendarFields, calendarOperations } from './CalendarDescription';
import type { IEvent } from './EventInterface';
import moment from 'moment-timezone';
import { v4 as uuid } from 'uuid';
export class GoogleCalendar implements INodeType {
description: INodeTypeDescription = {
displayName: 'Google Calendar',

View File

@@ -12,9 +12,10 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import type { IMessage, IMessageUi } from './MessageInterface';
import type { OptionsWithUri } from 'request';
import moment from 'moment-timezone';
import jwt from 'jsonwebtoken';
import type { IMessage, IMessageUi } from './MessageInterface';
import {
// attachmentFields,
@@ -33,9 +34,6 @@ import {
import { googleApiRequest, googleApiRequestAllItems, validateJSON } from './GenericFunctions';
import moment from 'moment-timezone';
import jwt from 'jsonwebtoken';
export class GoogleChat implements INodeType {
description: INodeTypeDescription = {
displayName: 'Google Chat',

View File

@@ -1,5 +1,5 @@
import FormData from 'form-data';
import type { Readable } from 'stream';
import FormData from 'form-data';
import {
BINARY_ENCODING,
type IDataObject,

View File

@@ -8,6 +8,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import moment from 'moment';
import {
allFields,
cleanData,
@@ -17,8 +18,6 @@ import {
import { contactFields, contactOperations } from './ContactDescription';
import moment from 'moment';
export class GoogleContacts implements INodeType {
description: INodeTypeDescription = {
displayName: 'Google Contacts',

View File

@@ -9,10 +9,9 @@ import type {
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import { extractId, googleApiRequest, googleApiRequestAllItems } from './v1/GenericFunctions';
import moment from 'moment';
import { GOOGLE_DRIVE_FILE_URL_REGEX, GOOGLE_DRIVE_FOLDER_URL_REGEX } from '../constants';
import { extractId, googleApiRequest, googleApiRequestAllItems } from './v1/GenericFunctions';
import { fileSearch, folderSearch } from './v2/methods/listSearch';
export class GoogleDriveTrigger implements INodeType {

View File

@@ -1,4 +1,5 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { Readable } from 'stream';
import type {
IBinaryKeyData,
IDataObject,
@@ -10,14 +11,13 @@ import type {
} from 'n8n-workflow';
import { BINARY_ENCODING } from 'n8n-workflow';
import { v4 as uuid } from 'uuid';
import { GOOGLE_DRIVE_FILE_URL_REGEX, GOOGLE_DRIVE_FOLDER_URL_REGEX } from '../../constants';
import { googleApiRequest, googleApiRequestAllItems } from './GenericFunctions';
import { v4 as uuid } from 'uuid';
import type { Readable } from 'stream';
import { driveSearch, fileSearch, folderSearch } from './SearchFunctions';
import { oldVersionNotice } from '@utils/descriptions';
import { GOOGLE_DRIVE_FILE_URL_REGEX, GOOGLE_DRIVE_FOLDER_URL_REGEX } from '../../constants';
const UPLOAD_CHUNK_SIZE = 256 * 1024;

View File

@@ -5,10 +5,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { v4 as uuid } from 'uuid';
import { googleApiRequest } from '../../transport';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -1,8 +1,8 @@
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { sharedDriveRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,9 +5,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { sharedDriveRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,9 +5,8 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest, googleApiRequestAllItems } from '../../transport';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,9 +5,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { sharedDriveRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -6,10 +6,10 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { driveRLC, fileRLC, folderRLC } from '../common.descriptions';
import { setParentFolder } from '../../helpers/utils';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,11 +5,11 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { driveRLC, folderRLC, updateCommonOptions } from '../common.descriptions';
import { googleApiRequest } from '../../transport';
import { DRIVE } from '../../helpers/interfaces';
import { setFileProperties, setParentFolder, setUpdateCommonParams } from '../../helpers/utils';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -1,8 +1,8 @@
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { fileRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -6,9 +6,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { fileRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,10 +5,10 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { driveRLC, fileRLC, folderRLC } from '../common.descriptions';
import { googleApiRequest } from '../../transport';
import { setParentFolder } from '../../helpers/utils';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,9 +5,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { fileRLC, permissionsOptions, shareOptions } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -6,7 +6,6 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import {
getItemBinaryData,
prepareQueryString,
@@ -15,6 +14,7 @@ import {
} from '../../helpers/utils';
import { googleApiRequest } from '../../transport';
import { fileRLC, updateCommonOptions } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,7 +5,6 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { driveRLC, folderRLC, updateCommonOptions } from '../common.descriptions';
import {
@@ -14,6 +13,7 @@ import {
setUpdateCommonParams,
setParentFolder,
} from '../../helpers/utils';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,12 +5,12 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { driveRLC, fileTypesOptions, folderRLC } from '../common.descriptions';
import { googleApiRequest, googleApiRequestAllItems } from '../../transport';
import { prepareQueryString, updateDriveScopes } from '../../helpers/utils';
import type { SearchFilter } from '../../helpers/interfaces';
import { DRIVE, RLC_FOLDER_DEFAULT } from '../../helpers/interfaces';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,11 +5,11 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { driveRLC, folderRLC } from '../common.descriptions';
import { DRIVE } from '../../helpers/interfaces';
import { setParentFolder } from '../../helpers/utils';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -1,8 +1,8 @@
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { folderNoRootRLC } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -5,9 +5,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { updateDisplayOptions } from '@utils/utilities';
import { googleApiRequest } from '../../transport';
import { folderNoRootRLC, permissionsOptions, shareOptions } from '../common.descriptions';
import { updateDisplayOptions } from '@utils/utilities';
const properties: INodeProperties[] = [
{

View File

@@ -1,7 +1,7 @@
import type { Readable } from 'stream';
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
import { BINARY_ENCODING, NodeOperationError } from 'n8n-workflow';
import type { Readable } from 'stream';
import { RLC_DRIVE_DEFAULT, RLC_FOLDER_DEFAULT, UPLOAD_CHUNK_SIZE } from './interfaces';
export function prepareQueryString(fields: string[] | undefined) {

View File

@@ -9,6 +9,7 @@ import type {
} from 'n8n-workflow';
import { jsonParse } from 'n8n-workflow';
import { generatePairedItemData } from '../../../../utils/utilities';
import {
fullDocumentToJson,
googleApiRequest,
@@ -19,7 +20,6 @@ import {
import { collectionFields, collectionOperations } from './CollectionDescription';
import { documentFields, documentOperations } from './DocumentDescription';
import { generatePairedItemData } from '../../../../utils/utilities';
export class GoogleFirebaseCloudFirestore implements INodeType {
description: INodeTypeDescription = {

View File

@@ -8,6 +8,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import { DateTime } from 'luxon';
import {
googleApiRequest,
googleApiRequestAllItems,
@@ -16,8 +17,6 @@ import {
simplifyOutput,
} from './GenericFunctions';
import { DateTime } from 'luxon';
export class GmailTrigger implements INodeType {
description: INodeTypeDescription = {
displayName: 'Gmail Trigger',

View File

@@ -1,7 +1,6 @@
import type { INode } from 'n8n-workflow';
import { prepareTimestamp } from '../../GenericFunctions';
import { DateTime } from 'luxon';
import { prepareTimestamp } from '../../GenericFunctions';
const node: INode = {
id: '1',

View File

@@ -11,6 +11,7 @@ import type {
INodeTypeDescription,
} from 'n8n-workflow';
import isEmpty from 'lodash/isEmpty';
import type { IEmail } from '../GenericFunctions';
import {
encodeEmail,
@@ -28,8 +29,6 @@ import { labelFields, labelOperations } from './LabelDescription';
import { draftFields, draftOperations } from './DraftDescription';
import isEmpty from 'lodash/isEmpty';
import { oldVersionNotice } from '@utils/descriptions';
const versionDescription: INodeTypeDescription = {

View File

@@ -9,6 +9,7 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import ISO6391 from 'iso-639-1';
import type {
AttributesValuesUi,
CommentAnalyzeBody,
@@ -18,8 +19,6 @@ import type {
import { googleApiRequest } from './GenericFunctions';
import ISO6391 from 'iso-639-1';
export class GooglePerspective implements INodeType {
description: INodeTypeDescription = {
displayName: 'Google Perspective',

View File

@@ -7,6 +7,7 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { GOOGLE_DRIVE_FILE_URL_REGEX } from '../constants';
import { apiRequest } from './v2/transport';
import { sheetsSearch, spreadSheetsSearch } from './v2/methods/listSearch';
import { GoogleSheet } from './v2/helpers/GoogleSheet';
@@ -20,7 +21,6 @@ import {
getRevisionFile,
sheetBinaryToArrayOfArrays,
} from './GoogleSheetsTrigger.utils';
import { GOOGLE_DRIVE_FILE_URL_REGEX } from '../constants';
export class GoogleSheetsTrigger implements INodeType {
description: INodeTypeDescription = {

View File

@@ -1,10 +1,10 @@
import type { IDataObject, IPollFunctions } from 'n8n-workflow';
import { apiRequest } from './v2/transport';
import type { SheetDataRow, SheetRangeData } from './v2/helpers/GoogleSheets.types';
import * as XLSX from 'xlsx';
import isEqual from 'lodash/isEqual';
import zip from 'lodash/zip';
import type { SheetDataRow, SheetRangeData } from './v2/helpers/GoogleSheets.types';
import { apiRequest } from './v2/transport';
export const BINARY_MIME_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';

View File

@@ -1,11 +1,10 @@
import type { IExecuteFunctions, ILoadOptionsFunctions, IDataObject } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { googleApiRequest } from './GenericFunctions';
import { utils as xlsxUtils } from 'xlsx';
import get from 'lodash/get';
import { googleApiRequest } from './GenericFunctions';
export interface ISheetOptions {
scope: string[];

View File

@@ -13,6 +13,8 @@ import type {
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { getGoogleAccessToken } from '../../GenericFunctions';
import { generatePairedItemData } from '../../../../utils/utilities';
import type {
ILookupValues,
ISheetUpdateData,
@@ -25,8 +27,6 @@ import { GoogleSheet } from './GoogleSheet';
import { googleApiRequest, hexToRgb } from './GenericFunctions';
import { versionDescription } from './versionDescription';
import { getGoogleAccessToken } from '../../GenericFunctions';
import { generatePairedItemData } from '../../../../utils/utilities';
export class GoogleSheetsV1 implements INodeType {
description: INodeTypeDescription;

View File

@@ -1,9 +1,9 @@
import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
import * as sheet from './sheet/Sheet.resource';
import * as spreadsheet from './spreadsheet/SpreadSheet.resource';
import { GoogleSheet } from '../helpers/GoogleSheet';
import { getSpreadsheetId } from '../helpers/GoogleSheets.utils';
import type { GoogleSheets, ResourceLocator } from '../helpers/GoogleSheets.types';
import * as spreadsheet from './spreadsheet/SpreadSheet.resource';
import * as sheet from './sheet/Sheet.resource';
export async function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
let operationResult: INodeExecutionData[] = [];

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