diff --git a/packages/@n8n_io/eslint-config/base.js b/packages/@n8n_io/eslint-config/base.js index 41f42b95aa521..25543c4ff7f41 100644 --- a/packages/@n8n_io/eslint-config/base.js +++ b/packages/@n8n_io/eslint-config/base.js @@ -339,6 +339,8 @@ const config = (module.exports = { 'n8n-local-rules/no-json-parse-json-stringify': 'error', + 'n8n-local-rules/no-unneeded-backticks': 'error', + // ****************************************************************** // overrides to base ruleset // ****************************************************************** diff --git a/packages/@n8n_io/eslint-config/local-rules.js b/packages/@n8n_io/eslint-config/local-rules.js index 75f307d1e3bae..c7a6968fe3430 100644 --- a/packages/@n8n_io/eslint-config/local-rules.js +++ b/packages/@n8n_io/eslint-config/local-rules.js @@ -106,6 +106,39 @@ module.exports = { }; }, }, + + 'no-unneeded-backticks': { + meta: { + type: 'problem', + docs: { + description: + 'Template literal backticks may only be used for string interpolation or multiline strings.', + recommended: 'error', + }, + messages: { + noUneededBackticks: 'Use single or double quotes, not backticks', + }, + fixable: 'code', + }, + create(context) { + return { + TemplateLiteral(node) { + if (node.expressions.length > 0) return; + if (node.quasis.every((q) => q.loc.start.line !== q.loc.end.line)) return; + + node.quasis.forEach((q) => { + const escaped = q.value.raw.replace(/(? fixer.replaceText(q, `'${escaped}'`), + }); + }); + }, + }; + }, + }, }; const isJsonParseCall = (node) => diff --git a/packages/cli/src/ActiveWorkflowRunner.ts b/packages/cli/src/ActiveWorkflowRunner.ts index 901348fb18b8e..20c094ff06847 100644 --- a/packages/cli/src/ActiveWorkflowRunner.ts +++ b/packages/cli/src/ActiveWorkflowRunner.ts @@ -62,7 +62,8 @@ import { WorkflowRunner } from '@/WorkflowRunner'; import { ExternalHooks } from '@/ExternalHooks'; import { whereClause } from './UserManagement/UserManagementHelper'; -const WEBHOOK_PROD_UNREGISTERED_HINT = `The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)`; +const WEBHOOK_PROD_UNREGISTERED_HINT = + "The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"; export class ActiveWorkflowRunner { private activeWorkflows: ActiveWorkflows | null = null; @@ -118,11 +119,11 @@ export class ActiveWorkflowRunner { workflowName: workflowData.name, workflowId: workflowData.id, }); - console.log(` => Started`); + console.log(' => Started'); } catch (error) { ErrorReporter.error(error); console.log( - ` => ERROR: Workflow could not be activated on first try, keep on trying`, + ' => ERROR: Workflow could not be activated on first try, keep on trying', ); // eslint-disable-next-line @typescript-eslint/restrict-template-expressions console.log(` ${error.message}`); @@ -773,7 +774,7 @@ export class ActiveWorkflowRunner { workflowData?: IWorkflowDb, ): Promise { if (this.activeWorkflows === null) { - throw new Error(`The "activeWorkflows" instance did not get initialized yet.`); + throw new Error('The "activeWorkflows" instance did not get initialized yet.'); } let workflowInstance: Workflow; @@ -806,7 +807,7 @@ export class ActiveWorkflowRunner { if (!canBeActivated) { Logger.error(`Unable to activate workflow "${workflowData.name}"`); throw new Error( - `The workflow can not be activated because it does not contain any nodes which could start the workflow. Only workflows which have trigger or webhook nodes can be activated.`, + 'The workflow can not be activated because it does not contain any nodes which could start the workflow. Only workflows which have trigger or webhook nodes can be activated.', ); } @@ -1001,7 +1002,7 @@ export class ActiveWorkflowRunner { return; } - throw new Error(`The "activeWorkflows" instance did not get initialized yet.`); + throw new Error('The "activeWorkflows" instance did not get initialized yet.'); } } diff --git a/packages/cli/src/Push.ts b/packages/cli/src/Push.ts index 4179b161f8baa..74a399e037288 100644 --- a/packages/cli/src/Push.ts +++ b/packages/cli/src/Push.ts @@ -13,7 +13,7 @@ export class Push { this.channel.on('disconnect', (channel: string, res: Response) => { if (res.req !== undefined) { const { sessionId } = res.req.query; - Logger.debug(`Remove editor-UI session`, { sessionId }); + Logger.debug('Remove editor-UI session', { sessionId }); delete this.connections[sessionId as string]; } }); @@ -27,7 +27,7 @@ export class Push { * @param {Response} res The response */ add(sessionId: string, req: Request, res: Response) { - Logger.debug(`Add editor-UI session`, { sessionId }); + Logger.debug('Add editor-UI session', { sessionId }); if (this.connections[sessionId] !== undefined) { // Make sure to remove existing connection with the same session diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index eb0728f6b2bfb..d28f2e571884f 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -1031,7 +1031,7 @@ class App { const parameters = toHttpNodeParameters(curlCommand); return ResponseHelper.flattenObject(parameters, 'parameters'); } catch (e) { - throw new ResponseHelper.BadRequestError(`Invalid cURL command`); + throw new ResponseHelper.BadRequestError('Invalid cURL command'); } }, ), diff --git a/packages/cli/src/TestWebhooks.ts b/packages/cli/src/TestWebhooks.ts index a146907e37322..ffb77d9cd7ba0 100644 --- a/packages/cli/src/TestWebhooks.ts +++ b/packages/cli/src/TestWebhooks.ts @@ -18,7 +18,8 @@ import * as Push from '@/Push'; import * as ResponseHelper from '@/ResponseHelper'; import * as WebhookHelpers from '@/WebhookHelpers'; -const WEBHOOK_TEST_UNREGISTERED_HINT = `Click the 'Execute workflow' button on the canvas, then try again. (In test mode, the webhook only works for one call after you click this button)`; +const WEBHOOK_TEST_UNREGISTERED_HINT = + "Click the 'Execute workflow' button on the canvas, then try again. (In test mode, the webhook only works for one call after you click this button)"; export class TestWebhooks { private testWebhookData: { diff --git a/packages/cli/src/UserManagement/routes/users.ts b/packages/cli/src/UserManagement/routes/users.ts index 803926117186d..50ffe722545fc 100644 --- a/packages/cli/src/UserManagement/routes/users.ts +++ b/packages/cli/src/UserManagement/routes/users.ts @@ -127,7 +127,7 @@ export function usersNamespace(this: N8nApp): void { const usersToSetUp = Object.keys(createUsers).filter((email) => createUsers[email] === null); const total = usersToSetUp.length; - Logger.debug(total > 1 ? `Creating ${total} user shells...` : `Creating 1 user shell...`); + Logger.debug(total > 1 ? `Creating ${total} user shells...` : 'Creating 1 user shell...'); try { await Db.transaction(async (transactionManager) => { @@ -156,7 +156,7 @@ export function usersNamespace(this: N8nApp): void { } Logger.info('Created user shell(s) successfully', { userId: req.user.id }); - Logger.verbose(total > 1 ? `${total} user shells created` : `1 user shell created`, { + Logger.verbose(total > 1 ? `${total} user shells created` : '1 user shell created', { userShells: createUsers, }); @@ -200,7 +200,7 @@ export function usersNamespace(this: N8nApp): void { domain: baseUrl, email, }); - resp.error = `Email could not be sent`; + resp.error = 'Email could not be sent'; } return resp; }), @@ -211,7 +211,7 @@ export function usersNamespace(this: N8nApp): void { Logger.debug( usersPendingSetup.length > 1 ? `Sent ${usersPendingSetup.length} invite emails successfully` - : `Sent 1 invite email successfully`, + : 'Sent 1 invite email successfully', { userShells: createUsers }, ); diff --git a/packages/cli/src/WorkflowExecuteAdditionalData.ts b/packages/cli/src/WorkflowExecuteAdditionalData.ts index 1732682f65499..201fc8d428c60 100644 --- a/packages/cli/src/WorkflowExecuteAdditionalData.ts +++ b/packages/cli/src/WorkflowExecuteAdditionalData.ts @@ -137,7 +137,7 @@ export function executeErrorWorkflow( workflowData.settings.errorWorkflow.toString() === workflowData.id.toString() ) ) { - Logger.verbose(`Start external error workflow`, { + Logger.verbose('Start external error workflow', { executionId, errorWorkflowId: workflowData.settings.errorWorkflow.toString(), workflowId: workflowData.id, @@ -177,7 +177,7 @@ export function executeErrorWorkflow( workflowData.id !== undefined && workflowData.nodes.some((node) => node.type === ERROR_TRIGGER_TYPE) ) { - Logger.verbose(`Start internal error workflow`, { executionId, workflowId: workflowData.id }); + Logger.verbose('Start internal error workflow', { executionId, workflowId: workflowData.id }); void getWorkflowOwner(workflowData.id).then((user) => { void WorkflowHelpers.executeErrorWorkflow( workflowData.id!.toString(), @@ -293,7 +293,7 @@ function hookFunctionsPush(): IWorkflowExecuteHooks { ], workflowExecuteBefore: [ async function (this: WorkflowHooks): Promise { - Logger.debug(`Executing hook (hookFunctionsPush)`, { + Logger.debug('Executing hook (hookFunctionsPush)', { executionId: this.executionId, sessionId: this.sessionId, workflowId: this.workflowData.id, @@ -324,7 +324,7 @@ function hookFunctionsPush(): IWorkflowExecuteHooks { fullRunData: IRun, newStaticData: IDataObject, ): Promise { - Logger.debug(`Executing hook (hookFunctionsPush)`, { + Logger.debug('Executing hook (hookFunctionsPush)', { executionId: this.executionId, sessionId: this.sessionId, workflowId: this.workflowData.id, @@ -490,7 +490,7 @@ function hookFunctionsSave(parentProcessMode?: string): IWorkflowExecuteHooks { fullRunData: IRun, newStaticData: IDataObject, ): Promise { - Logger.debug(`Executing hook (hookFunctionsSave)`, { + Logger.debug('Executing hook (hookFunctionsSave)', { executionId: this.executionId, workflowId: this.workflowData.id, }); @@ -830,7 +830,7 @@ export async function getWorkflowData( ): Promise { if (workflowInfo.id === undefined && workflowInfo.code === undefined) { throw new Error( - `No information about the workflow to execute found. Please provide either the "id" or "code"!`, + 'No information about the workflow to execute found. Please provide either the "id" or "code"!', ); } diff --git a/packages/cli/src/api/e2e.api.ts b/packages/cli/src/api/e2e.api.ts index ff9528d78f76c..eeb667f67a78c 100644 --- a/packages/cli/src/api/e2e.api.ts +++ b/packages/cli/src/api/e2e.api.ts @@ -67,7 +67,7 @@ const setupUserManagement = async () => { `INSERT INTO user (id, globalRoleId) values ("${uuid()}", ${instanceOwnerRole[0].insertId})`, ); await connection.query( - `INSERT INTO "settings" (key, value, loadOnStartup) values ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true)`, + "INSERT INTO \"settings\" (key, value, loadOnStartup) values ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true)", ); }; diff --git a/packages/cli/src/commands/db/revert.ts b/packages/cli/src/commands/db/revert.ts index 8b86226e0dffe..497dae6df1b01 100644 --- a/packages/cli/src/commands/db/revert.ts +++ b/packages/cli/src/commands/db/revert.ts @@ -31,7 +31,7 @@ export class DbRevertMigrationCommand extends Command { connection = Db.collections.Credentials.manager.connection; if (!connection) { - throw new Error(`No database connection available.`); + throw new Error('No database connection available.'); } const connectionOptions: ConnectionOptions = Object.assign(connection.options, { diff --git a/packages/cli/src/commands/execute.ts b/packages/cli/src/commands/execute.ts index 883c04d12bf4d..8e1ad433e7b04 100644 --- a/packages/cli/src/commands/execute.ts +++ b/packages/cli/src/commands/execute.ts @@ -26,7 +26,7 @@ import { findCliWorkflowStart } from '@/utils'; export class Execute extends Command { static description = '\nExecutes a given workflow'; - static examples = [`$ n8n execute --id=5`, `$ n8n execute --file=workflow.json`]; + static examples = ['$ n8n execute --id=5', '$ n8n execute --file=workflow.json']; static flags = { help: flags.help({ char: 'h' }), @@ -59,12 +59,12 @@ export class Execute extends Command { const loadNodesAndCredentialsPromise = loadNodesAndCredentials.init(); if (!flags.id && !flags.file) { - console.info(`Either option "--id" or "--file" have to be set!`); + console.info('Either option "--id" or "--file" have to be set!'); return; } if (flags.id && flags.file) { - console.info(`Either "id" or "file" can be set never both!`); + console.info('Either "id" or "file" can be set never both!'); return; } diff --git a/packages/cli/src/commands/executeBatch.ts b/packages/cli/src/commands/executeBatch.ts index 960cf6912315a..e89b49893eba1 100644 --- a/packages/cli/src/commands/executeBatch.ts +++ b/packages/cli/src/commands/executeBatch.ts @@ -58,12 +58,12 @@ export class ExecuteBatch extends Command { static instanceOwner: User; static examples = [ - `$ n8n executeBatch`, - `$ n8n executeBatch --concurrency=10 --skipList=/data/skipList.txt`, - `$ n8n executeBatch --debug --output=/data/output.json`, - `$ n8n executeBatch --ids=10,13,15 --shortOutput`, - `$ n8n executeBatch --snapshot=/data/snapshots --shallow`, - `$ n8n executeBatch --compare=/data/previousExecutionData --retries=2`, + '$ n8n executeBatch', + '$ n8n executeBatch --concurrency=10 --skipList=/data/skipList.txt', + '$ n8n executeBatch --debug --output=/data/output.json', + '$ n8n executeBatch --ids=10,13,15 --shortOutput', + '$ n8n executeBatch --snapshot=/data/snapshots --shallow', + '$ n8n executeBatch --compare=/data/previousExecutionData --retries=2', ]; static flags = { @@ -205,11 +205,11 @@ export class ExecuteBatch extends Command { if (flags.snapshot !== undefined) { if (fs.existsSync(flags.snapshot)) { if (!fs.lstatSync(flags.snapshot).isDirectory()) { - console.log(`The parameter --snapshot must be an existing directory`); + console.log('The parameter --snapshot must be an existing directory'); return; } } else { - console.log(`The parameter --snapshot must be an existing directory`); + console.log('The parameter --snapshot must be an existing directory'); return; } @@ -218,11 +218,11 @@ export class ExecuteBatch extends Command { if (flags.compare !== undefined) { if (fs.existsSync(flags.compare)) { if (!fs.lstatSync(flags.compare).isDirectory()) { - console.log(`The parameter --compare must be an existing directory`); + console.log('The parameter --compare must be an existing directory'); return; } } else { - console.log(`The parameter --compare must be an existing directory`); + console.log('The parameter --compare must be an existing directory'); return; } @@ -232,7 +232,7 @@ export class ExecuteBatch extends Command { if (flags.output !== undefined) { if (fs.existsSync(flags.output)) { if (fs.lstatSync(flags.output).isDirectory()) { - console.log(`The parameter --output must be a writable file`); + console.log('The parameter --output must be a writable file'); return; } } @@ -251,7 +251,7 @@ export class ExecuteBatch extends Command { if (matchedIds.length === 0) { console.log( - `The parameter --ids must be a list of numeric IDs separated by a comma or a file with this content.`, + 'The parameter --ids must be a list of numeric IDs separated by a comma or a file with this content.', ); return; } @@ -294,11 +294,11 @@ export class ExecuteBatch extends Command { const query = Db.collections.Workflow.createQueryBuilder('workflows'); if (ids.length > 0) { - query.andWhere(`workflows.id in (:...ids)`, { ids }); + query.andWhere('workflows.id in (:...ids)', { ids }); } if (skipIds.length > 0) { - query.andWhere(`workflows.id not in (:...skipIds)`, { skipIds }); + query.andWhere('workflows.id not in (:...skipIds)', { skipIds }); } // eslint-disable-next-line prefer-const diff --git a/packages/cli/src/commands/export/credentials.ts b/packages/cli/src/commands/export/credentials.ts index 7a785b77c4712..246ec827930ea 100644 --- a/packages/cli/src/commands/export/credentials.ts +++ b/packages/cli/src/commands/export/credentials.ts @@ -18,11 +18,11 @@ export class ExportCredentialsCommand extends Command { static description = 'Export credentials'; static examples = [ - `$ n8n export:credentials --all`, - `$ n8n export:credentials --id=5 --output=file.json`, - `$ n8n export:credentials --all --output=backups/latest.json`, - `$ n8n export:credentials --backup --output=backups/latest/`, - `$ n8n export:credentials --all --decrypted --output=backups/decrypted.json`, + '$ n8n export:credentials --all', + '$ n8n export:credentials --id=5 --output=file.json', + '$ n8n export:credentials --all --output=backups/latest.json', + '$ n8n export:credentials --backup --output=backups/latest/', + '$ n8n export:credentials --all --decrypted --output=backups/decrypted.json', ]; static flags = { @@ -69,25 +69,25 @@ export class ExportCredentialsCommand extends Command { } if (!flags.all && !flags.id) { - console.info(`Either option "--all" or "--id" have to be set!`); + console.info('Either option "--all" or "--id" have to be set!'); return; } if (flags.all && flags.id) { - console.info(`You should either use "--all" or "--id" but never both!`); + console.info('You should either use "--all" or "--id" but never both!'); return; } if (flags.separate) { try { if (!flags.output) { - console.info(`You must inform an output directory via --output when using --separate`); + console.info('You must inform an output directory via --output when using --separate'); return; } if (fs.existsSync(flags.output)) { if (!fs.lstatSync(flags.output).isDirectory()) { - console.info(`The parameter --output must be a directory`); + console.info('The parameter --output must be a directory'); return; } } else { @@ -106,7 +106,7 @@ export class ExportCredentialsCommand extends Command { } else if (flags.output) { if (fs.existsSync(flags.output)) { if (fs.lstatSync(flags.output).isDirectory()) { - console.info(`The parameter --output must be a writeable file`); + console.info('The parameter --output must be a writeable file'); return; } } diff --git a/packages/cli/src/commands/export/workflow.ts b/packages/cli/src/commands/export/workflow.ts index cc863c9ccbffe..277c7a75e510f 100644 --- a/packages/cli/src/commands/export/workflow.ts +++ b/packages/cli/src/commands/export/workflow.ts @@ -14,10 +14,10 @@ export class ExportWorkflowsCommand extends Command { static description = 'Export workflows'; static examples = [ - `$ n8n export:workflow --all`, - `$ n8n export:workflow --id=5 --output=file.json`, - `$ n8n export:workflow --all --output=backups/latest/`, - `$ n8n export:workflow --backup --output=backups/latest/`, + '$ n8n export:workflow --all', + '$ n8n export:workflow --id=5 --output=file.json', + '$ n8n export:workflow --all --output=backups/latest/', + '$ n8n export:workflow --backup --output=backups/latest/', ]; static flags = { @@ -60,25 +60,25 @@ export class ExportWorkflowsCommand extends Command { } if (!flags.all && !flags.id) { - console.info(`Either option "--all" or "--id" have to be set!`); + console.info('Either option "--all" or "--id" have to be set!'); return; } if (flags.all && flags.id) { - console.info(`You should either use "--all" or "--id" but never both!`); + console.info('You should either use "--all" or "--id" but never both!'); return; } if (flags.separate) { try { if (!flags.output) { - console.info(`You must inform an output directory via --output when using --separate`); + console.info('You must inform an output directory via --output when using --separate'); return; } if (fs.existsSync(flags.output)) { if (!fs.lstatSync(flags.output).isDirectory()) { - console.info(`The parameter --output must be a directory`); + console.info('The parameter --output must be a directory'); return; } } else { @@ -97,7 +97,7 @@ export class ExportWorkflowsCommand extends Command { } else if (flags.output) { if (fs.existsSync(flags.output)) { if (fs.lstatSync(flags.output).isDirectory()) { - console.info(`The parameter --output must be a writeable file`); + console.info('The parameter --output must be a writeable file'); return; } } diff --git a/packages/cli/src/commands/license/clear.ts b/packages/cli/src/commands/license/clear.ts index 7c94924bacf9a..c2dc3d35faf31 100644 --- a/packages/cli/src/commands/license/clear.ts +++ b/packages/cli/src/commands/license/clear.ts @@ -10,7 +10,7 @@ import { SETTINGS_LICENSE_CERT_KEY } from '@/constants'; export class ClearLicenseCommand extends Command { static description = 'Clear license'; - static examples = [`$ n8n clear:license`]; + static examples = ['$ n8n clear:license']; async run() { const logger = getLogger(); diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.ts index 9d9e084a76ea5..9ed95a2b9f676 100644 --- a/packages/cli/src/commands/start.ts +++ b/packages/cli/src/commands/start.ts @@ -55,10 +55,10 @@ export class Start extends Command { static description = 'Starts n8n. Makes Web-UI available and starts active workflows'; static examples = [ - `$ n8n start`, - `$ n8n start --tunnel`, - `$ n8n start -o`, - `$ n8n start --tunnel -o`, + '$ n8n start', + '$ n8n start --tunnel', + '$ n8n start -o', + '$ n8n start --tunnel -o', ]; static flags = { @@ -117,7 +117,7 @@ export class Start extends Command { setTimeout(() => { // In case that something goes wrong with shutdown we // kill after max. 30 seconds no matter what - console.log(`process exited after 30s`); + console.log('process exited after 30s'); exit(); }, 30000); @@ -499,7 +499,7 @@ export class Start extends Command { if (flags.open) { Start.openBrowser(); } - this.log(`\nPress "o" to open in Browser.`); + this.log('\nPress "o" to open in Browser.'); process.stdin.on('data', (key: string) => { if (key === 'o') { Start.openBrowser(); diff --git a/packages/cli/src/commands/update/workflow.ts b/packages/cli/src/commands/update/workflow.ts index e3ace2984b08f..eb2cbff7aaaff 100644 --- a/packages/cli/src/commands/update/workflow.ts +++ b/packages/cli/src/commands/update/workflow.ts @@ -13,8 +13,8 @@ export class UpdateWorkflowCommand extends Command { static description = 'Update workflows'; static examples = [ - `$ n8n update:workflow --all --active=false`, - `$ n8n update:workflow --id=5 --active=true`, + '$ n8n update:workflow --all --active=false', + '$ n8n update:workflow --id=5 --active=true', ]; static flags = { @@ -39,24 +39,24 @@ export class UpdateWorkflowCommand extends Command { const { flags } = this.parse(UpdateWorkflowCommand); if (!flags.all && !flags.id) { - console.info(`Either option "--all" or "--id" have to be set!`); + console.info('Either option "--all" or "--id" have to be set!'); return; } if (flags.all && flags.id) { console.info( - `Either something else on top should be "--all" or "--id" can be set never both!`, + 'Either something else on top should be "--all" or "--id" can be set never both!', ); return; } const updateQuery: IDataObject = {}; if (flags.active === undefined) { - console.info(`No update flag like "--active=true" has been set!`); + console.info('No update flag like "--active=true" has been set!'); return; } if (!['false', 'true'].includes(flags.active)) { - console.info(`Valid values for flag "--active" are only "false" or "true"!`); + console.info('Valid values for flag "--active" are only "false" or "true"!'); return; } updateQuery.active = flags.active === 'true'; diff --git a/packages/cli/src/commands/webhook.ts b/packages/cli/src/commands/webhook.ts index 25cacb59d6917..657cf3d4ebd61 100644 --- a/packages/cli/src/commands/webhook.ts +++ b/packages/cli/src/commands/webhook.ts @@ -31,7 +31,7 @@ let processExitCode = 0; export class Webhook extends Command { static description = 'Starts n8n webhook process. Intercepts only production URLs.'; - static examples = [`$ n8n webhook`]; + static examples = ['$ n8n webhook']; static flags = { help: flags.help({ char: 'h' }), @@ -44,7 +44,7 @@ export class Webhook extends Command { */ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types static async stopProcess() { - LoggerProxy.info(`\nStopping n8n...`); + LoggerProxy.info('\nStopping n8n...'); const exit = () => { CrashJournal.cleanup().finally(() => { diff --git a/packages/cli/src/commands/worker.ts b/packages/cli/src/commands/worker.ts index 3be38ccb615e3..b52ad95a06d99 100644 --- a/packages/cli/src/commands/worker.ts +++ b/packages/cli/src/commands/worker.ts @@ -47,7 +47,7 @@ import { generateFailedExecutionFromError } from '@/WorkflowHelpers'; export class Worker extends Command { static description = '\nStarts a n8n worker'; - static examples = [`$ n8n worker --concurrency=5`]; + static examples = ['$ n8n worker --concurrency=5']; static flags = { help: flags.help({ char: 'h' }), @@ -72,7 +72,7 @@ export class Worker extends Command { * get removed. */ static async stopProcess() { - LoggerProxy.info(`Stopping n8n...`); + LoggerProxy.info('Stopping n8n...'); // Stop accepting new jobs // eslint-disable-next-line @typescript-eslint/no-floating-promises diff --git a/packages/cli/src/config/schema.ts b/packages/cli/src/config/schema.ts index 10d2852ad7e5c..29dcaa85a7dae 100644 --- a/packages/cli/src/config/schema.ts +++ b/packages/cli/src/config/schema.ts @@ -833,7 +833,7 @@ export const schema = { env: 'N8N_VERSION_NOTIFICATIONS_ENDPOINT', }, infoUrl: { - doc: `Url in New Versions Panel with more information on updating one's instance.`, + doc: "Url in New Versions Panel with more information on updating one's instance.", format: String, default: 'https://docs.n8n.io/getting-started/installation/updating.html', env: 'N8N_VERSION_NOTIFICATIONS_INFO_URL', diff --git a/packages/cli/src/credentials/credentials.controller.ee.ts b/packages/cli/src/credentials/credentials.controller.ee.ts index e27f30767b6b9..07921d4d1a13d 100644 --- a/packages/cli/src/credentials/credentials.controller.ee.ts +++ b/packages/cli/src/credentials/credentials.controller.ee.ts @@ -60,7 +60,7 @@ EECredentialsController.get( const includeDecryptedData = req.query.includeData === 'true'; if (Number.isNaN(Number(credentialId))) { - throw new ResponseHelper.BadRequestError(`Credential ID must be a number.`); + throw new ResponseHelper.BadRequestError('Credential ID must be a number.'); } let credential = (await EECredentials.get( @@ -77,7 +77,7 @@ EECredentialsController.get( const userSharing = credential.shared?.find((shared) => shared.user.id === req.user.id); if (!userSharing && req.user.globalRole.name !== 'owner') { - throw new ResponseHelper.UnauthorizedError(`Forbidden.`); + throw new ResponseHelper.UnauthorizedError('Forbidden.'); } credential = EECredentials.addOwnerAndSharings(credential); @@ -124,7 +124,7 @@ EECredentialsController.post( const sharing = await EECredentials.getSharing(req.user, credentials.id); if (!ownsCredential) { if (!sharing) { - throw new ResponseHelper.UnauthorizedError(`Forbidden`); + throw new ResponseHelper.UnauthorizedError('Forbidden'); } const decryptedData = await EECredentials.decrypt(encryptionKey, sharing.credentials); diff --git a/packages/cli/src/credentials/credentials.controller.ts b/packages/cli/src/credentials/credentials.controller.ts index 21a90f26b352b..6258b768fb057 100644 --- a/packages/cli/src/credentials/credentials.controller.ts +++ b/packages/cli/src/credentials/credentials.controller.ts @@ -75,7 +75,7 @@ credentialsController.get( const includeDecryptedData = req.query.includeData === 'true'; if (Number.isNaN(Number(credentialId))) { - throw new ResponseHelper.BadRequestError(`Credential ID must be a number.`); + throw new ResponseHelper.BadRequestError('Credential ID must be a number.'); } const sharing = await CredentialsService.getSharing(req.user, credentialId, ['credentials']); diff --git a/packages/cli/src/databases/entities/AbstractEntity.ts b/packages/cli/src/databases/entities/AbstractEntity.ts index befb4669feed5..e12933572ce4a 100644 --- a/packages/cli/src/databases/entities/AbstractEntity.ts +++ b/packages/cli/src/databases/entities/AbstractEntity.ts @@ -5,7 +5,7 @@ import config from '@/config'; const dbType = config.getEnv('database.type'); const timestampSyntax = { - sqlite: `STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')`, + sqlite: "STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')", postgresdb: 'CURRENT_TIMESTAMP(3)', mysqldb: 'CURRENT_TIMESTAMP(3)', mariadb: 'CURRENT_TIMESTAMP(3)', diff --git a/packages/cli/src/executions/executions.service.ts b/packages/cli/src/executions/executions.service.ts index 5e47eb0b6559d..9a268fded5238 100644 --- a/packages/cli/src/executions/executions.service.ts +++ b/packages/cli/src/executions/executions.service.ts @@ -155,7 +155,7 @@ export class ExecutionsService { filter: req.query.filter, }); throw new ResponseHelper.InternalServerError( - `Parameter "filter" contained invalid JSON string.`, + 'Parameter "filter" contained invalid JSON string.', ); } } @@ -211,7 +211,7 @@ export class ExecutionsService { } if (executingWorkflowIds.length > 0) { - rangeQuery.push(`id NOT IN (:...executingWorkflowIds)`); + rangeQuery.push('id NOT IN (:...executingWorkflowIds)'); rangeQueryParams.executingWorkflowIds = executingWorkflowIds; } @@ -440,7 +440,7 @@ export class ExecutionsService { } } catch (error) { throw new ResponseHelper.InternalServerError( - `Parameter "filter" contained invalid JSON string.`, + 'Parameter "filter" contained invalid JSON string.', ); } } diff --git a/packages/cli/src/workflows/workflows.controller.ts b/packages/cli/src/workflows/workflows.controller.ts index f144da5c61935..bd23ccbef7ee2 100644 --- a/packages/cli/src/workflows/workflows.controller.ts +++ b/packages/cli/src/workflows/workflows.controller.ts @@ -125,7 +125,7 @@ workflowsController.get( * GET /workflows/new */ workflowsController.get( - `/new`, + '/new', ResponseHelper.send(async (req: WorkflowRequest.NewName) => { const requestedName = req.query.name && req.query.name !== '' @@ -148,14 +148,14 @@ workflowsController.get( * GET /workflows/from-url */ workflowsController.get( - `/from-url`, + '/from-url', ResponseHelper.send(async (req: express.Request): Promise => { if (req.query.url === undefined) { - throw new ResponseHelper.BadRequestError(`The parameter "url" is missing!`); + throw new ResponseHelper.BadRequestError('The parameter "url" is missing!'); } if (!/^http[s]?:\/\/.*\.json$/i.exec(req.query.url as string)) { throw new ResponseHelper.BadRequestError( - `The parameter "url" is not valid! It does not seem to be a URL pointing to a n8n workflow JSON file.`, + 'The parameter "url" is not valid! It does not seem to be a URL pointing to a n8n workflow JSON file.', ); } let workflowData: IWorkflowResponse | undefined; @@ -163,7 +163,7 @@ workflowsController.get( const { data } = await axios.get(req.query.url as string); workflowData = data; } catch (error) { - throw new ResponseHelper.BadRequestError(`The URL does not point to valid JSON file!`); + throw new ResponseHelper.BadRequestError('The URL does not point to valid JSON file!'); } // Do a very basic check if it is really a n8n-workflow-json @@ -176,7 +176,7 @@ workflowsController.get( Array.isArray(workflowData.connections) ) { throw new ResponseHelper.BadRequestError( - `The data in the file does not seem to be a n8n workflow JSON file!`, + 'The data in the file does not seem to be a n8n workflow JSON file!', ); } @@ -227,7 +227,7 @@ workflowsController.get( * PATCH /workflows/:id */ workflowsController.patch( - `/:id`, + '/:id', ResponseHelper.send(async (req: WorkflowRequest.Update) => { const { id: workflowId } = req.params; @@ -253,7 +253,7 @@ workflowsController.patch( * DELETE /workflows/:id */ workflowsController.delete( - `/:id`, + '/:id', ResponseHelper.send(async (req: WorkflowRequest.Delete) => { const { id: workflowId } = req.params; diff --git a/packages/cli/src/workflows/workflows.services.ts b/packages/cli/src/workflows/workflows.services.ts index 81a8d642d434a..6a7ebf3770657 100644 --- a/packages/cli/src/workflows/workflows.services.ts +++ b/packages/cli/src/workflows/workflows.services.ts @@ -151,7 +151,7 @@ export class WorkflowsService { filter, }); throw new ResponseHelper.InternalServerError( - `Parameter "filter" contained invalid JSON string.`, + 'Parameter "filter" contained invalid JSON string.', ); } } diff --git a/packages/core/src/Credentials.ts b/packages/core/src/Credentials.ts index 293a35a8c72af..0dab0a1c30ac7 100644 --- a/packages/core/src/Credentials.ts +++ b/packages/core/src/Credentials.ts @@ -78,7 +78,7 @@ export class Credentials extends ICredentials { const fullData = this.getData(encryptionKey, nodeType); if (fullData === null) { - throw new Error(`No data was set.`); + throw new Error('No data was set.'); } // eslint-disable-next-line no-prototype-builtins @@ -94,7 +94,7 @@ export class Credentials extends ICredentials { */ getDataToSave(): ICredentialsEncrypted { if (this.data === undefined) { - throw new Error(`No credentials were set to save.`); + throw new Error('No credentials were set to save.'); } return { diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index b8392ca39d0b3..767bad85c20c9 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -512,7 +512,7 @@ function digestAuthAxiosConfig( .split(',') .map((v: string) => v.split('=')); if (authDetails) { - const nonceCount = `000000001`; + const nonceCount = '000000001'; const cnonce = crypto.randomBytes(24).toString('hex'); const realm: string = authDetails .find((el: any) => el[0].toLowerCase().indexOf('realm') > -1)[1] diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 817395591c7d5..c5476629e061c 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -1265,7 +1265,7 @@ export class WorkflowExecute { const fullRunData = this.getFullRunData(startedAt); if (executionError !== undefined) { - Logger.verbose(`Workflow execution finished with error`, { + Logger.verbose('Workflow execution finished with error', { error: executionError, workflowId: workflow.id, }); @@ -1281,7 +1281,7 @@ export class WorkflowExecute { }); fullRunData.waitTill = this.runExecutionData.waitTill; } else { - Logger.verbose(`Workflow execution finished successfully`, { workflowId: workflow.id }); + Logger.verbose('Workflow execution finished successfully', { workflowId: workflow.id }); fullRunData.finished = true; } diff --git a/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.stories.ts b/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.stories.ts index 472506702cc94..feb43c23bf2ee 100644 --- a/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.stories.ts +++ b/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.stories.ts @@ -30,7 +30,7 @@ const template: StoryFn = (args, { argTypes }) => ({ components: { N8nActionDropdown, }, - template: ``, + template: '', }); export const defaultActionDropdown = template.bind({}); diff --git a/packages/design-system/src/components/N8nCard/Card.stories.ts b/packages/design-system/src/components/N8nCard/Card.stories.ts index 21543d808c9bc..e5274139fb6de 100644 --- a/packages/design-system/src/components/N8nCard/Card.stories.ts +++ b/packages/design-system/src/components/N8nCard/Card.stories.ts @@ -14,7 +14,7 @@ export const Default: StoryFn = (args, { argTypes }) => ({ components: { N8nCard, }, - template: `This is a card.`, + template: 'This is a card.', }); export const Hoverable: StoryFn = (args, { argTypes }) => ({ diff --git a/packages/design-system/src/components/N8nMarkdown/Markdown.stories.ts b/packages/design-system/src/components/N8nMarkdown/Markdown.stories.ts index b185505b6c21c..70c039f1560b8 100644 --- a/packages/design-system/src/components/N8nMarkdown/Markdown.stories.ts +++ b/packages/design-system/src/components/N8nMarkdown/Markdown.stories.ts @@ -40,7 +40,8 @@ const Template: StoryFn = (args, { argTypes }) => ({ export const Markdown = Template.bind({}); Markdown.args = { - content: `I wanted a system to monitor website content changes and notify me. So I made it using n8n.\n\nEspecially my competitor blogs. I wanted to know how often they are posting new articles. (I used their sitemap.xml file) (The below workflow may vary)\n\nIn the Below example, I used HackerNews for example.\n\nExplanation:\n\n- First HTTP Request node crawls the webpage and grabs the website source code\n- Then wait for x minutes\n- Again, HTTP Node crawls the webpage\n- If Node compares both results are equal if anything is changed. It’ll go to the false branch and notify me in telegram.\n\n**Workflow:**\n\n![](fileId:1)\n\n**Sample Response:**\n\n![](https://community.n8n.io/uploads/default/original/2X/d/d21ba41d7ac9ff5cd8148fedb07d0f1ff53b2529.png)\n`, + content: + 'I wanted a system to monitor website content changes and notify me. So I made it using n8n.\n\nEspecially my competitor blogs. I wanted to know how often they are posting new articles. (I used their sitemap.xml file) (The below workflow may vary)\n\nIn the Below example, I used HackerNews for example.\n\nExplanation:\n\n- First HTTP Request node crawls the webpage and grabs the website source code\n- Then wait for x minutes\n- Again, HTTP Node crawls the webpage\n- If Node compares both results are equal if anything is changed. It’ll go to the false branch and notify me in telegram.\n\n**Workflow:**\n\n![](fileId:1)\n\n**Sample Response:**\n\n![](https://community.n8n.io/uploads/default/original/2X/d/d21ba41d7ac9ff5cd8148fedb07d0f1ff53b2529.png)\n', loading: false, images: [ { diff --git a/packages/design-system/src/components/N8nMarkdown/Markdown.vue b/packages/design-system/src/components/N8nMarkdown/Markdown.vue index 28431cbd85cb6..9228b5067d6c8 100644 --- a/packages/design-system/src/components/N8nMarkdown/Markdown.vue +++ b/packages/design-system/src/components/N8nMarkdown/Markdown.vue @@ -144,7 +144,7 @@ export default Vue.extend({ // Return nothing, means keep the default handling measure }, onTag(tag, code) { - if (tag === 'img' && code.includes(`alt="workflow-screenshot"`)) { + if (tag === 'img' && code.includes('alt="workflow-screenshot"')) { return ''; } // return nothing, keep tag diff --git a/packages/design-system/src/components/N8nNotice/Notice.stories.ts b/packages/design-system/src/components/N8nNotice/Notice.stories.ts index 663e4e35b6284..af840d2f83408 100644 --- a/packages/design-system/src/components/N8nNotice/Notice.stories.ts +++ b/packages/design-system/src/components/N8nNotice/Notice.stories.ts @@ -17,7 +17,8 @@ const SlotTemplate: StoryFn = (args, { argTypes }) => ({ components: { N8nNotice, }, - template: `This is a notice! Thread carefully from this point forward.`, + template: + 'This is a notice! Thread carefully from this point forward.', }); const PropTemplate: StoryFn = (args, { argTypes }) => ({ @@ -25,7 +26,7 @@ const PropTemplate: StoryFn = (args, { argTypes }) => ({ components: { N8nNotice, }, - template: ``, + template: '', }); export const Warning = SlotTemplate.bind({}); diff --git a/packages/design-system/src/components/N8nSticky/Sticky.stories.ts b/packages/design-system/src/components/N8nSticky/Sticky.stories.ts index d453e5e6a8dfd..88f4bf28dc6ac 100644 --- a/packages/design-system/src/components/N8nSticky/Sticky.stories.ts +++ b/packages/design-system/src/components/N8nSticky/Sticky.stories.ts @@ -60,8 +60,10 @@ export const Sticky = Template.bind({}); Sticky.args = { height: 160, width: 150, - content: `## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)`, - defaultText: `## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)`, + content: + "## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)", + defaultText: + "## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)", minHeight: 80, minWidth: 150, readOnly: false, diff --git a/packages/design-system/src/styleguide/utilities/spacing.stories.ts b/packages/design-system/src/styleguide/utilities/spacing.stories.ts index 0adc747c124b6..a2fb7addfd35b 100644 --- a/packages/design-system/src/styleguide/utilities/spacing.stories.ts +++ b/packages/design-system/src/styleguide/utilities/spacing.stories.ts @@ -10,7 +10,7 @@ const Template: StoryFn = (args, { argTypes }) => ({ components: { SpacingPreview, }, - template: ``, + template: '', }); export const Padding = Template.bind({}); diff --git a/packages/editor-ui/src/api/credentials.ts b/packages/editor-ui/src/api/credentials.ts index 3cc7da78543c9..54f58b54caf13 100644 --- a/packages/editor-ui/src/api/credentials.ts +++ b/packages/editor-ui/src/api/credentials.ts @@ -29,7 +29,7 @@ export async function createNewCredential( context: IRestApiContext, data: ICredentialsDecrypted, ): Promise { - return makeRestApiRequest(context, 'POST', `/credentials`, data as unknown as IDataObject); + return makeRestApiRequest(context, 'POST', '/credentials', data as unknown as IDataObject); } export async function deleteCredential(context: IRestApiContext, id: string): Promise { @@ -61,7 +61,7 @@ export async function oAuth1CredentialAuthorize( return makeRestApiRequest( context, 'GET', - `/oauth1-credential/auth`, + '/oauth1-credential/auth', data as unknown as IDataObject, ); } @@ -74,7 +74,7 @@ export async function oAuth2CredentialAuthorize( return makeRestApiRequest( context, 'GET', - `/oauth2-credential/auth`, + '/oauth2-credential/auth', data as unknown as IDataObject, ); } diff --git a/packages/editor-ui/src/api/users.ts b/packages/editor-ui/src/api/users.ts index 9b7ec5fcdb95a..1da8392a8518c 100644 --- a/packages/editor-ui/src/api/users.ts +++ b/packages/editor-ui/src/api/users.ts @@ -88,14 +88,14 @@ export function updateCurrentUser( context: IRestApiContext, params: { id: string; firstName: string; lastName: string; email: string }, ): Promise { - return makeRestApiRequest(context, 'PATCH', `/me`, params as unknown as IDataObject); + return makeRestApiRequest(context, 'PATCH', '/me', params as unknown as IDataObject); } export function updateCurrentUserPassword( context: IRestApiContext, params: { newPassword: string; currentPassword: string }, ): Promise { - return makeRestApiRequest(context, 'PATCH', `/me/password`, params); + return makeRestApiRequest(context, 'PATCH', '/me/password', params); } export async function deleteUser( diff --git a/packages/editor-ui/src/api/workflows.ts b/packages/editor-ui/src/api/workflows.ts index f649ca37408a1..f34eb77fdfe2c 100644 --- a/packages/editor-ui/src/api/workflows.ts +++ b/packages/editor-ui/src/api/workflows.ts @@ -3,7 +3,7 @@ import { IDataObject } from 'n8n-workflow'; import { makeRestApiRequest } from '@/utils'; export async function getNewWorkflow(context: IRestApiContext, name?: string) { - const response = await makeRestApiRequest(context, 'GET', `/workflows/new`, name ? { name } : {}); + const response = await makeRestApiRequest(context, 'GET', '/workflows/new', name ? { name } : {}); return { name: response.name, onboardingFlowEnabled: response.onboardingFlowEnabled === true, @@ -13,11 +13,11 @@ export async function getNewWorkflow(context: IRestApiContext, name?: string) { export async function getWorkflows(context: IRestApiContext, filter?: object) { const sendData = filter ? { filter } : undefined; - return await makeRestApiRequest(context, 'GET', `/workflows`, sendData); + return await makeRestApiRequest(context, 'GET', '/workflows', sendData); } export async function getActiveWorkflows(context: IRestApiContext) { - return await makeRestApiRequest(context, 'GET', `/active`); + return await makeRestApiRequest(context, 'GET', '/active'); } export async function getCurrentExecutions(context: IRestApiContext, filter: IDataObject) { diff --git a/packages/editor-ui/src/components/CodeEdit.vue b/packages/editor-ui/src/components/CodeEdit.vue index ebc5c91cca70c..9c7d87065576d 100644 --- a/packages/editor-ui/src/components/CodeEdit.vue +++ b/packages/editor-ui/src/components/CodeEdit.vue @@ -122,11 +122,11 @@ export default mixins(genericHelpers, workflowHelpers).extend({ const proxy = dataProxy.getDataProxy(); const autoCompleteItems = [ - `function $evaluateExpression(expression: string, itemIndex?: number): any {};`, - `function getNodeParameter(parameterName: string, itemIndex: number, fallbackValue?: any): any {};`, - `function getWorkflowStaticData(type: string): {};`, - `function $item(itemIndex: number, runIndex?: number): {};`, - `function $items(nodeName?: string, outputIndex?: number, runIndex?: number): {};`, + 'function $evaluateExpression(expression: string, itemIndex?: number): any {};', + 'function getNodeParameter(parameterName: string, itemIndex: number, fallbackValue?: any): any {};', + 'function getWorkflowStaticData(type: string): {};', + 'function $item(itemIndex: number, runIndex?: number): {};', + 'function $items(nodeName?: string, outputIndex?: number, runIndex?: number): {};', ]; const baseKeys = [ @@ -194,7 +194,7 @@ export default mixins(genericHelpers, workflowHelpers).extend({ } catch (error) {} } autoCompleteItems.push(`const $node = ${JSON.stringify(nodes)}`); - autoCompleteItems.push(`function $jmespath(jsonDoc: object, query: string): {};`); + autoCompleteItems.push('function $jmespath(jsonDoc: object, query: string): {};'); if (this.codeAutocomplete === 'function') { if (connectionInputData) { @@ -204,13 +204,13 @@ export default mixins(genericHelpers, workflowHelpers).extend({ )}`, ); } else { - autoCompleteItems.push(`const items: {json: {[key: string]: any}}[] = []`); + autoCompleteItems.push('const items: {json: {[key: string]: any}}[] = []'); } } else if (this.codeAutocomplete === 'functionItem') { if (connectionInputData) { - autoCompleteItems.push(`const item = $json`); + autoCompleteItems.push('const item = $json'); } else { - autoCompleteItems.push(`const item: {[key: string]: any} = {}`); + autoCompleteItems.push('const item: {[key: string]: any} = {}'); } } diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue index d838fc68515ae..6a45b7faf37b8 100644 --- a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue +++ b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue @@ -919,7 +919,8 @@ export default mixins(showMessage, nodeHelpers).extend({ return; } - const params = `scrollbars=no,resizable=yes,status=no,titlebar=noe,location=no,toolbar=no,menubar=no,width=500,height=700`; + const params = + 'scrollbars=no,resizable=yes,status=no,titlebar=noe,location=no,toolbar=no,menubar=no,width=500,height=700'; const oauthPopup = window.open(url, 'OAuth2 Authorization', params); Vue.set(this.credentialData, 'oauthTokenData', null); diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index a77d908718f26..dd7fa242993cb 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -339,7 +339,7 @@ export default mixins( nodeTitle(): string { if (this.data.name === 'Start') { return this.$locale.headerText({ - key: `headers.start.displayName`, + key: 'headers.start.displayName', fallback: 'Start', }); } diff --git a/packages/editor-ui/src/components/RunDataJsonActions.vue b/packages/editor-ui/src/components/RunDataJsonActions.vue index 37972d0303707..d682349948403 100644 --- a/packages/editor-ui/src/components/RunDataJsonActions.vue +++ b/packages/editor-ui/src/components/RunDataJsonActions.vue @@ -132,7 +132,7 @@ export default mixins(genericHelpers, nodeHelpers, pinData, copyPaste).extend({ let startPath = `$node["${this.node!.name}"].json`; if (this.distanceFromActive === 1) { - startPath = `$json`; + startPath = '$json'; } return { path, startPath }; diff --git a/packages/editor-ui/src/components/ValueSurvey.vue b/packages/editor-ui/src/components/ValueSurvey.vue index db891fcca19a3..55f5146bfb8ba 100644 --- a/packages/editor-ui/src/components/ValueSurvey.vue +++ b/packages/editor-ui/src/components/ValueSurvey.vue @@ -68,9 +68,11 @@ import { mapStores } from 'pinia'; import { useSettingsStore } from '@/stores/settings'; import { useRootStore } from '@/stores/n8nRootStore'; -const DEFAULT_TITLE = `How likely are you to recommend n8n to a friend or colleague?`; -const GREAT_FEEDBACK_TITLE = `Great to hear! Can we reach out to see how we can make n8n even better for you?`; -const DEFAULT_FEEDBACK_TITLE = `Thanks for your feedback! We'd love to understand how we can improve. Can we reach out?`; +const DEFAULT_TITLE = 'How likely are you to recommend n8n to a friend or colleague?'; +const GREAT_FEEDBACK_TITLE = + 'Great to hear! Can we reach out to see how we can make n8n even better for you?'; +const DEFAULT_FEEDBACK_TITLE = + "Thanks for your feedback! We'd love to understand how we can improve. Can we reach out?"; export default mixins(workflowHelpers).extend({ name: 'ValueSurvey', @@ -164,7 +166,8 @@ export default mixins(workflowHelpers).extend({ }); this.$showMessage({ title: 'Thanks for your feedback', - message: `If you’d like to help even more, leave us a review on G2.`, + message: + 'If you’d like to help even more, leave us a review on G2.', type: 'success', duration: 15000, }); diff --git a/packages/editor-ui/src/components/WorkflowSettings.vue b/packages/editor-ui/src/components/WorkflowSettings.vue index 9f1962268b217..c5860b1efc51c 100644 --- a/packages/editor-ui/src/components/WorkflowSettings.vue +++ b/packages/editor-ui/src/components/WorkflowSettings.vue @@ -450,7 +450,7 @@ export default mixins(externalHooks, genericHelpers, restApi, showMessage).exten if (!this.workflowId || this.workflowId === PLACEHOLDER_EMPTY_WORKFLOW_ID) { this.$showMessage({ title: 'No workflow active', - message: `No workflow active to display settings of.`, + message: 'No workflow active to display settings of.', type: 'error', duration: 0, }); diff --git a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue index ba6ba2e770a79..c51c36df03473 100644 --- a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue +++ b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue @@ -370,7 +370,7 @@ export default mixins(showMessage).extend({ if (!isNewSharee && isLastUserWithAccessToCredentials) { confirm = await this.confirmMessage( this.$locale.baseText( - `workflows.shareModal.list.delete.confirm.lastUserWithAccessToCredentials.message`, + 'workflows.shareModal.list.delete.confirm.lastUserWithAccessToCredentials.message', { interpolate: { name: user.fullName as string, workflow: this.workflow.name }, }, diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts index cc6a706bf1e9c..7c605831b8b15 100644 --- a/packages/editor-ui/src/constants.ts +++ b/packages/editor-ui/src/constants.ts @@ -56,15 +56,16 @@ export const BREAKPOINT_MD = 992; export const BREAKPOINT_LG = 1200; export const BREAKPOINT_XL = 1920; -export const N8N_IO_BASE_URL = `https://api.n8n.io/api/`; +export const N8N_IO_BASE_URL = 'https://api.n8n.io/api/'; export const DOCS_DOMAIN = 'docs.n8n.io'; export const BUILTIN_NODES_DOCS_URL = `https://${DOCS_DOMAIN}/integrations/builtin/`; export const BUILTIN_CREDENTIALS_DOCS_URL = `https://${DOCS_DOMAIN}/integrations/builtin/credentials/`; export const DATA_PINNING_DOCS_URL = `https://${DOCS_DOMAIN}/data/data-pinning/`; export const DATA_EDITING_DOCS_URL = `https://${DOCS_DOMAIN}/data/data-editing/`; -export const NPM_COMMUNITY_NODE_SEARCH_API_URL = `https://api.npms.io/v2/`; -export const NPM_PACKAGE_DOCS_BASE_URL = `https://www.npmjs.com/package/`; -export const NPM_KEYWORD_SEARCH_URL = `https://www.npmjs.com/search?q=keywords%3An8n-community-node-package`; +export const NPM_COMMUNITY_NODE_SEARCH_API_URL = 'https://api.npms.io/v2/'; +export const NPM_PACKAGE_DOCS_BASE_URL = 'https://www.npmjs.com/package/'; +export const NPM_KEYWORD_SEARCH_URL = + 'https://www.npmjs.com/search?q=keywords%3An8n-community-node-package'; export const N8N_QUEUE_MODE_DOCS_URL = `https://${DOCS_DOMAIN}/hosting/scaling/queue-mode/`; export const COMMUNITY_NODES_INSTALLATION_DOCS_URL = `https://${DOCS_DOMAIN}/integrations/community-nodes/installation/`; export const COMMUNITY_NODES_NPM_INSTALLATION_URL = diff --git a/packages/editor-ui/src/mixins/history.ts b/packages/editor-ui/src/mixins/history.ts index 8a5becbe7935c..0726c6a03d6fc 100644 --- a/packages/editor-ui/src/mixins/history.ts +++ b/packages/editor-ui/src/mixins/history.ts @@ -113,7 +113,7 @@ export const historyHelper = mixins(debounceHelper, deviceSupportHelpers).extend if (this.isNDVOpen && !event.shiftKey) { const activeNode = this.ndvStore.activeNode; if (activeNode) { - this.$telemetry.track(`User hit undo in NDV`, { node_type: activeNode.type }); + this.$telemetry.track('User hit undo in NDV', { node_type: activeNode.type }); } } }, diff --git a/packages/editor-ui/src/mixins/newVersions.ts b/packages/editor-ui/src/mixins/newVersions.ts index 7448c87a45346..16f8a3ca4f797 100644 --- a/packages/editor-ui/src/mixins/newVersions.ts +++ b/packages/editor-ui/src/mixins/newVersions.ts @@ -22,7 +22,7 @@ export const newVersions = mixins(showMessage).extend({ const nextVersions = this.versionsStore.nextVersions; if (currentVersion && currentVersion.hasSecurityIssue && nextVersions.length) { const fixVersion = currentVersion.securityIssueFixVersion; - let message = `Please update to latest version.`; + let message = 'Please update to latest version.'; if (fixVersion) { message = `Please update to version ${fixVersion} or higher.`; } diff --git a/packages/editor-ui/src/mixins/restApi.ts b/packages/editor-ui/src/mixins/restApi.ts index b9bbbcc643cf4..a390cafbb196b 100644 --- a/packages/editor-ui/src/mixins/restApi.ts +++ b/packages/editor-ui/src/mixins/restApi.ts @@ -70,7 +70,7 @@ export const restApi = Vue.extend({ return makeRestApiRequest(self.rootStore.getRestApiContext, method, endpoint, data); }, getActiveWorkflows: (): Promise => { - return self.restApi().makeRestApiRequest('GET', `/active`); + return self.restApi().makeRestApiRequest('GET', '/active'); }, getActivationError: (id: string): Promise => { return self.restApi().makeRestApiRequest('GET', `/active/error/${id}`); @@ -82,7 +82,7 @@ export const restApi = Vue.extend({ filter, }; } - return self.restApi().makeRestApiRequest('GET', `/executions-current`, sendData); + return self.restApi().makeRestApiRequest('GET', '/executions-current', sendData); }, stopCurrentExecution: (executionId: string): Promise => { return self @@ -103,12 +103,12 @@ export const restApi = Vue.extend({ // Execute a workflow runWorkflow: async (startRunData: IStartRunData): Promise => { - return self.restApi().makeRestApiRequest('POST', `/workflows/run`, startRunData); + return self.restApi().makeRestApiRequest('POST', '/workflows/run', startRunData); }, // Creates a new workflow createNewWorkflow: (sendData: IWorkflowDataUpdate): Promise => { - return self.restApi().makeRestApiRequest('POST', `/workflows`, sendData); + return self.restApi().makeRestApiRequest('POST', '/workflows', sendData); }, // Updates an existing workflow @@ -144,12 +144,12 @@ export const restApi = Vue.extend({ filter, }; } - return self.restApi().makeRestApiRequest('GET', `/workflows`, sendData); + return self.restApi().makeRestApiRequest('GET', '/workflows', sendData); }, // Returns a workflow from a given URL getWorkflowFromUrl: (url: string): Promise => { - return self.restApi().makeRestApiRequest('GET', `/workflows/from-url`, { url }); + return self.restApi().makeRestApiRequest('GET', '/workflows/from-url', { url }); }, // Returns the execution with the given name @@ -160,7 +160,7 @@ export const restApi = Vue.extend({ // Deletes executions deleteExecutions: (sendData: IExecutionDeleteFilter): Promise => { - return self.restApi().makeRestApiRequest('POST', `/executions/delete`, sendData); + return self.restApi().makeRestApiRequest('POST', '/executions/delete', sendData); }, // Returns the execution with the given name @@ -192,12 +192,12 @@ export const restApi = Vue.extend({ }; } - return self.restApi().makeRestApiRequest('GET', `/executions`, sendData); + return self.restApi().makeRestApiRequest('GET', '/executions', sendData); }, // Returns all the available timezones getTimezones: (): Promise => { - return self.restApi().makeRestApiRequest('GET', `/options/timezones`); + return self.restApi().makeRestApiRequest('GET', '/options/timezones'); }, // Binary data diff --git a/packages/editor-ui/src/mixins/titleChange.ts b/packages/editor-ui/src/mixins/titleChange.ts index a2f0160fd9be2..63cde777c44e3 100644 --- a/packages/editor-ui/src/mixins/titleChange.ts +++ b/packages/editor-ui/src/mixins/titleChange.ts @@ -22,7 +22,7 @@ export const titleChange = Vue.extend({ }, $titleReset() { - document.title = `n8n - Workflow Automation`; + document.title = 'n8n - Workflow Automation'; }, }, }); diff --git a/packages/editor-ui/src/utils/__tests__/typesUtils.test.ts b/packages/editor-ui/src/utils/__tests__/typesUtils.test.ts index ab04126f88eb0..3807d42f6b86d 100644 --- a/packages/editor-ui/src/utils/__tests__/typesUtils.test.ts +++ b/packages/editor-ui/src/utils/__tests__/typesUtils.test.ts @@ -22,7 +22,7 @@ describe('Utils', () => { [1, false], [false, true], [true, false], - ])(`for value %s should return %s`, (value, expected) => { + ])('for value %s should return %s', (value, expected) => { expect(isEmpty(value)).toBe(expected); }); }); @@ -212,7 +212,7 @@ describe('Utils', () => { { overwriteArrays: true }, { a: 3, b: [{ z: 'c' }], c: '2', d: '3' }, ], - ])(`case %#. input %j, options %j should return %j`, (sources, options, expected) => { + ])('case %#. input %j, options %j should return %j', (sources, options, expected) => { expect(mergeDeep([...sources], options)).toEqual(expected); }); }); diff --git a/packages/editor-ui/src/utils/nodeViewUtils.ts b/packages/editor-ui/src/utils/nodeViewUtils.ts index 63dc465fe63fe..0d7dbb119fde7 100644 --- a/packages/editor-ui/src/utils/nodeViewUtils.ts +++ b/packages/editor-ui/src/utils/nodeViewUtils.ts @@ -381,11 +381,11 @@ export const showOrHideItemsLabel = (connection: Connection) => { export const getIcon = (name: string): string => { if (name === 'trash') { - return ``; + return ''; } if (name === 'plus') { - return ``; + return ''; } return ''; diff --git a/packages/editor-ui/src/utils/typesUtils.ts b/packages/editor-ui/src/utils/typesUtils.ts index 112853e9e91bc..b1692cb51283e 100644 --- a/packages/editor-ui/src/utils/typesUtils.ts +++ b/packages/editor-ui/src/utils/typesUtils.ts @@ -238,7 +238,7 @@ export const getSchema = (input: Optional, path = ''): Sche } break; case 'function': - schema = { type: 'function', value: ``, path }; + schema = { type: 'function', value: '', path }; break; default: schema = { type: typeof input, value: String(input), path }; diff --git a/packages/editor-ui/src/views/TemplatesCollectionView.vue b/packages/editor-ui/src/views/TemplatesCollectionView.vue index fbe29bb8e9086..08e5dc90bebca 100644 --- a/packages/editor-ui/src/views/TemplatesCollectionView.vue +++ b/packages/editor-ui/src/views/TemplatesCollectionView.vue @@ -139,7 +139,7 @@ export default mixins(workflowHelpers).extend({ if (collection) { setPageTitle(`n8n - Template collection: ${collection.name}`); } else { - setPageTitle(`n8n - Templates`); + setPageTitle('n8n - Templates'); } }, }, diff --git a/packages/editor-ui/src/views/TemplatesWorkflowView.vue b/packages/editor-ui/src/views/TemplatesWorkflowView.vue index 3c5496cc3e932..8d1812203f62c 100644 --- a/packages/editor-ui/src/views/TemplatesWorkflowView.vue +++ b/packages/editor-ui/src/views/TemplatesWorkflowView.vue @@ -127,7 +127,7 @@ export default mixins(workflowHelpers).extend({ if (template) { setPageTitle(`n8n - Template template: ${template.name}`); } else { - setPageTitle(`n8n - Templates`); + setPageTitle('n8n - Templates'); } }, }, diff --git a/packages/node-dev/commands/build.ts b/packages/node-dev/commands/build.ts index 548cd0e56af66..9abd6c709c93b 100644 --- a/packages/node-dev/commands/build.ts +++ b/packages/node-dev/commands/build.ts @@ -7,9 +7,9 @@ export class Build extends Command { static description = 'Builds credentials and nodes and copies it to n8n custom extension folder'; static examples = [ - `$ n8n-node-dev build`, - `$ n8n-node-dev build --destination ~/n8n-nodes`, - `$ n8n-node-dev build --watch`, + '$ n8n-node-dev build', + '$ n8n-node-dev build --destination ~/n8n-nodes', + '$ n8n-node-dev build --watch', ]; static flags = { diff --git a/packages/node-dev/commands/new.ts b/packages/node-dev/commands/new.ts index 844b4f4d3d53a..e83cf86e522a5 100644 --- a/packages/node-dev/commands/new.ts +++ b/packages/node-dev/commands/new.ts @@ -18,7 +18,7 @@ const fsAccess = promisify(fs.access); export class New extends Command { static description = 'Create new credentials/node'; - static examples = [`$ n8n-node-dev new`]; + static examples = ['$ n8n-node-dev new']; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types async run() { diff --git a/packages/nodes-base/credentials/BeeminderApi.credentials.ts b/packages/nodes-base/credentials/BeeminderApi.credentials.ts index ebedb0c224d35..14dd427c7ad9d 100644 --- a/packages/nodes-base/credentials/BeeminderApi.credentials.ts +++ b/packages/nodes-base/credentials/BeeminderApi.credentials.ts @@ -39,7 +39,7 @@ export class BeeminderApi implements ICredentialType { test: ICredentialTestRequest = { request: { baseURL: 'https://www.beeminder.com/api/v1', - url: `=/users/{{$credentials.user}}.json`, + url: '=/users/{{$credentials.user}}.json', }, }; } diff --git a/packages/nodes-base/credentials/GhostAdminApi.credentials.ts b/packages/nodes-base/credentials/GhostAdminApi.credentials.ts index 2d3b50c58cf9d..1c206674d73da 100644 --- a/packages/nodes-base/credentials/GhostAdminApi.credentials.ts +++ b/packages/nodes-base/credentials/GhostAdminApi.credentials.ts @@ -40,7 +40,7 @@ export class GhostAdminApi implements ICredentialType { keyid: id, algorithm: 'HS256', expiresIn: '5m', - audience: `/v2/admin/`, + audience: '/v2/admin/', }); requestOptions.headers = { diff --git a/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts b/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts index 59d492e8653f1..a6b27e4551fa5 100644 --- a/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts +++ b/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts @@ -48,7 +48,7 @@ export class MailjetEmailApi implements ICredentialType { test: ICredentialTestRequest = { request: { - baseURL: `https://api.mailjet.com`, + baseURL: 'https://api.mailjet.com', url: '/v3/REST/template', method: 'GET', }, diff --git a/packages/nodes-base/credentials/MailjetSmsApi.credentials.ts b/packages/nodes-base/credentials/MailjetSmsApi.credentials.ts index 26a5eaff269ba..e104f676b035c 100644 --- a/packages/nodes-base/credentials/MailjetSmsApi.credentials.ts +++ b/packages/nodes-base/credentials/MailjetSmsApi.credentials.ts @@ -32,7 +32,7 @@ export class MailjetSmsApi implements ICredentialType { test: ICredentialTestRequest = { request: { - baseURL: `https://api.mailjet.com`, + baseURL: 'https://api.mailjet.com', url: '/v4/sms', method: 'GET', }, diff --git a/packages/nodes-base/credentials/TheHiveApi.credentials.ts b/packages/nodes-base/credentials/TheHiveApi.credentials.ts index ac0a0951ca6a3..b6dbbfd4fc4d7 100644 --- a/packages/nodes-base/credentials/TheHiveApi.credentials.ts +++ b/packages/nodes-base/credentials/TheHiveApi.credentials.ts @@ -66,7 +66,7 @@ export class TheHiveApi implements ICredentialType { test: ICredentialTestRequest = { request: { - baseURL: `={{$credentials?.url}}`, + baseURL: '={{$credentials?.url}}', url: '/api/case', }, }; diff --git a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts index 21de2736aabbb..ccea316e35589 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts @@ -402,7 +402,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'contacts'; } - endpoint = `/api/3/contacts`; + endpoint = '/api/3/contacts'; } else if (operation === 'update') { // ---------------------------------- // contact:update @@ -479,7 +479,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'accounts'; } - endpoint = `/api/3/accounts`; + endpoint = '/api/3/accounts'; const filters = this.getNodeParameter('filters', i); Object.assign(qs, filters); @@ -648,7 +648,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'lists'; } - endpoint = `/api/3/lists`; + endpoint = '/api/3/lists'; } } else if (resource === 'tag') { if (operation === 'create') { @@ -704,7 +704,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'tags'; } - endpoint = `/api/3/tags`; + endpoint = '/api/3/tags'; } else if (operation === 'update') { // ---------------------------------- // tags:update @@ -811,7 +811,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'deals'; } - endpoint = `/api/3/deals`; + endpoint = '/api/3/deals'; } else if (operation === 'createNote') { // ---------------------------------- // deal:createNote @@ -910,7 +910,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'connections'; } - endpoint = `/api/3/connections`; + endpoint = '/api/3/connections'; } else { throw new NodeOperationError( this.getNode(), @@ -1010,7 +1010,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'ecomOrders'; } - endpoint = `/api/3/ecomOrders`; + endpoint = '/api/3/ecomOrders'; } else { throw new NodeOperationError( this.getNode(), @@ -1099,7 +1099,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'ecomCustomers'; } - endpoint = `/api/3/ecomCustomers`; + endpoint = '/api/3/ecomCustomers'; } else { throw new NodeOperationError( this.getNode(), @@ -1145,7 +1145,7 @@ export class ActiveCampaign implements INodeType { dataKey = 'ecomOrderProducts'; } - endpoint = `/api/3/ecomOrderProducts`; + endpoint = '/api/3/ecomOrderProducts'; } else { throw new NodeOperationError( this.getNode(), diff --git a/packages/nodes-base/nodes/Affinity/Affinity.node.ts b/packages/nodes-base/nodes/Affinity/Affinity.node.ts index 6f2b72416b161..d29a8a66ac69a 100644 --- a/packages/nodes-base/nodes/Affinity/Affinity.node.ts +++ b/packages/nodes-base/nodes/Affinity/Affinity.node.ts @@ -132,7 +132,7 @@ export class Affinity implements INodeType { // select them easily async getLists(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const lists = await affinityApiRequest.call(this, 'GET', `/lists`); + const lists = await affinityApiRequest.call(this, 'GET', '/lists'); for (const list of lists) { returnData.push({ name: list.name, @@ -163,7 +163,7 @@ export class Affinity implements INodeType { //https://api-docs.affinity.co/#get-all-lists if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await affinityApiRequest.call(this, 'GET', `/lists`, {}, qs); + responseData = await affinityApiRequest.call(this, 'GET', '/lists', {}, qs); if (!returnAll) { const limit = this.getNodeParameter('limit', i); responseData = responseData.splice(0, limit); diff --git a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts index c9bd5657fa928..3f0665624b99e 100644 --- a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts +++ b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts @@ -172,7 +172,7 @@ export class AgileCrm implements INodeType { responseData = await agileCrmApiRequestAllItems.call( this, 'POST', - `api/filters/filter/dynamic-filter`, + 'api/filters/filter/dynamic-filter', body, undefined, undefined, @@ -183,7 +183,7 @@ export class AgileCrm implements INodeType { responseData = await agileCrmApiRequest.call( this, 'POST', - `api/filters/filter/dynamic-filter`, + 'api/filters/filter/dynamic-filter', body, undefined, undefined, diff --git a/packages/nodes-base/nodes/ApiTemplateIo/ApiTemplateIo.node.ts b/packages/nodes-base/nodes/ApiTemplateIo/ApiTemplateIo.node.ts index 5a7f85077f3db..bbc583d339ae8 100644 --- a/packages/nodes-base/nodes/ApiTemplateIo/ApiTemplateIo.node.ts +++ b/packages/nodes-base/nodes/ApiTemplateIo/ApiTemplateIo.node.ts @@ -188,7 +188,8 @@ export class ApiTemplateIo implements INodeType { jsonParameters: [true], }, }, - placeholder: `[ {"name": "text_1", "text": "hello world", "textBackgroundColor": "rgba(246, 243, 243, 0)" } ]`, + placeholder: + '[ {"name": "text_1", "text": "hello world", "textBackgroundColor": "rgba(246, 243, 243, 0)" } ]', }, { displayName: 'Properties (JSON)', @@ -202,7 +203,7 @@ export class ApiTemplateIo implements INodeType { jsonParameters: [true], }, }, - placeholder: `{ "name": "text_1" }`, + placeholder: '{ "name": "text_1" }', }, { displayName: 'Overrides', diff --git a/packages/nodes-base/nodes/Asana/Asana.node.ts b/packages/nodes-base/nodes/Asana/Asana.node.ts index 0ea8a78f29cfd..93eab4e88b0fc 100644 --- a/packages/nodes-base/nodes/Asana/Asana.node.ts +++ b/packages/nodes-base/nodes/Asana/Asana.node.ts @@ -1860,7 +1860,7 @@ export class Asana implements INodeType { // Get all users to display them to user so that they can be selected easily // See: https://developers.asana.com/docs/get-multiple-users async getUsers(this: ILoadOptionsFunctions): Promise { - const endpoint = `/users`; + const endpoint = '/users'; const responseData = await asanaApiRequest.call(this, 'GET', endpoint, {}); if (responseData.data === undefined) { @@ -2026,7 +2026,7 @@ export class Asana implements INodeType { const returnAll = this.getNodeParameter('returnAll', i); requestMethod = 'GET'; - endpoint = `/tasks`; + endpoint = '/tasks'; Object.assign(qs, filters); @@ -2335,7 +2335,7 @@ export class Asana implements INodeType { const returnAll = this.getNodeParameter('returnAll', i); requestMethod = 'GET'; - endpoint = `/projects`; + endpoint = '/projects'; if (additionalFields.team) { qs.team = additionalFields.team; diff --git a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts index 4fe74103ab861..4b2acec294aab 100644 --- a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts +++ b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts @@ -152,7 +152,7 @@ export class AsanaTrigger implements INodeType { const resource = this.getNodeParameter('resource') as string; - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const body = { resource, diff --git a/packages/nodes-base/nodes/Automizy/Automizy.node.ts b/packages/nodes-base/nodes/Automizy/Automizy.node.ts index da0e4eb6b54b2..4fc0e2f3ff40d 100644 --- a/packages/nodes-base/nodes/Automizy/Automizy.node.ts +++ b/packages/nodes-base/nodes/Automizy/Automizy.node.ts @@ -74,7 +74,7 @@ export class Automizy implements INodeType { this, 'smartLists', 'GET', - `/smart-lists`, + '/smart-lists', ); for (const list of lists) { returnData.push({ @@ -272,7 +272,7 @@ export class Automizy implements INodeType { name, }; - responseData = await automizyApiRequest.call(this, 'POST', `/smart-lists`, body); + responseData = await automizyApiRequest.call(this, 'POST', '/smart-lists', body); responseData = this.helpers.constructExecutionMetaData( this.helpers.returnJsonArray(responseData), { itemData: { item: i } }, @@ -319,14 +319,14 @@ export class Automizy implements INodeType { this, 'smartLists', 'GET', - `/smart-lists`, + '/smart-lists', {}, qs, ); } else { qs.limit = this.getNodeParameter('limit', i); - responseData = await automizyApiRequest.call(this, 'GET', `/smart-lists`, {}, qs); + responseData = await automizyApiRequest.call(this, 'GET', '/smart-lists', {}, qs); responseData = responseData.smartLists; } diff --git a/packages/nodes-base/nodes/Autopilot/Autopilot.node.ts b/packages/nodes-base/nodes/Autopilot/Autopilot.node.ts index 313872639d534..212da9c5e0f1f 100644 --- a/packages/nodes-base/nodes/Autopilot/Autopilot.node.ts +++ b/packages/nodes-base/nodes/Autopilot/Autopilot.node.ts @@ -169,7 +169,7 @@ export class Autopilot implements INodeType { delete body.newEmail; } - responseData = await autopilotApiRequest.call(this, 'POST', `/contact`, { + responseData = await autopilotApiRequest.call(this, 'POST', '/contact', { contact: body, }); } @@ -198,7 +198,7 @@ export class Autopilot implements INodeType { this, 'contacts', 'GET', - `/contacts`, + '/contacts', {}, qs, ); @@ -280,7 +280,7 @@ export class Autopilot implements INodeType { name, }; - responseData = await autopilotApiRequest.call(this, 'POST', `/list`, body); + responseData = await autopilotApiRequest.call(this, 'POST', '/list', body); } if (operation === 'getAll') { diff --git a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts index 45b589487d647..3a122463023ba 100644 --- a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts @@ -18,7 +18,7 @@ import { get } from 'lodash'; export class AwsSnsTrigger implements INodeType { description: INodeTypeDescription = { displayName: 'AWS SNS Trigger', - subtitle: `={{$parameter["topic"].split(':')[5]}}`, + subtitle: '={{$parameter["topic"].split(\':\')[5]}}', name: 'awsSnsTrigger', icon: 'file:sns.svg', group: ['trigger'], diff --git a/packages/nodes-base/nodes/Aws/CertificateManager/AwsCertificateManager.node.ts b/packages/nodes-base/nodes/Aws/CertificateManager/AwsCertificateManager.node.ts index 941051ee2d0cf..d868f037b9cef 100644 --- a/packages/nodes-base/nodes/Aws/CertificateManager/AwsCertificateManager.node.ts +++ b/packages/nodes-base/nodes/Aws/CertificateManager/AwsCertificateManager.node.ts @@ -66,7 +66,7 @@ export class AwsCertificateManager implements INodeType { responseData = await awsApiRequestREST.call( this, - `acm`, + 'acm', 'POST', '', JSON.stringify(body), @@ -90,7 +90,7 @@ export class AwsCertificateManager implements INodeType { responseData = await awsApiRequestREST.call( this, - `acm`, + 'acm', 'POST', '', JSON.stringify(body), @@ -148,7 +148,7 @@ export class AwsCertificateManager implements INodeType { body.MaxItems = this.getNodeParameter('limit', 0); responseData = await awsApiRequestREST.call( this, - `acm`, + 'acm', 'POST', '', JSON.stringify(body), @@ -172,7 +172,7 @@ export class AwsCertificateManager implements INodeType { responseData = await awsApiRequestREST.call( this, - `acm`, + 'acm', 'POST', '', JSON.stringify(body), @@ -196,7 +196,7 @@ export class AwsCertificateManager implements INodeType { responseData = await awsApiRequestREST.call( this, - `acm`, + 'acm', 'POST', '', JSON.stringify(body), diff --git a/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts b/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts index 4000711b6d41b..7e62dd0f4980e 100644 --- a/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts +++ b/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts @@ -845,7 +845,7 @@ export class AwsSes implements INodeType { const templateSubject = this.getNodeParameter('templateSubject', i) as string; const params = [ - `Action=CreateCustomVerificationEmailTemplate`, + 'Action=CreateCustomVerificationEmailTemplate', `FailureRedirectionURL=${failureRedirectionURL}`, `FromEmailAddress=${email}`, `SuccessRedirectionURL=${successRedirectionURL}`, @@ -869,7 +869,7 @@ export class AwsSes implements INodeType { const templateName = this.getNodeParameter('templateName', i) as string; const params = [ - `Action=DeleteCustomVerificationEmailTemplate`, + 'Action=DeleteCustomVerificationEmailTemplate', `TemplateName=${templateName}`, ]; @@ -935,7 +935,7 @@ export class AwsSes implements INodeType { const additionalFields = this.getNodeParameter('additionalFields', i); const params = [ - `Action=SendCustomVerificationEmail`, + 'Action=SendCustomVerificationEmail', `TemplateName=${templateName}`, `EmailAddress=${email}`, ]; @@ -961,7 +961,7 @@ export class AwsSes implements INodeType { const updateFields = this.getNodeParameter('updateFields', i); const params = [ - `Action=UpdateCustomVerificationEmailTemplate`, + 'Action=UpdateCustomVerificationEmailTemplate', `TemplateName=${templateName}`, ]; @@ -1018,7 +1018,7 @@ export class AwsSes implements INodeType { if (isBodyHtml) { params.push(`Message.Body.Html.Data=${encodeURIComponent(message)}`); - params.push(`Message.Body.Html.Charset=UTF-8`); + params.push('Message.Body.Html.Charset=UTF-8'); } else { params.push(`Message.Body.Text.Data=${encodeURIComponent(message)}`); } diff --git a/packages/nodes-base/nodes/Aws/SQS/AwsSqs.node.ts b/packages/nodes-base/nodes/Aws/SQS/AwsSqs.node.ts index 98f03a08f9486..76f262476016c 100644 --- a/packages/nodes-base/nodes/Aws/SQS/AwsSqs.node.ts +++ b/packages/nodes-base/nodes/Aws/SQS/AwsSqs.node.ts @@ -25,7 +25,7 @@ export class AwsSqs implements INodeType { icon: 'file:sqs.svg', group: ['output'], version: 1, - subtitle: `={{$parameter["operation"]}}`, + subtitle: '={{$parameter["operation"]}}', description: 'Sends messages to AWS SQS', defaults: { name: 'AWS SQS', @@ -249,7 +249,7 @@ export class AwsSqs implements INodeType { loadOptions: { // Get all the available queues to display them to user so that it can be selected easily async getQueues(this: ILoadOptionsFunctions): Promise { - const params = ['Version=2012-11-05', `Action=ListQueues`]; + const params = ['Version=2012-11-05', 'Action=ListQueues']; let data; try { diff --git a/packages/nodes-base/nodes/Aws/Textract/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/Textract/GenericFunctions.ts index 1f7955f19b581..d2090081e1857 100644 --- a/packages/nodes-base/nodes/Aws/Textract/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/Textract/GenericFunctions.ts @@ -147,7 +147,7 @@ export async function validateCredentials( // Concatenate path and instantiate URL object so it parses correctly query strings const endpoint = new URL( - getEndpointForService(service, credentials) + `?Action=GetCallerIdentity&Version=2011-06-15`, + getEndpointForService(service, credentials) + '?Action=GetCallerIdentity&Version=2011-06-15', ); // Sign AWS API request with the user credentials diff --git a/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts b/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts index 5425de754dd30..84cd835edccc2 100644 --- a/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts +++ b/packages/nodes-base/nodes/BambooHr/v1/actions/file/upload/execute.ts @@ -56,7 +56,7 @@ export async function upload(this: IExecuteFunctions, index: number) { } //endpoint - const endpoint = `files`; + const endpoint = 'files'; const { headers } = await apiRequest.call(this, requestMethod, endpoint, {}, {}, body); return this.helpers.returnJsonArray({ fileId: headers.location.split('/').pop() }); } diff --git a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts index 5bf910c07a73a..6b5c6500061ed 100644 --- a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts +++ b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts @@ -235,7 +235,7 @@ export class BitbucketTrigger implements INodeType { this, 'values', 'GET', - `/workspaces`, + '/workspaces', ); for (const workspace of workspaces) { returnData.push({ diff --git a/packages/nodes-base/nodes/Box/Box.node.ts b/packages/nodes-base/nodes/Box/Box.node.ts index 359134bb04aa9..0bc23385e7b26 100644 --- a/packages/nodes-base/nodes/Box/Box.node.ts +++ b/packages/nodes-base/nodes/Box/Box.node.ts @@ -210,13 +210,13 @@ export class Box implements INodeType { this, 'entries', 'GET', - `/search`, + '/search', {}, qs, ); } else { qs.limit = this.getNodeParameter('limit', i); - responseData = await boxApiRequest.call(this, 'GET', `/search`, {}, qs); + responseData = await boxApiRequest.call(this, 'GET', '/search', {}, qs); responseData = responseData.entries; } } @@ -262,7 +262,7 @@ export class Box implements INodeType { body.accessible_by.id = this.getNodeParameter('groupId', i) as string; } - responseData = await boxApiRequest.call(this, 'POST', `/collaborations`, body, qs); + responseData = await boxApiRequest.call(this, 'POST', '/collaborations', body, qs); } // https://developer.box.com/reference/post-files-content if (operation === 'upload') { @@ -444,13 +444,13 @@ export class Box implements INodeType { this, 'entries', 'GET', - `/search`, + '/search', {}, qs, ); } else { qs.limit = this.getNodeParameter('limit', i); - responseData = await boxApiRequest.call(this, 'GET', `/search`, {}, qs); + responseData = await boxApiRequest.call(this, 'GET', '/search', {}, qs); responseData = responseData.entries; } } @@ -496,7 +496,7 @@ export class Box implements INodeType { body.accessible_by.id = this.getNodeParameter('groupId', i) as string; } - responseData = await boxApiRequest.call(this, 'POST', `/collaborations`, body, qs); + responseData = await boxApiRequest.call(this, 'POST', '/collaborations', body, qs); } //https://developer.box.com/guides/folders/single/move/ if (operation === 'update') { diff --git a/packages/nodes-base/nodes/Brandfetch/Brandfetch.node.ts b/packages/nodes-base/nodes/Brandfetch/Brandfetch.node.ts index 00fda64f217b0..68d0b7b4a1112 100644 --- a/packages/nodes-base/nodes/Brandfetch/Brandfetch.node.ts +++ b/packages/nodes-base/nodes/Brandfetch/Brandfetch.node.ts @@ -157,7 +157,7 @@ export class Brandfetch implements INodeType { domain, }; - const response = await brandfetchApiRequest.call(this, 'POST', `/logo`, body); + const response = await brandfetchApiRequest.call(this, 'POST', '/logo', body); if (download) { const imageTypes = this.getNodeParameter('imageTypes', i) as string[]; @@ -219,7 +219,7 @@ export class Brandfetch implements INodeType { domain, }; - const response = await brandfetchApiRequest.call(this, 'POST', `/color`, body); + const response = await brandfetchApiRequest.call(this, 'POST', '/color', body); const executionData = this.helpers.constructExecutionMetaData( this.helpers.returnJsonArray(response), { itemData: { item: i } }, @@ -233,7 +233,7 @@ export class Brandfetch implements INodeType { domain, }; - const response = await brandfetchApiRequest.call(this, 'POST', `/font`, body); + const response = await brandfetchApiRequest.call(this, 'POST', '/font', body); const executionData = this.helpers.constructExecutionMetaData( this.helpers.returnJsonArray(response), { itemData: { item: i } }, @@ -247,7 +247,7 @@ export class Brandfetch implements INodeType { domain, }; - const response = await brandfetchApiRequest.call(this, 'POST', `/company`, body); + const response = await brandfetchApiRequest.call(this, 'POST', '/company', body); const executionData = this.helpers.constructExecutionMetaData( this.helpers.returnJsonArray(response), { itemData: { item: i } }, @@ -261,7 +261,7 @@ export class Brandfetch implements INodeType { domain, }; - const response = await brandfetchApiRequest.call(this, 'POST', `/industry`, body); + const response = await brandfetchApiRequest.call(this, 'POST', '/industry', body); const executionData = this.helpers.constructExecutionMetaData( this.helpers.returnJsonArray(response), diff --git a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts index 0e0bc5bc130dc..c8076d81969b6 100644 --- a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts +++ b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts @@ -422,7 +422,8 @@ export const objectFields: INodeProperties[] = [ '/jsonParameters': [true], }, }, - placeholder: `[ { "key": "name", "constraint_type": "text contains", "value": "cafe" } , { "key": "address", "constraint_type": "geographic_search", "value": { "range":10, "origin_address":"New York" } } ]`, + placeholder: + '[ { "key": "name", "constraint_type": "text contains", "value": "cafe" } , { "key": "address", "constraint_type": "geographic_search", "value": { "range":10, "origin_address":"New York" } } ]', description: 'Refine the list that is returned by the Data API with search constraints, exactly as you define a search in Bubble. See link.', }, diff --git a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts index df8ac3d4d2e1d..1be6b1b7a26fa 100644 --- a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts +++ b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts @@ -493,7 +493,7 @@ export class Chargebee implements INodeType { } } - endpoint = `customers`; + endpoint = 'customers'; } else { throw new NodeOperationError( this.getNode(), diff --git a/packages/nodes-base/nodes/Citrix/ADC/CitrixAdc.node.ts b/packages/nodes-base/nodes/Citrix/ADC/CitrixAdc.node.ts index a909e7fe5789f..ab9a18ddf358d 100644 --- a/packages/nodes-base/nodes/Citrix/ADC/CitrixAdc.node.ts +++ b/packages/nodes-base/nodes/Citrix/ADC/CitrixAdc.node.ts @@ -72,7 +72,7 @@ export class CitrixAdc implements INodeType { const fileLocation = this.getNodeParameter('fileLocation', i) as string; const binaryProperty = this.getNodeParameter('binaryProperty', i); const options = this.getNodeParameter('options', i); - const endpoint = `/config/systemfile`; + const endpoint = '/config/systemfile'; const item = items[i]; @@ -197,7 +197,7 @@ export class CitrixAdc implements INodeType { }; } - const endpoint = `/config/sslcert?action=create`; + const endpoint = '/config/sslcert?action=create'; await citrixADCApiRequest.call(this, 'POST', endpoint, { sslcert: body }); @@ -237,7 +237,7 @@ export class CitrixAdc implements INodeType { }); } - const endpoint = `/config/sslcertkey`; + const endpoint = '/config/sslcertkey'; await citrixADCApiRequest.call(this, 'POST', endpoint, { sslcertkey: body }); diff --git a/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts b/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts index bb2f3b180a045..b7e7227bbb705 100644 --- a/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts @@ -82,5 +82,5 @@ export async function getAllCollectionEntries( export async function getAllCollectionNames( this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, ): Promise { - return cockpitApiRequest.call(this, 'GET', `/collections/listCollections`, {}); + return cockpitApiRequest.call(this, 'GET', '/collections/listCollections', {}); } diff --git a/packages/nodes-base/nodes/Cockpit/SingletonFunctions.ts b/packages/nodes-base/nodes/Cockpit/SingletonFunctions.ts index 43ae4e7662fad..79478749fc2ab 100644 --- a/packages/nodes-base/nodes/Cockpit/SingletonFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/SingletonFunctions.ts @@ -11,5 +11,5 @@ export async function getSingleton( export async function getAllSingletonNames( this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, ): Promise { - return cockpitApiRequest.call(this, 'GET', `/singletons/listSingletons`, {}); + return cockpitApiRequest.call(this, 'GET', '/singletons/listSingletons', {}); } diff --git a/packages/nodes-base/nodes/Coda/Coda.node.ts b/packages/nodes-base/nodes/Coda/Coda.node.ts index 8e774bebbcecc..a8f432ce5e496 100644 --- a/packages/nodes-base/nodes/Coda/Coda.node.ts +++ b/packages/nodes-base/nodes/Coda/Coda.node.ts @@ -83,7 +83,7 @@ export class Coda implements INodeType { async getDocs(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; const qs = {}; - const docs = await codaApiRequestAllItems.call(this, 'items', 'GET', `/docs`, {}, qs); + const docs = await codaApiRequestAllItems.call(this, 'items', 'GET', '/docs', {}, qs); for (const doc of docs) { const docName = doc.name; const docId = doc.id; diff --git a/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts b/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts index 4d960aef3f701..a53415f065a3d 100644 --- a/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts +++ b/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts @@ -222,7 +222,7 @@ export class CoinGecko implements INodeType { this, '', 'GET', - `/coins/markets`, + '/coins/markets', {}, qs, ); @@ -231,7 +231,7 @@ export class CoinGecko implements INodeType { qs.per_page = limit; - responseData = await coinGeckoApiRequest.call(this, 'GET', `/coins/markets`, {}, qs); + responseData = await coinGeckoApiRequest.call(this, 'GET', '/coins/markets', {}, qs); } } diff --git a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts index d6188b0ec8f67..7ac6a45e907ad 100644 --- a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts +++ b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts @@ -189,7 +189,7 @@ export class ConvertKit implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await convertKitApiRequest.call(this, 'GET', `/custom_fields`); + responseData = await convertKitApiRequest.call(this, 'GET', '/custom_fields'); responseData = responseData.custom_fields; @@ -256,7 +256,7 @@ export class ConvertKit implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await convertKitApiRequest.call(this, 'GET', `/forms`); + responseData = await convertKitApiRequest.call(this, 'GET', '/forms'); responseData = responseData.forms; @@ -339,7 +339,7 @@ export class ConvertKit implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await convertKitApiRequest.call(this, 'GET', `/sequences`); + responseData = await convertKitApiRequest.call(this, 'GET', '/sequences'); responseData = responseData.courses; @@ -394,7 +394,7 @@ export class ConvertKit implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await convertKitApiRequest.call(this, 'GET', `/tags`); + responseData = await convertKitApiRequest.call(this, 'GET', '/tags'); responseData = responseData.tags; diff --git a/packages/nodes-base/nodes/Cortex/Cortex.node.ts b/packages/nodes-base/nodes/Cortex/Cortex.node.ts index 046232cc68efc..0ed093c6d2a5f 100644 --- a/packages/nodes-base/nodes/Cortex/Cortex.node.ts +++ b/packages/nodes-base/nodes/Cortex/Cortex.node.ts @@ -88,7 +88,7 @@ export class Cortex implements INodeType { const requestResult = await cortexApiRequest.call( this, 'POST', - `/analyzer/_search?range=all`, + '/analyzer/_search?range=all', ); const returnData: INodePropertyOptions[] = []; @@ -106,7 +106,7 @@ export class Cortex implements INodeType { async loadActiveResponders(this: ILoadOptionsFunctions): Promise { // request the enabled responders from instance - const requestResult = await cortexApiRequest.call(this, 'GET', `/responder`); + const requestResult = await cortexApiRequest.call(this, 'GET', '/responder'); const returnData: INodePropertyOptions[] = []; for (const responder of requestResult) { diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts index d9b7dbfa0726e..195e5e2cd7f61 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts @@ -93,7 +93,7 @@ export class CustomerIo implements INodeType { } if (operation === 'getAll') { - const endpoint = `/campaigns`; + const endpoint = '/campaigns'; responseData = await customerIoApiRequest.call(this, 'GET', endpoint, body, 'beta'); responseData = responseData.campaigns; @@ -298,7 +298,7 @@ export class CustomerIo implements INodeType { body.data = data; } - const endpoint = `/events`; + const endpoint = '/events'; await customerIoApiRequest.call(this, 'POST', endpoint, body, 'tracking'); responseData = { diff --git a/packages/nodes-base/nodes/Demio/Demio.node.ts b/packages/nodes-base/nodes/Demio/Demio.node.ts index 7c2b9d8f6b4c5..d17b91b93c1cc 100644 --- a/packages/nodes-base/nodes/Demio/Demio.node.ts +++ b/packages/nodes-base/nodes/Demio/Demio.node.ts @@ -68,7 +68,7 @@ export class Demio implements INodeType { // select them easily async getEvents(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const events = await demioApiRequest.call(this, 'GET', `/events`, {}, { type: 'upcoming' }); + const events = await demioApiRequest.call(this, 'GET', '/events', {}, { type: 'upcoming' }); for (const event of events) { returnData.push({ name: event.name, @@ -136,7 +136,7 @@ export class Demio implements INodeType { Object.assign(qs, filters); - responseData = await demioApiRequest.call(this, 'GET', `/events`, {}, qs); + responseData = await demioApiRequest.call(this, 'GET', '/events', {}, qs); if (!returnAll) { const limit = this.getNodeParameter('limit', i); @@ -169,7 +169,7 @@ export class Demio implements INodeType { delete additionalFields.customFields; } - responseData = await demioApiRequest.call(this, 'PUT', `/event/register`, body); + responseData = await demioApiRequest.call(this, 'PUT', '/event/register', body); } } if (resource === 'report') { diff --git a/packages/nodes-base/nodes/Dhl/Dhl.node.ts b/packages/nodes-base/nodes/Dhl/Dhl.node.ts index eccdb4b5b2ee7..4bfc0bfe3a522 100644 --- a/packages/nodes-base/nodes/Dhl/Dhl.node.ts +++ b/packages/nodes-base/nodes/Dhl/Dhl.node.ts @@ -82,7 +82,7 @@ export class Dhl implements INodeType { default: {}, options: [ { - displayName: `Recipient's Postal Code`, + displayName: "Recipient's Postal Code", name: 'recipientPostalCode', type: 'string', default: '', @@ -140,7 +140,7 @@ export class Dhl implements INodeType { Object.assign(qs, options); - responseData = await dhlApiRequest.call(this, 'GET', `/track/shipments`, {}, qs); + responseData = await dhlApiRequest.call(this, 'GET', '/track/shipments', {}, qs); returnData.push(...responseData.shipments); } diff --git a/packages/nodes-base/nodes/Dhl/GenericFunctions.ts b/packages/nodes-base/nodes/Dhl/GenericFunctions.ts index 1f74ea5f9b70a..c76e268d28fdc 100644 --- a/packages/nodes-base/nodes/Dhl/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Dhl/GenericFunctions.ts @@ -66,7 +66,7 @@ export async function validateCredentials( trackingNumber: 123, }, method: 'GET', - uri: `https://api-eu.dhl.com/track/shipments`, + uri: 'https://api-eu.dhl.com/track/shipments', json: true, }; diff --git a/packages/nodes-base/nodes/Discourse/Discourse.node.ts b/packages/nodes-base/nodes/Discourse/Discourse.node.ts index b205f9c718b0d..5ee478e5e2fbf 100644 --- a/packages/nodes-base/nodes/Discourse/Discourse.node.ts +++ b/packages/nodes-base/nodes/Discourse/Discourse.node.ts @@ -96,7 +96,7 @@ export class Discourse implements INodeType { // select them easily async getCategories(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const { category_list } = await discourseApiRequest.call(this, 'GET', `/categories.json`); + const { category_list } = await discourseApiRequest.call(this, 'GET', '/categories.json'); for (const category of category_list.categories) { returnData.push({ name: category.name, @@ -131,7 +131,7 @@ export class Discourse implements INodeType { text_color: textColor, }; - responseData = await discourseApiRequest.call(this, 'POST', `/categories.json`, body); + responseData = await discourseApiRequest.call(this, 'POST', '/categories.json', body); responseData = responseData.category; } @@ -139,7 +139,7 @@ export class Discourse implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await discourseApiRequest.call(this, 'GET', `/categories.json`, {}, qs); + responseData = await discourseApiRequest.call(this, 'GET', '/categories.json', {}, qs); responseData = responseData.category_list.categories; @@ -181,7 +181,7 @@ export class Discourse implements INodeType { name, }; - responseData = await discourseApiRequest.call(this, 'POST', `/admin/groups.json`, { + responseData = await discourseApiRequest.call(this, 'POST', '/admin/groups.json', { group: body, }); @@ -199,7 +199,7 @@ export class Discourse implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await discourseApiRequest.call(this, 'GET', `/groups.json`, {}, qs); + responseData = await discourseApiRequest.call(this, 'GET', '/groups.json', {}, qs); responseData = responseData.groups; @@ -237,7 +237,7 @@ export class Discourse implements INodeType { Object.assign(body, additionalFields); - responseData = await discourseApiRequest.call(this, 'POST', `/posts.json`, body); + responseData = await discourseApiRequest.call(this, 'POST', '/posts.json', body); } //https://docs.discourse.org/#tag/Posts/paths/~1posts~1{id}.json/get if (operation === 'get') { @@ -250,7 +250,7 @@ export class Discourse implements INodeType { const returnAll = this.getNodeParameter('returnAll', i); const limit = this.getNodeParameter('limit', i, 0); - responseData = await discourseApiRequest.call(this, 'GET', `/posts.json`, {}, qs); + responseData = await discourseApiRequest.call(this, 'GET', '/posts.json', {}, qs); responseData = responseData.latest_posts; //Getting all posts relying on https://github.com/discourse/discourse_api/blob/main/spec/discourse_api/api/posts_spec.rb @@ -352,7 +352,7 @@ export class Discourse implements INodeType { Object.assign(body, additionalFields); - responseData = await discourseApiRequest.call(this, 'POST', `/users.json`, body); + responseData = await discourseApiRequest.call(this, 'POST', '/users.json', body); } //https://docs.discourse.org/#tag/Users/paths/~1users~1{username}.json/get if (operation === 'get') { diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts index bc9ae2cdaf59e..eb3baa77cf63e 100644 --- a/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/GenericFunctions.ts @@ -68,7 +68,7 @@ export async function elasticsearchApiRequestAllItems( track_total_hits: false, //Disable the tracking of total hits to speed up pagination }; - responseData = await elasticsearchApiRequest.call(this, 'GET', `/_search`, requestBody, qs); + responseData = await elasticsearchApiRequest.call(this, 'GET', '/_search', requestBody, qs); if (responseData?.hits?.hits) { returnData = returnData.concat(responseData.hits.hits); const lastHitIndex = responseData.hits.hits.length - 1; @@ -84,7 +84,7 @@ export async function elasticsearchApiRequestAllItems( requestBody.search_after = searchAfter; requestBody.pit = { id: pit, keep_alive: '1m' }; - responseData = await elasticsearchApiRequest.call(this, 'GET', `/_search`, requestBody, qs); + responseData = await elasticsearchApiRequest.call(this, 'GET', '/_search', requestBody, qs); if (responseData?.hits?.hits?.length) { returnData = returnData.concat(responseData.hits.hits); @@ -96,7 +96,7 @@ export async function elasticsearchApiRequestAllItems( } } - await elasticsearchApiRequest.call(this, 'DELETE', `/_pit`, { id: pit }); + await elasticsearchApiRequest.call(this, 'DELETE', '/_pit', { id: pit }); return returnData; } catch (error) { diff --git a/packages/nodes-base/nodes/EmailReadImap/v1/EmailReadImapV1.node.ts b/packages/nodes-base/nodes/EmailReadImap/v1/EmailReadImapV1.node.ts index 242045b7b45b3..8fb99c4eb7745 100644 --- a/packages/nodes-base/nodes/EmailReadImap/v1/EmailReadImapV1.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap/v1/EmailReadImapV1.node.ts @@ -479,7 +479,7 @@ export class EmailReadImapV1 implements INodeType { try { searchCriteria = JSON.parse(options.customEmailConfig as string); } catch (error) { - throw new NodeOperationError(this.getNode(), `Custom email config is not valid JSON.`); + throw new NodeOperationError(this.getNode(), 'Custom email config is not valid JSON.'); } } diff --git a/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts b/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts index 897a05c239ab4..3222321108886 100644 --- a/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts @@ -239,7 +239,7 @@ export class EmailReadImapV2 implements INodeType { const credentialsObject = await this.getCredentials('imap'); const credentials = isCredentialsDataImap(credentialsObject) ? credentialsObject : undefined; if (!credentials) { - throw new NodeOperationError(this.getNode(), `Credentials are not valid for imap node.`); + throw new NodeOperationError(this.getNode(), 'Credentials are not valid for imap node.'); } const mailbox = this.getNodeParameter('mailbox') as string; const postProcessAction = this.getNodeParameter('postProcessAction') as string; @@ -487,7 +487,7 @@ export class EmailReadImapV2 implements INodeType { try { searchCriteria = JSON.parse(options.customEmailConfig as string); } catch (error) { - throw new NodeOperationError(this.getNode(), `Custom email config is not valid JSON.`); + throw new NodeOperationError(this.getNode(), 'Custom email config is not valid JSON.'); } } @@ -560,11 +560,11 @@ export class EmailReadImapV2 implements INodeType { return imapConnect(config).then(async (conn) => { conn.on('close', async (_hadError: boolean) => { if (isCurrentlyReconnecting) { - Logger.debug(`Email Read Imap: Connected closed for forced reconnecting`); + Logger.debug('Email Read Imap: Connected closed for forced reconnecting'); } else if (closeFunctionWasCalled) { - Logger.debug(`Email Read Imap: Shutting down workflow - connected closed`); + Logger.debug('Email Read Imap: Shutting down workflow - connected closed'); } else { - Logger.error(`Email Read Imap: Connected closed unexpectedly`); + Logger.error('Email Read Imap: Connected closed unexpectedly'); this.emitError(new Error('Imap connection closed unexpectedly')); } }); @@ -586,7 +586,7 @@ export class EmailReadImapV2 implements INodeType { if (options.forceReconnect !== undefined) { reconnectionInterval = setInterval(async () => { - Logger.verbose(`Forcing reconnect to IMAP server`); + Logger.verbose('Forcing reconnect to IMAP server'); try { isCurrentlyReconnecting = true; if (connection.closeBox) await connection.closeBox(false); diff --git a/packages/nodes-base/nodes/Emelia/GenericFunctions.ts b/packages/nodes-base/nodes/Emelia/GenericFunctions.ts index 8d4ebf0f289b2..c1998410fc0e4 100644 --- a/packages/nodes-base/nodes/Emelia/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Emelia/GenericFunctions.ts @@ -124,7 +124,7 @@ export async function emeliaApiTest( }, method: 'POST', body, - uri: `https://graphql.emelia.io/graphql`, + uri: 'https://graphql.emelia.io/graphql', json: true, }; diff --git a/packages/nodes-base/nodes/Facebook/GenericFunctions.ts b/packages/nodes-base/nodes/Facebook/GenericFunctions.ts index 733ce918fecee..f6b47a4e3a616 100644 --- a/packages/nodes-base/nodes/Facebook/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Facebook/GenericFunctions.ts @@ -69,166 +69,169 @@ export function getFields(object: string) { page: [ { value: 'affiliation', - description: `Describes changes to a page's Affliation profile field`, + description: "Describes changes to a page's Affliation profile field", }, { value: 'attire', - description: `Describes changes to a page's Attire profile field`, + description: "Describes changes to a page's Attire profile field", }, { value: 'awards', - description: `Describes changes to a page's Awards profile field`, + description: "Describes changes to a page's Awards profile field", }, { value: 'bio', - description: `Describes changes to a page's Biography profile field`, + description: "Describes changes to a page's Biography profile field", }, { value: 'birthday', - description: `Describes changes to a page's Birthday profile field`, + description: "Describes changes to a page's Birthday profile field", }, { value: 'category', - description: `Describes changes to a page's Birthday profile field`, + description: "Describes changes to a page's Birthday profile field", }, { value: 'company_overview', - description: `Describes changes to a page's Company Overview profile field`, + description: "Describes changes to a page's Company Overview profile field", }, { value: 'culinary_team', - description: `Describes changes to a page's Culinary Team profile field`, + description: "Describes changes to a page's Culinary Team profile field", }, { value: 'current_location', - description: `Describes changes to a page's Current Location profile field`, + description: "Describes changes to a page's Current Location profile field", }, { value: 'description', - description: `Describes changes to a page's Story Description profile field`, + description: "Describes changes to a page's Story Description profile field", }, { value: 'email', - description: `Describes changes to a page's Email profile field`, + description: "Describes changes to a page's Email profile field", }, { value: 'feed', - description: `Describes nearly all changes to a Page's feed, such as Posts, shares, likes, etc`, + description: + "Describes nearly all changes to a Page's feed, such as Posts, shares, likes, etc", }, { value: 'founded', - description: `Describes changes to a page's Founded profile field. This is different from the Start Date field`, + description: + "Describes changes to a page's Founded profile field. This is different from the Start Date field", }, { value: 'general_info', - description: `Describes changes to a page's General Information profile field`, + description: "Describes changes to a page's General Information profile field", }, { value: 'general_manager', - description: `Describes changes to a page's General Information profile field`, + description: "Describes changes to a page's General Information profile field", }, { value: 'hometown', - description: `Describes changes to a page's Homewtown profile field`, + description: "Describes changes to a page's Homewtown profile field", }, { value: 'hours', - description: `Describes changes to a page's Hours profile field`, + description: "Describes changes to a page's Hours profile field", }, { value: 'leadgen', - description: `Describes changes to a page's leadgen settings`, + description: "Describes changes to a page's leadgen settings", }, { value: 'live_videos', - description: `Describes changes to a page's live video status`, + description: "Describes changes to a page's live video status", }, { value: 'location', - description: `Describes changes to a page's Location profile field`, + description: "Describes changes to a page's Location profile field", }, { value: 'members', - description: `Describes changes to a page's Members profile field`, + description: "Describes changes to a page's Members profile field", }, { value: 'mention', - description: `Describes new mentions of a page, including mentions in comments, posts, etc`, + description: 'Describes new mentions of a page, including mentions in comments, posts, etc', }, { value: 'merchant_review', - description: `Describes changes to a page's merchant review settings`, + description: "Describes changes to a page's merchant review settings", }, { value: 'mission', - description: `Describes changes to a page's Mission profile field`, + description: "Describes changes to a page's Mission profile field", }, { value: 'name', - description: `Describes changes to a page's Name profile field.`, + description: "Describes changes to a page's Name profile field.", }, { value: 'page_about_story', }, { value: 'page_change_proposal', - description: `Data for page change proposal.`, + description: 'Data for page change proposal.', }, { value: 'page_upcoming_change', - description: `Webhooks data for page upcoming changes`, + description: 'Webhooks data for page upcoming changes', }, { value: 'parking', - description: `Describes changes to a page's Parking profile field`, + description: "Describes changes to a page's Parking profile field", }, { value: 'payment_options', - description: `Describes change to a page's Payment profile field`, + description: "Describes change to a page's Payment profile field", }, { value: 'personal_info', - description: `Describes changes to a page's Personal Information profile field.`, + description: "Describes changes to a page's Personal Information profile field.", }, { value: 'personal_interests', - description: `Describes changes to a page's Personal Interests profile field.`, + description: "Describes changes to a page's Personal Interests profile field.", }, { value: 'phone', - description: `Describes changes to a page's Phone profile field`, + description: "Describes changes to a page's Phone profile field", }, { value: 'picture', - description: `Describes changes to a page's profile picture`, + description: "Describes changes to a page's profile picture", }, { value: 'price_range', - description: `Describes changes to a page's Price Range profile field`, + description: "Describes changes to a page's Price Range profile field", }, { value: 'product_review', - description: `Describes changes to a page's product review settings`, + description: "Describes changes to a page's product review settings", }, { value: 'products', - description: `Describes changes to a page's Products profile field`, + description: "Describes changes to a page's Products profile field", }, { value: 'public_transit', - description: `Describes changes to a page's Public Transit profile field`, + description: "Describes changes to a page's Public Transit profile field", }, { value: 'ratings', - description: `Describes changes to a page's ratings, including new ratings or a user's comments or reactions on a rating`, + description: + "Describes changes to a page's ratings, including new ratings or a user's comments or reactions on a rating", }, { value: 'videos', - description: `Describes changes to the encoding status of a video on a page`, + description: 'Describes changes to the encoding status of a video on a page', }, { value: 'website', - description: `Describes changes to a page's Website profile field`, + description: "Describes changes to a page's Website profile field", }, ], application: [ diff --git a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts index b7c50592813c8..0e58948c5f53f 100644 --- a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts +++ b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts @@ -102,7 +102,7 @@ export class FlowTrigger implements INodeType { return false; } qs.organization_id = credentials.organizationId as number; - const endpoint = `/integration_webhooks`; + const endpoint = '/integration_webhooks'; try { webhooks = await flowApiRequest.call(this, 'GET', endpoint, {}, qs); webhooks = webhooks.integration_webhooks; @@ -126,7 +126,7 @@ export class FlowTrigger implements INodeType { const webhookUrl = this.getNodeWebhookUrl('default'); const webhookData = this.getWorkflowStaticData('node'); const resource = this.getNodeParameter('resource') as string; - const endpoint = `/integration_webhooks`; + const endpoint = '/integration_webhooks'; if (resource === 'list') { resourceIds = (this.getNodeParameter('listIds') as string).split(','); } diff --git a/packages/nodes-base/nodes/FormIo/FormIoTrigger.node.ts b/packages/nodes-base/nodes/FormIo/FormIoTrigger.node.ts index de2c30b752e16..2cdc0f42c4f49 100644 --- a/packages/nodes-base/nodes/FormIo/FormIoTrigger.node.ts +++ b/packages/nodes-base/nodes/FormIo/FormIoTrigger.node.ts @@ -157,7 +157,7 @@ export class FormIoTrigger implements INodeType { const method = this.getNodeParameter('events') as string[]; const payload = { data: { - name: `webhook`, + name: 'webhook', title: `webhook-n8n:${webhookUrl}`, method, handler: ['after'], diff --git a/packages/nodes-base/nodes/FormIo/GenericFunctions.ts b/packages/nodes-base/nodes/FormIo/GenericFunctions.ts index 874b3760ddaf2..cf4aefac96cc7 100644 --- a/packages/nodes-base/nodes/FormIo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/FormIo/GenericFunctions.ts @@ -38,7 +38,7 @@ async function getToken( return responseObject.headers['x-jwt-token']; } catch (error) { throw new Error( - `Authentication Failed for Form.io. Please provide valid credentails/ endpoint details`, + 'Authentication Failed for Form.io. Please provide valid credentails/ endpoint details', ); } } diff --git a/packages/nodes-base/nodes/FreshworksCrm/FreshworksCrm.node.ts b/packages/nodes-base/nodes/FreshworksCrm/FreshworksCrm.node.ts index 6176f2dff2f4d..e996937913773 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/FreshworksCrm.node.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/FreshworksCrm.node.ts @@ -225,7 +225,7 @@ export class FreshworksCrm implements INodeType { const response = (await freshworksCrmApiRequest.call( this, 'GET', - `/selector/owners`, + '/selector/owners', )) as FreshworksConfigResponse; const key = Object.keys(response)[0]; diff --git a/packages/nodes-base/nodes/FreshworksCrm/GenericFunctions.ts b/packages/nodes-base/nodes/FreshworksCrm/GenericFunctions.ts index 3b75d7e4da827..62efc0039f6d2 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/GenericFunctions.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/GenericFunctions.ts @@ -190,5 +190,5 @@ export function throwOnEmptyUpdate(this: IExecuteFunctions, resource: string) { } export function throwOnEmptyFilter(this: IExecuteFunctions) { - throw new NodeOperationError(this.getNode(), `Please select at least one filter.`); + throw new NodeOperationError(this.getNode(), 'Please select at least one filter.'); } diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts index fd3ac017f9d95..ca740466d6ded 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts @@ -217,7 +217,8 @@ export const searchFields: INodeProperties[] = [ }, ], // eslint-disable-next-line n8n-nodes-base/node-param-description-unneeded-backticks - description: `Use 'entities' to query against related entities. You can include multiple entities at once, provided the field is available in both entities or else you'd receive an error response.`, + description: + "Use 'entities' to query against related entities. You can include multiple entities at once, provided the field is available in both entities or else you'd receive an error response.", }, ], }, diff --git a/packages/nodes-base/nodes/GetResponse/GetResponse.node.ts b/packages/nodes-base/nodes/GetResponse/GetResponse.node.ts index 5e8d6060884db..763e09fc7cd94 100644 --- a/packages/nodes-base/nodes/GetResponse/GetResponse.node.ts +++ b/packages/nodes-base/nodes/GetResponse/GetResponse.node.ts @@ -91,7 +91,7 @@ export class GetResponse implements INodeType { // select them easily async getCampaigns(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const campaigns = await getresponseApiRequest.call(this, 'GET', `/campaigns`); + const campaigns = await getresponseApiRequest.call(this, 'GET', '/campaigns'); for (const campaign of campaigns) { returnData.push({ name: campaign.name as string, @@ -104,7 +104,7 @@ export class GetResponse implements INodeType { // select them easily async getTags(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const tags = await getresponseApiRequest.call(this, 'GET', `/tags`); + const tags = await getresponseApiRequest.call(this, 'GET', '/tags'); for (const tag of tags) { returnData.push({ name: tag.name as string, @@ -117,7 +117,7 @@ export class GetResponse implements INodeType { // select them easily async getCustomFields(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const customFields = await getresponseApiRequest.call(this, 'GET', `/custom-fields`); + const customFields = await getresponseApiRequest.call(this, 'GET', '/custom-fields'); for (const customField of customFields) { returnData.push({ name: customField.name as string, @@ -256,13 +256,13 @@ export class GetResponse implements INodeType { responseData = await getResponseApiRequestAllItems.call( this, 'GET', - `/contacts`, + '/contacts', {}, qs, ); } else { qs.perPage = this.getNodeParameter('limit', i); - responseData = await getresponseApiRequest.call(this, 'GET', `/contacts`, {}, qs); + responseData = await getresponseApiRequest.call(this, 'GET', '/contacts', {}, qs); } } //https://apireference.getresponse.com/?_ga=2.160836350.2102802044.1604719933-1897033509.1604598019#operation/updateContact diff --git a/packages/nodes-base/nodes/Ghost/Ghost.node.ts b/packages/nodes-base/nodes/Ghost/Ghost.node.ts index 753deba5bfd68..b4c22b5fbf991 100644 --- a/packages/nodes-base/nodes/Ghost/Ghost.node.ts +++ b/packages/nodes-base/nodes/Ghost/Ghost.node.ts @@ -92,7 +92,7 @@ export class Ghost implements INodeType { // select them easily async getAuthors(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const users = await ghostApiRequestAllItems.call(this, 'users', 'GET', `/admin/users`); + const users = await ghostApiRequestAllItems.call(this, 'users', 'GET', '/admin/users'); for (const user of users) { returnData.push({ name: user.name, @@ -105,7 +105,7 @@ export class Ghost implements INodeType { // select them easily async getTags(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const tags = await ghostApiRequestAllItems.call(this, 'tags', 'GET', `/admin/tags`); + const tags = await ghostApiRequestAllItems.call(this, 'tags', 'GET', '/admin/tags'); for (const tag of tags) { returnData.push({ name: tag.name, diff --git a/packages/nodes-base/nodes/Google/BigQuery/GenericFunctions.ts b/packages/nodes-base/nodes/Google/BigQuery/GenericFunctions.ts index 9ba5a9716cae0..ee63dccec0f24 100644 --- a/packages/nodes-base/nodes/Google/BigQuery/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/BigQuery/GenericFunctions.ts @@ -106,7 +106,7 @@ async function getAccessToken( iss: credentials.email as string, sub: credentials.delegatedEmail || (credentials.email as string), scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Books/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Books/GenericFunctions.ts index 38543abeca9ff..1237d95b6d5a2 100644 --- a/packages/nodes-base/nodes/Google/Books/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Books/GenericFunctions.ts @@ -115,7 +115,7 @@ async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Books/GoogleBooks.node.ts b/packages/nodes-base/nodes/Google/Books/GoogleBooks.node.ts index 15376f462a6b8..01181c9c9c2d8 100644 --- a/packages/nodes-base/nodes/Google/Books/GoogleBooks.node.ts +++ b/packages/nodes-base/nodes/Google/Books/GoogleBooks.node.ts @@ -402,7 +402,7 @@ export class GoogleBooks implements INodeType { const userId = this.getNodeParameter('userId', i) as string; endpoint = `v1/users/${userId}/bookshelves`; } else { - endpoint = `v1/mylibrary/bookshelves`; + endpoint = 'v1/mylibrary/bookshelves'; } if (returnAll) { responseData = await googleApiRequestAllItems.call( diff --git a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts index 257a227ea3a53..824918654c90d 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts @@ -163,7 +163,7 @@ export class GoogleCalendar implements INodeType { responseData = await googleApiRequest.call( this, 'POST', - `/calendar/v3/freeBusy`, + '/calendar/v3/freeBusy', body, {}, ); @@ -287,7 +287,7 @@ export class GoogleCalendar implements INodeType { if (additionalFields.repeatHowManyTimes && additionalFields.repeatUntil) { throw new NodeOperationError( this.getNode(), - `You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, + "You can set either 'Repeat How Many Times' or 'Repeat Until' but not both", { itemIndex: i }, ); } @@ -544,7 +544,7 @@ export class GoogleCalendar implements INodeType { if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) { throw new NodeOperationError( this.getNode(), - `You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, + "You can set either 'Repeat How Many Times' or 'Repeat Until' but not both", { itemIndex: i }, ); } diff --git a/packages/nodes-base/nodes/Google/Chat/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Chat/GenericFunctions.ts index 4d1b26a8c6f38..7c5d7e2dcecc6 100644 --- a/packages/nodes-base/nodes/Google/Chat/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Chat/GenericFunctions.ts @@ -126,7 +126,7 @@ export async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Chat/GoogleChat.node.ts b/packages/nodes-base/nodes/Google/Chat/GoogleChat.node.ts index 3cf7198b8b6d6..6b38025b90e8a 100644 --- a/packages/nodes-base/nodes/Google/Chat/GoogleChat.node.ts +++ b/packages/nodes-base/nodes/Google/Chat/GoogleChat.node.ts @@ -114,7 +114,7 @@ export class GoogleChat implements INodeType { // select them easily async getSpaces(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const spaces = await googleApiRequestAllItems.call(this, 'spaces', 'GET', `/v1/spaces`); + const spaces = await googleApiRequestAllItems.call(this, 'spaces', 'GET', '/v1/spaces'); for (const space of spaces) { returnData.push({ name: space.displayName, @@ -142,7 +142,7 @@ export class GoogleChat implements INodeType { iss: email, sub: credential.data!.delegatedEmail || email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now, }, @@ -274,13 +274,13 @@ export class GoogleChat implements INodeType { this, 'spaces', 'GET', - `/v1/spaces`, + '/v1/spaces', ); } else { const limit = this.getNodeParameter('limit', i); qs.pageSize = limit; - responseData = await googleApiRequest.call(this, 'GET', `/v1/spaces`, undefined, qs); + responseData = await googleApiRequest.call(this, 'GET', '/v1/spaces', undefined, qs); responseData = responseData.spaces; } } diff --git a/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.ts b/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.ts index 4706fa823ab5f..e0b3e41c528f8 100644 --- a/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.ts +++ b/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GoogleCloudNaturalLanguage.node.ts @@ -287,7 +287,7 @@ export class GoogleCloudNaturalLanguage implements INodeType { const response = await googleApiRequest.call( this, 'POST', - `/v1/documents:analyzeSentiment`, + '/v1/documents:analyzeSentiment', body, ); responseData.push(response); diff --git a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts index ee55bce74967d..f13cb29efd49b 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts @@ -70,7 +70,7 @@ export class GoogleContacts implements INodeType { this, 'contactGroups', 'GET', - `/contactGroups`, + '/contactGroups', ); for (const group of groups) { const groupName = group.name; @@ -222,7 +222,7 @@ export class GoogleContacts implements INodeType { responseData = await googleApiRequest.call( this, 'POST', - `/people:createContact`, + '/people:createContact', body, qs, ); diff --git a/packages/nodes-base/nodes/Google/Docs/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Docs/GenericFunctions.ts index c7a864ca0a4e8..8a54fa9c2d2d8 100644 --- a/packages/nodes-base/nodes/Google/Docs/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Docs/GenericFunctions.ts @@ -110,7 +110,7 @@ async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts index d9e3256df2562..f07940c85734d 100644 --- a/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts @@ -117,7 +117,7 @@ async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts index 214d782f7b303..ba2832933420e 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts @@ -2041,7 +2041,7 @@ export class GoogleDrive implements INodeType { if (filter) { query.push(`name contains '${filter.replace("'", "\\'")}'`); } - query.push(`mimeType != 'application/vnd.google-apps.folder'`); + query.push("mimeType != 'application/vnd.google-apps.folder'"); const res = await googleApiRequest.call(this, 'GET', '/drive/v3/files', undefined, { q: query.join(' and '), pageToken: paginationToken, @@ -2066,7 +2066,7 @@ export class GoogleDrive implements INodeType { if (filter) { query.push(`name contains '${filter.replace("'", "\\'")}'`); } - query.push(`mimeType = 'application/vnd.google-apps.folder'`); + query.push("mimeType = 'application/vnd.google-apps.folder'"); const res = await googleApiRequest.call(this, 'GET', '/drive/v3/files', undefined, { q: query.join(' and '), pageToken: paginationToken, @@ -2137,7 +2137,7 @@ export class GoogleDrive implements INodeType { Object.assign(body, options); - const response = await googleApiRequest.call(this, 'POST', `/drive/v3/drives`, body, { + const response = await googleApiRequest.call(this, 'POST', '/drive/v3/drives', body, { requestId: uuid(), }); @@ -2211,13 +2211,13 @@ export class GoogleDrive implements INodeType { this, 'drives', 'GET', - `/drive/v3/drives`, + '/drive/v3/drives', {}, qs, ); } else { qs.pageSize = this.getNodeParameter('limit', i); - const data = await googleApiRequest.call(this, 'GET', `/drive/v3/drives`, {}, qs); + const data = await googleApiRequest.call(this, 'GET', '/drive/v3/drives', {}, qs); response = data.drives as IDataObject[]; } @@ -2489,7 +2489,7 @@ export class GoogleDrive implements INodeType { supportsAllDrives: queryCorpora !== '' || driveId !== '', }; - const response = await googleApiRequest.call(this, 'GET', `/drive/v3/files`, {}, qs); + const response = await googleApiRequest.call(this, 'GET', '/drive/v3/files', {}, qs); const files = response.files; @@ -2568,7 +2568,7 @@ export class GoogleDrive implements INodeType { let response = await googleApiRequest.call( this, 'POST', - `/upload/drive/v3/files`, + '/upload/drive/v3/files', body, qs, undefined, diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts index 5e3f8cd8cbfee..7e359381b754d 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.ts @@ -312,7 +312,7 @@ export class GoogleDriveTrigger implements INodeType { this, 'drives', 'GET', - `/drive/v3/drives`, + '/drive/v3/drives', ); returnData.push({ name: 'Root', @@ -355,9 +355,9 @@ export class GoogleDriveTrigger implements INodeType { // } if (event.startsWith('file')) { - query.push(`mimeType != 'application/vnd.google-apps.folder'`); + query.push("mimeType != 'application/vnd.google-apps.folder'"); } else { - query.push(`mimeType = 'application/vnd.google-apps.folder'`); + query.push("mimeType = 'application/vnd.google-apps.folder'"); } if (options.fileType && options.fileType !== 'all') { @@ -380,10 +380,10 @@ export class GoogleDriveTrigger implements INodeType { if (this.getMode() === 'manual') { qs.pageSize = 1; - files = await googleApiRequest.call(this, 'GET', `/drive/v3/files`, {}, qs); + files = await googleApiRequest.call(this, 'GET', '/drive/v3/files', {}, qs); files = files.files; } else { - files = await googleApiRequestAllItems.call(this, 'files', 'GET', `/drive/v3/files`, {}, qs); + files = await googleApiRequestAllItems.call(this, 'files', 'GET', '/drive/v3/files', {}, qs); } if (triggerOn === 'specificFile' && this.getMode() !== 'manual') { diff --git a/packages/nodes-base/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.ts b/packages/nodes-base/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.ts index 9170447d3ab14..2cdfbdb0415a8 100644 --- a/packages/nodes-base/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.ts +++ b/packages/nodes-base/nodes/Google/Firebase/RealtimeDatabase/GoogleFirebaseRealtimeDatabase.node.ts @@ -219,7 +219,7 @@ export class GoogleFirebaseRealtimeDatabase implements INodeType { if (responseData === null) { if (operation === 'get') { throw new NodeApiError(this.getNode(), responseData, { - message: `Requested entity was not found.`, + message: 'Requested entity was not found.', }); } else if (method === 'DELETE') { responseData = { success: true }; diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts index b03bfc199ea4f..f40509241d2fa 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts @@ -129,7 +129,7 @@ export class GSuiteAdmin implements INodeType { Object.assign(body, additionalFields); - responseData = await googleApiRequest.call(this, 'POST', `/directory/v1/groups`, body); + responseData = await googleApiRequest.call(this, 'POST', '/directory/v1/groups', body); } //https://developers.google.com/admin-sdk/directory/v1/reference/groups/delete @@ -175,14 +175,14 @@ export class GSuiteAdmin implements INodeType { this, 'groups', 'GET', - `/directory/v1/groups`, + '/directory/v1/groups', {}, qs, ); } else { qs.maxResults = this.getNodeParameter('limit', i); - responseData = await googleApiRequest.call(this, 'GET', `/directory/v1/groups`, {}, qs); + responseData = await googleApiRequest.call(this, 'GET', '/directory/v1/groups', {}, qs); responseData = responseData.groups; } @@ -251,7 +251,7 @@ export class GSuiteAdmin implements INodeType { delete body.emailUi; } - responseData = await googleApiRequest.call(this, 'POST', `/directory/v1/users`, body, qs); + responseData = await googleApiRequest.call(this, 'POST', '/directory/v1/users', body, qs); if (makeAdmin) { await googleApiRequest.call( @@ -345,14 +345,14 @@ export class GSuiteAdmin implements INodeType { this, 'users', 'GET', - `/directory/v1/users`, + '/directory/v1/users', {}, qs, ); } else { qs.maxResults = this.getNodeParameter('limit', i); - responseData = await googleApiRequest.call(this, 'GET', `/directory/v1/users`, {}, qs); + responseData = await googleApiRequest.call(this, 'GET', '/directory/v1/users', {}, qs); responseData = responseData.users; } diff --git a/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts index 65b24a17beea0..769d5d9ec553a 100644 --- a/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts @@ -126,7 +126,7 @@ export async function googleApiRequest( const resource = this.getNodeParameter('resource', 0) as string; if (resource === 'label') { const errorOptions = { - message: `Label name exists already`, + message: 'Label name exists already', description: '', }; throw new NodeApiError(this.getNode(), error, errorOptions); @@ -147,7 +147,7 @@ export async function googleApiRequest( ) { const errorOptions = { message: error.description, - description: ``, + description: '', }; throw new NodeApiError(this.getNode(), error, errorOptions); } @@ -319,7 +319,7 @@ async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, @@ -405,7 +405,7 @@ export function prepareQuery( if (!timestamp) { const description = `'${qs.receivedAfter}' isn't a valid date and time. If you're using an expression, be sure to set an ISO date string or a timestamp.`; - throw new NodeOperationError(this.getNode(), `Invalid date/time in 'Received After' field`, { + throw new NodeOperationError(this.getNode(), "Invalid date/time in 'Received After' field", { description, }); } @@ -434,7 +434,7 @@ export function prepareQuery( if (!timestamp) { const description = `'${qs.receivedBefore}' isn't a valid date and time. If you're using an expression, be sure to set an ISO date string or a timestamp.`; - throw new NodeOperationError(this.getNode(), `Invalid date/time in 'Received Before' field`, { + throw new NodeOperationError(this.getNode(), "Invalid date/time in 'Received Before' field", { description, }); } @@ -463,7 +463,7 @@ export function prepareEmailsInput( if (email.indexOf('@') === -1) { const description = `The email address '${email}' in the '${fieldName}' field isn't valid`; - throw new NodeOperationError(this.getNode(), `Invalid email address`, { + throw new NodeOperationError(this.getNode(), 'Invalid email address', { description, itemIndex, }); @@ -510,7 +510,7 @@ export async function prepareEmailAttachments( for (const name of (property as string).split(',')) { if (!items[itemIndex].binary || items[itemIndex].binary![name] === undefined) { const description = `This node has no input field called '${name}' `; - throw new NodeOperationError(this.getNode(), `Attachment not found`, { + throw new NodeOperationError(this.getNode(), 'Attachment not found', { description, itemIndex, }); @@ -521,7 +521,7 @@ export async function prepareEmailAttachments( if (!items[itemIndex].binary![name] || !Buffer.isBuffer(binaryDataBuffer)) { const description = `The input field '${name}' doesn't contain an attachment. Please make sure you specify a field containing binary data`; - throw new NodeOperationError(this.getNode(), `Attachment not found`, { + throw new NodeOperationError(this.getNode(), 'Attachment not found', { description, itemIndex, }); @@ -675,7 +675,7 @@ export async function simplifyOutput( this: IExecuteFunctions | IPollFunctions, data: IDataObject[], ) { - const labelsData = await googleApiRequest.call(this, 'GET', `/gmail/v1/users/me/labels`); + const labelsData = await googleApiRequest.call(this, 'GET', '/gmail/v1/users/me/labels'); const labels = ((labelsData.labels as IDataObject[]) || []).map(({ id, name }) => ({ id, name, diff --git a/packages/nodes-base/nodes/Google/Gmail/GmailTrigger.node.ts b/packages/nodes-base/nodes/Google/Gmail/GmailTrigger.node.ts index ce863787d20d4..aaa51c90dc2cf 100644 --- a/packages/nodes-base/nodes/Google/Gmail/GmailTrigger.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/GmailTrigger.node.ts @@ -211,7 +211,7 @@ export class GmailTrigger implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/messages`, + '/gmail/v1/users/me/messages', {}, qs, ); diff --git a/packages/nodes-base/nodes/Google/Gmail/v1/GmailV1.node.ts b/packages/nodes-base/nodes/Google/Gmail/v1/GmailV1.node.ts index 168425920d0cb..8ef63b1e241a3 100644 --- a/packages/nodes-base/nodes/Google/Gmail/v1/GmailV1.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/v1/GmailV1.node.ts @@ -231,7 +231,7 @@ export class GmailV1 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/labels`, + '/gmail/v1/users/me/labels', {}, qs, ); @@ -537,7 +537,7 @@ export class GmailV1 implements INodeType { this, 'messages', 'GET', - `/gmail/v1/users/me/messages`, + '/gmail/v1/users/me/messages', {}, qs, ); @@ -546,7 +546,7 @@ export class GmailV1 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/messages`, + '/gmail/v1/users/me/messages', {}, qs, ); @@ -765,7 +765,7 @@ export class GmailV1 implements INodeType { this, 'drafts', 'GET', - `/gmail/v1/users/me/drafts`, + '/gmail/v1/users/me/drafts', {}, qs, ); @@ -774,7 +774,7 @@ export class GmailV1 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/drafts`, + '/gmail/v1/users/me/drafts', {}, qs, ); diff --git a/packages/nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts b/packages/nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts index 30102df1e1342..dbf135e1d4811 100644 --- a/packages/nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts @@ -260,7 +260,7 @@ export class GmailV2 implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - responseData = await googleApiRequest.call(this, 'GET', `/gmail/v1/users/me/labels`); + responseData = await googleApiRequest.call(this, 'GET', '/gmail/v1/users/me/labels'); responseData = this.helpers.returnJsonArray(responseData.labels); @@ -390,7 +390,7 @@ export class GmailV2 implements INodeType { this, 'messages', 'GET', - `/gmail/v1/users/me/messages`, + '/gmail/v1/users/me/messages', {}, qs, ); @@ -399,7 +399,7 @@ export class GmailV2 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/messages`, + '/gmail/v1/users/me/messages', {}, qs, ); @@ -613,7 +613,7 @@ export class GmailV2 implements INodeType { this, 'drafts', 'GET', - `/gmail/v1/users/me/drafts`, + '/gmail/v1/users/me/drafts', {}, qs, ); @@ -622,7 +622,7 @@ export class GmailV2 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/drafts`, + '/gmail/v1/users/me/drafts', {}, qs, ); @@ -713,7 +713,7 @@ export class GmailV2 implements INodeType { this, 'threads', 'GET', - `/gmail/v1/users/me/threads`, + '/gmail/v1/users/me/threads', {}, qs, ); @@ -722,7 +722,7 @@ export class GmailV2 implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/gmail/v1/users/me/threads`, + '/gmail/v1/users/me/threads', {}, qs, ); diff --git a/packages/nodes-base/nodes/Google/Sheet/v1/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Sheet/v1/GenericFunctions.ts index bfca199205e77..8a789cf907d17 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v1/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v1/GenericFunctions.ts @@ -121,7 +121,7 @@ export async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheet.ts b/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheet.ts index 692ac69416789..0c8c72022f37c 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheet.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheet.ts @@ -481,7 +481,7 @@ export class GoogleSheet { if (keyRowIndex < 0 || dataStartRowIndex < keyRowIndex || keyRowIndex >= inputData.length) { // The key row does not exist so it is not possible to look up the data - throw new NodeOperationError(this.executeFunctions.getNode(), `The key row does not exist!`); + throw new NodeOperationError(this.executeFunctions.getNode(), 'The key row does not exist!'); } // Create the keys array diff --git a/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheetsV1.node.ts b/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheetsV1.node.ts index efc1769ead7bc..811982afeebd4 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheetsV1.node.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v1/GoogleSheetsV1.node.ts @@ -481,7 +481,7 @@ export class GoogleSheetsV1 implements INodeType { : undefined; body.properties.locale = options.locale ? (options.locale as string) : undefined; - responseData = await googleApiRequest.call(this, 'POST', `/v4/spreadsheets`, body); + responseData = await googleApiRequest.call(this, 'POST', '/v4/spreadsheets', body); returnData.push(responseData); } catch (error) { diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts index bc486d8dc6089..45176b1e162cc 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.ts @@ -155,13 +155,15 @@ export const descriptions: INodeProperties[] = [ type: 'string', extractValue: { type: 'regex', - regex: `https:\\/\\/docs\\.google\\.com\/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)`, + regex: + 'https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)', }, validation: [ { type: 'regex', properties: { - regex: `https:\\/\\/docs\\.google\\.com\/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)`, + regex: + 'https:\\/\\/docs\\.google\\.com/spreadsheets\\/d\\/[0-9a-zA-Z\\-_]+\\/edit\\#gid=([0-9]+)', errorMessage: 'Not a valid Sheet URL', }, }, diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.ts index fce8b06e59b26..d176c5ad24c60 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.ts @@ -234,7 +234,7 @@ export async function execute( if (handlingExtraDataOption === 'error') { Object.keys(items[i].json).forEach((key) => { if (!columnNames.includes(key)) { - throw new NodeOperationError(this.getNode(), `Unexpected fields in node input`, { + throw new NodeOperationError(this.getNode(), 'Unexpected fields in node input', { itemIndex: i, description: `The input field '${key}' doesn't match any column in the Sheet. You can ignore this by changing the 'Handling extra data' field, which you can find under 'Options'.`, }); diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts index 8570abbb83f0f..78a2006f8ede5 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts @@ -232,7 +232,7 @@ export async function execute( if (handlingExtraDataOption === 'error') { Object.keys(items[i].json).forEach((key) => { if (!columnNames.includes(key)) { - throw new NodeOperationError(this.getNode(), `Unexpected fields in node input`, { + throw new NodeOperationError(this.getNode(), 'Unexpected fields in node input', { itemIndex: i, description: `The input field '${key}' doesn't match any column in the Sheet. You can ignore this by changing the 'Handling extra data' field, which you can find under 'Options'.`, }); diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/spreadsheet/create.operation.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/spreadsheet/create.operation.ts index 391a627620f30..c20cbb8da98f9 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/spreadsheet/create.operation.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/spreadsheet/create.operation.ts @@ -145,7 +145,7 @@ export async function execute(this: IExecuteFunctions): Promise= inputData.length) { // The key row does not exist so it is not possible to look up the data - throw new NodeOperationError(this.executeFunctions.getNode(), `The key row does not exist`); + throw new NodeOperationError(this.executeFunctions.getNode(), 'The key row does not exist'); } // Create the keys array diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts b/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts index a7e7f7b52a971..70ea5ba566d26 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts @@ -267,7 +267,7 @@ export async function autoMapInputData( items.forEach((item, itemIndex) => { Object.keys(item.json).forEach((key) => { if (!columnNames.includes(key)) { - throw new NodeOperationError(this.getNode(), `Unexpected fields in node input`, { + throw new NodeOperationError(this.getNode(), 'Unexpected fields in node input', { itemIndex, description: `The input field '${key}' doesn't match any column in the Sheet. You can ignore this by changing the 'Handling extra data' field, which you can find under 'Options'.`, }); diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/transport/index.ts b/packages/nodes-base/nodes/Google/Sheet/v2/transport/index.ts index 862b823f93a62..a1e8152fd4107 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/transport/index.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/transport/index.ts @@ -122,7 +122,7 @@ export async function getAccessToken( iss: credentials.email, sub: credentials.delegatedEmail || credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts index d2fcbdddc5893..4df401976e9f8 100644 --- a/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts @@ -112,7 +112,7 @@ async function getAccessToken( iss: credentials.email, sub: credentials.email, scope: scopes.join(' '), - aud: `https://oauth2.googleapis.com/token`, + aud: 'https://oauth2.googleapis.com/token', iat: now, exp: now + 3600, }, diff --git a/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts b/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts index 39565ee68ff32..7b26e10dc51ca 100644 --- a/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts +++ b/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts @@ -195,7 +195,7 @@ export class GoogleTranslate implements INodeType { const text = this.getNodeParameter('text', i) as string; const translateTo = this.getNodeParameter('translateTo', i) as string; - const response = await googleApiRequest.call(this, 'POST', `/language/translate/v2`, { + const response = await googleApiRequest.call(this, 'POST', '/language/translate/v2', { q: text, target: translateTo, }); diff --git a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts index 320838769ec6e..2794b30592ab2 100644 --- a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts +++ b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts @@ -217,7 +217,7 @@ export class YouTube implements INodeType { qs.id = channelId; - responseData = await googleApiRequest.call(this, 'GET', `/youtube/v3/channels`, {}, qs); + responseData = await googleApiRequest.call(this, 'GET', '/youtube/v3/channels', {}, qs); responseData = responseData.items; } @@ -257,7 +257,7 @@ export class YouTube implements INodeType { this, 'items', 'GET', - `/youtube/v3/channels`, + '/youtube/v3/channels', {}, qs, ); @@ -266,7 +266,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/channels`, + '/youtube/v3/channels', {}, qs, ); @@ -434,7 +434,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'PUT', - `/youtube/v3/channels`, + '/youtube/v3/channels', { id: channelId, brandingSettings: { @@ -467,7 +467,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/playlists`, + '/youtube/v3/playlists', {}, qs, ); @@ -500,7 +500,7 @@ export class YouTube implements INodeType { this, 'items', 'GET', - `/youtube/v3/playlists`, + '/youtube/v3/playlists', {}, qs, ); @@ -509,7 +509,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/playlists`, + '/youtube/v3/playlists', {}, qs, ); @@ -651,7 +651,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/playlistItems`, + '/youtube/v3/playlistItems', {}, qs, ); @@ -681,7 +681,7 @@ export class YouTube implements INodeType { this, 'items', 'GET', - `/youtube/v3/playlistItems`, + '/youtube/v3/playlistItems', {}, qs, ); @@ -690,7 +690,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/playlistItems`, + '/youtube/v3/playlistItems', {}, qs, ); @@ -793,7 +793,7 @@ export class YouTube implements INodeType { if (qs.relatedToVideoId && qs.forDeveloper !== undefined) { throw new NodeOperationError( this.getNode(), - `When using the parameter 'related to video' the parameter 'for developer' cannot be set`, + "When using the parameter 'related to video' the parameter 'for developer' cannot be set", { itemIndex: i }, ); } @@ -803,13 +803,13 @@ export class YouTube implements INodeType { this, 'items', 'GET', - `/youtube/v3/search`, + '/youtube/v3/search', {}, qs, ); } else { qs.maxResults = this.getNodeParameter('limit', i); - responseData = await googleApiRequest.call(this, 'GET', `/youtube/v3/search`, {}, qs); + responseData = await googleApiRequest.call(this, 'GET', '/youtube/v3/search', {}, qs); responseData = responseData.items; } } @@ -840,7 +840,7 @@ export class YouTube implements INodeType { Object.assign(qs, options); - responseData = await googleApiRequest.call(this, 'GET', `/youtube/v3/videos`, {}, qs); + responseData = await googleApiRequest.call(this, 'GET', '/youtube/v3/videos', {}, qs); responseData = responseData.items; } @@ -962,7 +962,7 @@ export class YouTube implements INodeType { delete options.notifySubscribers; } - responseData = await googleApiRequest.call(this, 'PUT', `/youtube/v3/videos`, data, qs); + responseData = await googleApiRequest.call(this, 'PUT', '/youtube/v3/videos', data, qs); } //https://developers.google.com/youtube/v3/docs/playlists/update if (operation === 'update') { @@ -1085,7 +1085,7 @@ export class YouTube implements INodeType { responseData = await googleApiRequest.call( this, 'GET', - `/youtube/v3/videoCategories`, + '/youtube/v3/videoCategories', {}, qs, ); diff --git a/packages/nodes-base/nodes/Gotify/Gotify.node.ts b/packages/nodes-base/nodes/Gotify/Gotify.node.ts index 467c09eeab38d..e00c32e0d55cc 100644 --- a/packages/nodes-base/nodes/Gotify/Gotify.node.ts +++ b/packages/nodes-base/nodes/Gotify/Gotify.node.ts @@ -179,7 +179,7 @@ export class Gotify implements INodeType { Object.assign(body, additionalFields); - responseData = await gotifyApiRequest.call(this, 'POST', `/message`, body); + responseData = await gotifyApiRequest.call(this, 'POST', '/message', body); } if (operation === 'delete') { const messageId = this.getNodeParameter('messageId', i) as string; @@ -202,7 +202,7 @@ export class Gotify implements INodeType { ); } else { qs.limit = this.getNodeParameter('limit', i); - responseData = await gotifyApiRequest.call(this, 'GET', `/message`, {}, qs); + responseData = await gotifyApiRequest.call(this, 'GET', '/message', {}, qs); responseData = responseData.messages; } } diff --git a/packages/nodes-base/nodes/HaloPSA/HaloPSA.node.ts b/packages/nodes-base/nodes/HaloPSA/HaloPSA.node.ts index 8f656772a35a8..84d8e3fd5dec9 100644 --- a/packages/nodes-base/nodes/HaloPSA/HaloPSA.node.ts +++ b/packages/nodes-base/nodes/HaloPSA/HaloPSA.node.ts @@ -143,7 +143,7 @@ export class HaloPSA implements INodeType { const response = (await haloPSAApiRequest.call( this, 'GET', - `/TicketType`, + '/TicketType', tokens.access_token, {}, )) as IDataObject[]; @@ -178,7 +178,7 @@ export class HaloPSA implements INodeType { const response = (await haloPSAApiRequest.call( this, 'GET', - `/agent`, + '/agent', tokens.access_token, {}, )) as IDataObject[]; @@ -294,7 +294,7 @@ export class HaloPSA implements INodeType { this, 'clients', 'GET', - `/client`, + '/client', tokens.access_token, {}, qs, @@ -305,7 +305,7 @@ export class HaloPSA implements INodeType { const { clients } = await haloPSAApiRequest.call( this, 'GET', - `/client`, + '/client', tokens.access_token, {}, qs, @@ -401,7 +401,7 @@ export class HaloPSA implements INodeType { this, 'sites', 'GET', - `/site`, + '/site', tokens.access_token, {}, qs, @@ -412,7 +412,7 @@ export class HaloPSA implements INodeType { const { sites } = await haloPSAApiRequest.call( this, 'GET', - `/site`, + '/site', tokens.access_token, {}, qs, @@ -510,7 +510,7 @@ export class HaloPSA implements INodeType { this, 'tickets', 'GET', - `/tickets`, + '/tickets', tokens.access_token, {}, qs, @@ -521,7 +521,7 @@ export class HaloPSA implements INodeType { const { tickets } = await haloPSAApiRequest.call( this, 'GET', - `/tickets`, + '/tickets', tokens.access_token, {}, qs, @@ -618,7 +618,7 @@ export class HaloPSA implements INodeType { this, 'users', 'GET', - `/users`, + '/users', tokens.access_token, {}, qs, @@ -629,7 +629,7 @@ export class HaloPSA implements INodeType { const { users } = await haloPSAApiRequest.call( this, 'GET', - `/users`, + '/users', tokens.access_token, {}, qs, diff --git a/packages/nodes-base/nodes/Harvest/Harvest.node.ts b/packages/nodes-base/nodes/Harvest/Harvest.node.ts index 3bd1cafa7121f..e0ded4aa12be2 100644 --- a/packages/nodes-base/nodes/Harvest/Harvest.node.ts +++ b/packages/nodes-base/nodes/Harvest/Harvest.node.ts @@ -665,7 +665,7 @@ export class Harvest implements INodeType { requestMethod = 'GET'; - endpoint = `users/me`; + endpoint = 'users/me'; const responseData = await harvestApiRequest.call(this, requestMethod, qs, endpoint); @@ -871,7 +871,7 @@ export class Harvest implements INodeType { // ---------------------------------- requestMethod = 'GET'; - endpoint = `company`; + endpoint = 'company'; const responseData = await harvestApiRequest.call(this, requestMethod, qs, endpoint); diff --git a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts index d359c10fcc55a..40a1e28d92ddc 100644 --- a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts +++ b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts @@ -236,7 +236,7 @@ export class HtmlExtract implements INodeType { htmlArray = item.json[dataPropertyName] as string; } else { if (item.binary === undefined) { - throw new NodeOperationError(this.getNode(), `No item does not contain binary data!`, { + throw new NodeOperationError(this.getNode(), 'No item does not contain binary data!', { itemIndex, }); } diff --git a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts index 24fd8533db169..b0d92032cc82e 100644 --- a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts @@ -1106,7 +1106,7 @@ export class HttpRequestV3 implements INodeType { } catch (_) { throw new NodeOperationError( this.getNode(), - `JSON parameter need to be an valid JSON`, + 'JSON parameter need to be an valid JSON', { runIndex: itemIndex, }, @@ -1156,7 +1156,7 @@ export class HttpRequestV3 implements INodeType { } catch (_) { throw new NodeOperationError( this.getNode(), - `JSON parameter need to be an valid JSON`, + 'JSON parameter need to be an valid JSON', { runIndex: itemIndex, }, @@ -1181,7 +1181,7 @@ export class HttpRequestV3 implements INodeType { } catch (_) { throw new NodeOperationError( this.getNode(), - `JSON parameter need to be an valid JSON`, + 'JSON parameter need to be an valid JSON', { runIndex: itemIndex, }, diff --git a/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts b/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts index 27576fcfd2946..9f89dcb10c994 100644 --- a/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts @@ -1997,7 +1997,7 @@ export async function validateCredentials( const options: OptionsWithUri = { method: 'GET', headers: {}, - uri: `https://api.hubapi.com/deals/v1/deal/paged`, + uri: 'https://api.hubapi.com/deals/v1/deal/paged', json: true, }; diff --git a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts index c6468296c26d1..f2cfa451283cb 100644 --- a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts +++ b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts @@ -187,7 +187,7 @@ export class Hubspot implements INodeType { if (err.statusCode === 401) { return { status: 'Error', - message: `Invalid credentials`, + message: 'Invalid credentials', }; } } @@ -1938,7 +1938,7 @@ export class Hubspot implements INodeType { if (options.propertiesWithHistory) { qs.propertiesWithHistory = (options.propertiesWithHistory as string).split(','); } - const endpoint = `/companies/v2/companies/paged`; + const endpoint = '/companies/v2/companies/paged'; if (returnAll) { responseData = await hubspotApiRequestAllItems.call( this, @@ -1959,13 +1959,13 @@ export class Hubspot implements INodeType { let endpoint; const returnAll = this.getNodeParameter('returnAll', 0); if (operation === 'getRecentlyCreated') { - endpoint = `/companies/v2/companies/recent/created`; + endpoint = '/companies/v2/companies/recent/created'; } else { const filters = this.getNodeParameter('filters', i); if (filters.since) { qs.since = new Date(filters.since as string).getTime(); } - endpoint = `/companies/v2/companies/recent/modified`; + endpoint = '/companies/v2/companies/recent/modified'; } if (returnAll) { responseData = await hubspotApiRequestAllItems.call( @@ -2176,7 +2176,7 @@ export class Hubspot implements INodeType { ? (propertiesWithHistory as string).split(',') : propertiesWithHistory; } - const endpoint = `/deals/v1/deal/paged`; + const endpoint = '/deals/v1/deal/paged'; if (returnAll) { responseData = await hubspotApiRequestAllItems.call( this, @@ -2203,9 +2203,9 @@ export class Hubspot implements INodeType { qs.includePropertyVersions = filters.includePropertyVersions as boolean; } if (operation === 'getRecentlyCreated') { - endpoint = `/deals/v1/deal/recent/created`; + endpoint = '/deals/v1/deal/recent/created'; } else { - endpoint = `/deals/v1/deal/recent/modified`; + endpoint = '/deals/v1/deal/recent/modified'; } if (returnAll) { responseData = await hubspotApiRequestAllItems.call( @@ -2295,7 +2295,7 @@ export class Hubspot implements INodeType { if (!Object.keys(metadata).length) { throw new NodeOperationError( this.getNode(), - `At least one metadata field needs to set`, + 'At least one metadata field needs to set', { itemIndex: i }, ); } @@ -2350,7 +2350,7 @@ export class Hubspot implements INodeType { //https://legacydocs.hubspot.com/docs/methods/engagements/get-all-engagements if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', 0); - const endpoint = `/engagements/v1/engagements/paged`; + const endpoint = '/engagements/v1/engagements/paged'; if (returnAll) { responseData = await hubspotApiRequestAllItems.call( this, @@ -2578,7 +2578,7 @@ export class Hubspot implements INodeType { ',', ); } - const endpoint = `/crm-objects/v1/objects/tickets/paged`; + const endpoint = '/crm-objects/v1/objects/tickets/paged'; if (returnAll) { responseData = await hubspotApiRequestAllItems.call( this, diff --git a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts index eef9b34d74dbc..11009302d1322 100644 --- a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts +++ b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts @@ -328,7 +328,7 @@ export class HubspotTrigger implements INodeType { endpoint = `/webhooks/v3/${appId}/subscriptions`; if (Array.isArray(events) && events.length === 0) { - throw new NodeOperationError(this.getNode(), `You must define at least one event`); + throw new NodeOperationError(this.getNode(), 'You must define at least one event'); } for (const event of events) { diff --git a/packages/nodes-base/nodes/HumanticAI/HumanticAi.node.ts b/packages/nodes-base/nodes/HumanticAI/HumanticAi.node.ts index ac5cd3fa8d9b1..82389ea039180 100644 --- a/packages/nodes-base/nodes/HumanticAI/HumanticAi.node.ts +++ b/packages/nodes-base/nodes/HumanticAI/HumanticAi.node.ts @@ -94,7 +94,7 @@ export class HumanticAi implements INodeType { responseData = await humanticAiApiRequest.call( this, 'POST', - `/user-profile/create`, + '/user-profile/create', {}, qs, { @@ -112,7 +112,7 @@ export class HumanticAi implements INodeType { responseData = await humanticAiApiRequest.call( this, 'GET', - `/user-profile/create`, + '/user-profile/create', {}, qs, ); @@ -134,7 +134,7 @@ export class HumanticAi implements INodeType { qs.persona = (options.persona as string[]).join(','); } - responseData = await humanticAiApiRequest.call(this, 'GET', `/user-profile`, {}, qs); + responseData = await humanticAiApiRequest.call(this, 'GET', '/user-profile', {}, qs); responseData = responseData.results; } if (operation === 'update') { @@ -167,7 +167,7 @@ export class HumanticAi implements INodeType { responseData = await humanticAiApiRequest.call( this, 'POST', - `/user-profile/create`, + '/user-profile/create', {}, qs, { @@ -193,7 +193,7 @@ export class HumanticAi implements INodeType { responseData = await humanticAiApiRequest.call( this, 'POST', - `/user-profile/create`, + '/user-profile/create', body, qs, ); diff --git a/packages/nodes-base/nodes/ItemLists/ItemLists.node.ts b/packages/nodes-base/nodes/ItemLists/ItemLists.node.ts index 65db51ee552c7..26681c80c6a10 100644 --- a/packages/nodes-base/nodes/ItemLists/ItemLists.node.ts +++ b/packages/nodes-base/nodes/ItemLists/ItemLists.node.ts @@ -767,7 +767,8 @@ return 0;`, this.getNode(), `Couldn't find the field '${fieldToSplitOut}' in the input data`, { - description: `If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options`, + description: + "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options", }, ); } else { @@ -901,7 +902,8 @@ return 0;`, this.getNode(), `Couldn't find the field '${fieldToAggregate}' in the input data`, { - description: `If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options`, + description: + "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options", }, ); } else if (!found && !keepMissing) { @@ -931,7 +933,7 @@ return 0;`, throw new NodeOperationError( this.getNode(), `The '${field}' output field is used more than once`, - { description: `Please make sure each output field name is unique` }, + { description: 'Please make sure each output field name is unique' }, ); } else { outputFields.push(field); @@ -1132,7 +1134,7 @@ return 0;`, let type: any = undefined; for (const item of newItems) { if (key === '') { - throw new NodeOperationError(this.getNode(), `Name of field to compare is blank`); + throw new NodeOperationError(this.getNode(), 'Name of field to compare is blank'); } const value = !disableDotNotation ? get(item.json, key) : item.json[key]; if (value === undefined && disableDotNotation && key.includes('.')) { @@ -1140,7 +1142,8 @@ return 0;`, this.getNode(), `'${key}' field is missing from some input items`, { - description: `If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options`, + description: + "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options", }, ); } else if (value === undefined) { @@ -1225,7 +1228,8 @@ return 0;`, this.getNode(), `Couldn't find the field '${fieldName}' in the input data`, { - description: `If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options`, + description: + "If you're trying to use a nested field, make sure you turn off 'disable dot notation' in the node options", }, ); } else if (!found) { @@ -1328,7 +1332,7 @@ return 0;`, } else { throw new NodeOperationError( this.getNode(), - `Sort code doesn't return. Please add a 'return' statement to your code`, + "Sort code doesn't return. Please add a 'return' statement to your code", ); } } diff --git a/packages/nodes-base/nodes/Iterable/Iterable.node.ts b/packages/nodes-base/nodes/Iterable/Iterable.node.ts index 073f77906ecfa..9a1556355d40a 100644 --- a/packages/nodes-base/nodes/Iterable/Iterable.node.ts +++ b/packages/nodes-base/nodes/Iterable/Iterable.node.ts @@ -232,7 +232,7 @@ export class Iterable implements INodeType { if (by === 'email') { const email = this.getNodeParameter('email', i) as string; - endpoint = `/users/getByEmail`; + endpoint = '/users/getByEmail'; qs.email = email; } else { const userId = this.getNodeParameter('userId', i) as string; @@ -244,7 +244,7 @@ export class Iterable implements INodeType { if (!this.continueOnFail()) { if (Object.keys(responseData).length === 0) { throw new NodeApiError(this.getNode(), responseData, { - message: `User not found`, + message: 'User not found', httpCode: '404', }); } diff --git a/packages/nodes-base/nodes/Iterable/UserDescription.ts b/packages/nodes-base/nodes/Iterable/UserDescription.ts index 840df98256c14..742c38685d66f 100644 --- a/packages/nodes-base/nodes/Iterable/UserDescription.ts +++ b/packages/nodes-base/nodes/Iterable/UserDescription.ts @@ -77,7 +77,7 @@ export const userFields: INodeProperties[] = [ default: '', }, { - displayName: `Create If Doesn't exist`, + displayName: "Create If Doesn't Exist", name: 'preferUserId', type: 'boolean', required: true, diff --git a/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts b/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts index 8eb07fc47038f..101b7b5bd9116 100644 --- a/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts +++ b/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts @@ -428,7 +428,7 @@ export class Jenkins implements INodeType { loadOptions: { async getJobs(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const endpoint = `/api/json`; + const endpoint = '/api/json'; const { jobs } = await jenkinsApiRequest.call(this, 'GET', endpoint); for (const job of jobs) { returnData.push({ @@ -530,7 +530,7 @@ export class Jenkins implements INodeType { from: job, }; - const endpoint = `/createItem`; + const endpoint = '/createItem'; try { await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams); responseData = { success: true }; @@ -553,7 +553,7 @@ export class Jenkins implements INodeType { const body = this.getNodeParameter('xml', i) as string; - const endpoint = `/createItem`; + const endpoint = '/createItem'; await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams, body, { headers, json: false, @@ -573,17 +573,17 @@ export class Jenkins implements INodeType { }; } - const endpoint = `/quietDown`; + const endpoint = '/quietDown'; await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams); responseData = { success: true }; } if (operation === 'cancelQuietDown') { - const endpoint = `/cancelQuietDown`; + const endpoint = '/cancelQuietDown'; await jenkinsApiRequest.call(this, 'POST', endpoint); responseData = { success: true }; } if (operation === 'restart') { - const endpoint = `/restart`; + const endpoint = '/restart'; try { await jenkinsApiRequest.call(this, 'POST', endpoint); } catch (error) { @@ -595,7 +595,7 @@ export class Jenkins implements INodeType { } } if (operation === 'safeRestart') { - const endpoint = `/safeRestart`; + const endpoint = '/safeRestart'; try { await jenkinsApiRequest.call(this, 'POST', endpoint); } catch (error) { @@ -607,12 +607,12 @@ export class Jenkins implements INodeType { } } if (operation === 'exit') { - const endpoint = `/exit`; + const endpoint = '/exit'; await jenkinsApiRequest.call(this, 'POST', endpoint); responseData = { success: true }; } if (operation === 'safeExit') { - const endpoint = `/safeExit`; + const endpoint = '/safeExit'; await jenkinsApiRequest.call(this, 'POST', endpoint); responseData = { success: true }; } diff --git a/packages/nodes-base/nodes/Jira/Jira.node.ts b/packages/nodes-base/nodes/Jira/Jira.node.ts index 7254985debeab..3dedfbcdebce5 100644 --- a/packages/nodes-base/nodes/Jira/Jira.node.ts +++ b/packages/nodes-base/nodes/Jira/Jira.node.ts @@ -753,7 +753,7 @@ export class Jira implements INodeType { responseData = await jiraSoftwareCloudApiRequestAllItems.call( this, 'issues', - `/api/2/search`, + '/api/2/search', 'POST', body, ); @@ -762,7 +762,7 @@ export class Jira implements INodeType { body.maxResults = limit; responseData = await jiraSoftwareCloudApiRequest.call( this, - `/api/2/search`, + '/api/2/search', 'POST', body, ); diff --git a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts index 7892f52e32b8c..9d597df4d0f6d 100644 --- a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts +++ b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts @@ -369,7 +369,7 @@ export class JiraTrigger implements INodeType { const events = this.getNodeParameter('events') as string[]; - const endpoint = `/webhooks/1.0/webhook`; + const endpoint = '/webhooks/1.0/webhook'; const webhooks = await jiraSoftwareCloudApiRequest.call(this, endpoint, 'GET', {}); @@ -389,7 +389,7 @@ export class JiraTrigger implements INodeType { const additionalFields = this.getNodeParameter('additionalFields') as IDataObject; - const endpoint = `/webhooks/1.0/webhook`; + const endpoint = '/webhooks/1.0/webhook'; const webhookData = this.getWorkflowStaticData('node'); @@ -430,7 +430,7 @@ export class JiraTrigger implements INodeType { ); } if (!httpQueryAuth.name && !httpQueryAuth.value) { - throw new NodeOperationError(this.getNode(), `HTTP Query Auth credentials are empty`); + throw new NodeOperationError(this.getNode(), 'HTTP Query Auth credentials are empty'); } parameters[encodeURIComponent(httpQueryAuth.name as string)] = Buffer.from( httpQueryAuth.value as string, diff --git a/packages/nodes-base/nodes/Line/GenericFunctions.ts b/packages/nodes-base/nodes/Line/GenericFunctions.ts index c5a0dd01753e3..ebe60352b02b2 100644 --- a/packages/nodes-base/nodes/Line/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Line/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function lineApiRequest( method, body, qs, - uri: uri || ``, + uri: uri || '', json: true, }; options = Object.assign({}, options, option); diff --git a/packages/nodes-base/nodes/LingvaNex/LingvaNex.node.ts b/packages/nodes-base/nodes/LingvaNex/LingvaNex.node.ts index a3843c19f2e34..4bc0630ab5c49 100644 --- a/packages/nodes-base/nodes/LingvaNex/LingvaNex.node.ts +++ b/packages/nodes-base/nodes/LingvaNex/LingvaNex.node.ts @@ -167,7 +167,7 @@ export class LingvaNex implements INodeType { Object.assign(body, options); - const response = await lingvaNexApiRequest.call(this, 'POST', `/translate`, body); + const response = await lingvaNexApiRequest.call(this, 'POST', '/translate', body); responseData.push(response); } } diff --git a/packages/nodes-base/nodes/Magento/GenericFunctions.ts b/packages/nodes-base/nodes/Magento/GenericFunctions.ts index bb99154854551..a7a53c77604df 100644 --- a/packages/nodes-base/nodes/Magento/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Magento/GenericFunctions.ts @@ -990,7 +990,7 @@ export async function getProductAttributes( this, 'items', 'GET', - `/rest/default/V1/products/attributes`, + '/rest/default/V1/products/attributes', {}, { search_criteria: 0, diff --git a/packages/nodes-base/nodes/Magento/Magento2.node.ts b/packages/nodes-base/nodes/Magento/Magento2.node.ts index d445235aaff0c..610949ba16a91 100644 --- a/packages/nodes-base/nodes/Magento/Magento2.node.ts +++ b/packages/nodes-base/nodes/Magento/Magento2.node.ts @@ -210,7 +210,7 @@ export class Magento2 implements INodeType { const types = (await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/products/types`, + '/rest/default/V1/products/types', )) as IDataObject[]; const returnData: INodePropertyOptions[] = []; for (const type of types) { @@ -227,7 +227,7 @@ export class Magento2 implements INodeType { const { items: categories } = (await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/categories/list`, + '/rest/default/V1/categories/list', {}, { search_criteria: { @@ -260,7 +260,7 @@ export class Magento2 implements INodeType { const { items: attributeSets } = (await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/products/attribute-sets/sets/list`, + '/rest/default/V1/products/attribute-sets/sets/list', {}, { search_criteria: 0, @@ -439,7 +439,7 @@ export class Magento2 implements INodeType { this, 'items', 'GET', - `/rest/default/V1/customers/search`, + '/rest/default/V1/customers/search', {}, qs as unknown as IDataObject, ); @@ -449,7 +449,7 @@ export class Magento2 implements INodeType { responseData = await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/customers/search`, + '/rest/default/V1/customers/search', {}, qs as unknown as IDataObject, ); @@ -617,7 +617,7 @@ export class Magento2 implements INodeType { this, 'items', 'GET', - `/rest/default/V1/orders`, + '/rest/default/V1/orders', {}, qs as unknown as IDataObject, ); @@ -627,7 +627,7 @@ export class Magento2 implements INodeType { responseData = await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/orders`, + '/rest/default/V1/orders', {}, qs as unknown as IDataObject, ); @@ -739,7 +739,7 @@ export class Magento2 implements INodeType { this, 'items', 'GET', - `/rest/default/V1/products`, + '/rest/default/V1/products', {}, qs as unknown as IDataObject, ); @@ -749,7 +749,7 @@ export class Magento2 implements INodeType { responseData = await magentoApiRequest.call( this, 'GET', - `/rest/default/V1/products`, + '/rest/default/V1/products', {}, qs as unknown as IDataObject, ); diff --git a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts index afda2d62cc579..45dc33b457016 100644 --- a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts @@ -29,7 +29,7 @@ export async function mailchimpApiRequest( method, qs, body, - url: ``, + url: '', json: true, }; diff --git a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts index c996d7714ef0b..b323d220c1234 100644 --- a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts +++ b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts @@ -2119,7 +2119,7 @@ export class Mailchimp implements INodeType { if (returnAll) { responseData = await mailchimpApiRequestAllItems.call( this, - `/campaigns`, + '/campaigns', 'GET', 'campaigns', {}, @@ -2127,7 +2127,7 @@ export class Mailchimp implements INodeType { ); } else { qs.count = this.getNodeParameter('limit', i); - responseData = await mailchimpApiRequest.call(this, `/campaigns`, 'GET', {}, qs); + responseData = await mailchimpApiRequest.call(this, '/campaigns', 'GET', {}, qs); responseData = responseData.campaigns; } } diff --git a/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts b/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts index 47fc74ff06534..f6afd62dd1e06 100644 --- a/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts +++ b/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts @@ -136,14 +136,14 @@ export class MailerLite implements INodeType { responseData = await mailerliteApiRequestAllItems.call( this, 'GET', - `/subscribers`, + '/subscribers', {}, qs, ); } else { qs.limit = this.getNodeParameter('limit', i); - responseData = await mailerliteApiRequest.call(this, 'GET', `/subscribers`, {}, qs); + responseData = await mailerliteApiRequest.call(this, 'GET', '/subscribers', {}, qs); } } //https://developers.mailerlite.com/reference#update-subscriber diff --git a/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts b/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts index 259b9cbc4b0a0..850c5fc3e63c7 100644 --- a/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts +++ b/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts @@ -136,7 +136,7 @@ export class Mailjet implements INodeType { if (parsedJson === undefined) { throw new NodeOperationError( this.getNode(), - `Parameter 'Variables (JSON)' has a invalid JSON`, + "Parameter 'Variables (JSON)' has a invalid JSON", { itemIndex: i }, ); } @@ -231,7 +231,7 @@ export class Mailjet implements INodeType { if (parsedJson === undefined) { throw new NodeOperationError( this.getNode(), - `Parameter 'Variables (JSON)' has a invalid JSON`, + "Parameter 'Variables (JSON)' has a invalid JSON", { itemIndex: i }, ); } diff --git a/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts b/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts index 44716f34e096f..76c2206f5f1dd 100644 --- a/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts +++ b/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts @@ -73,7 +73,7 @@ export class MailjetTrigger implements INodeType { webhookMethods = { default: { async checkExists(this: IHookFunctions): Promise { - const endpoint = `/v3/rest/eventcallbackurl`; + const endpoint = '/v3/rest/eventcallbackurl'; const responseData = await mailjetApiRequest.call(this, 'GET', endpoint); const event = this.getNodeParameter('event') as string; diff --git a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts index 8e1d9917f7000..aa0525f0fb4a6 100644 --- a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts @@ -75,7 +75,7 @@ export async function handleMatrixCall( if (roomAlias) { body.room_alias_name = roomAlias; } - return matrixApiRequest.call(this, 'POST', `/createRoom`, body); + return matrixApiRequest.call(this, 'POST', '/createRoom', body); } else if (operation === 'join') { const roomIdOrAlias = this.getNodeParameter('roomIdOrAlias', index) as string; return matrixApiRequest.call(this, 'POST', `/rooms/${roomIdOrAlias}/join`); @@ -214,7 +214,7 @@ export async function handleMatrixCall( const uploadRequestResult = await matrixApiRequest.call( this, 'POST', - `/upload`, + '/upload', body, qs, headers, diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/message/post/execute.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/message/post/execute.ts index 40e12ccf430d9..a6f1c97a98015 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/message/post/execute.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/message/post/execute.ts @@ -10,7 +10,7 @@ export async function post(this: IExecuteFunctions, index: number): Promise { const qs = {} as IDataObject; const requestMethod = 'POST'; - const endpoint = `posts/ephemeral`; + const endpoint = 'posts/ephemeral'; const body = { user_id: this.getNodeParameter('userId', index), diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/user/getAll/execute.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/user/getAll/execute.ts index 35ab386916494..672c976367cdf 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/user/getAll/execute.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/user/getAll/execute.ts @@ -87,7 +87,7 @@ export async function getAll( } else { throw new NodeOperationError( this.getNode(), - `When sort is defined either 'in team' or 'in channel' must be defined`, + "When sort is defined either 'in team' or 'in channel' must be defined", { itemIndex: index }, ); } diff --git a/packages/nodes-base/nodes/Medium/Medium.node.ts b/packages/nodes-base/nodes/Medium/Medium.node.ts index 673a6f9b1c011..0ac8cd826821c 100644 --- a/packages/nodes-base/nodes/Medium/Medium.node.ts +++ b/packages/nodes-base/nodes/Medium/Medium.node.ts @@ -359,7 +359,7 @@ export class Medium implements INodeType { async getPublications(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; //Get the User Id - const user = await mediumApiRequest.call(this, 'GET', `/me`); + const user = await mediumApiRequest.call(this, 'GET', '/me'); const userId = user.data.id; //Get all publications of that user @@ -493,7 +493,7 @@ export class Medium implements INodeType { const returnAll = this.getNodeParameter('returnAll', i); - const user = await mediumApiRequest.call(this, 'GET', `/me`); + const user = await mediumApiRequest.call(this, 'GET', '/me'); const userId = user.data.id; //Get all publications of that user diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.ts index c6e40da26e373..0f7babf1b7fa5 100644 --- a/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.ts @@ -182,7 +182,7 @@ export class MicrosoftDynamicsCrm implements INodeType { qs.$select = 'accountid'; } - responseData = await microsoftApiRequest.call(this, 'POST', `/accounts`, body, qs); + responseData = await microsoftApiRequest.call(this, 'POST', '/accounts', body, qs); } if (operation === 'delete') { @@ -230,13 +230,13 @@ export class MicrosoftDynamicsCrm implements INodeType { this, 'value', 'GET', - `/accounts`, + '/accounts', {}, qs, ); } else { qs.$top = this.getNodeParameter('limit', 0); - responseData = await microsoftApiRequest.call(this, 'GET', `/accounts`, {}, qs); + responseData = await microsoftApiRequest.call(this, 'GET', '/accounts', {}, qs); responseData = responseData.value; } } diff --git a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts index 008aa2c0bbbef..00d70d11a78aa 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts @@ -91,7 +91,7 @@ export class MicrosoftExcel implements INodeType { this, 'value', 'GET', - `/drive/root/search(q='.xlsx')`, + "/drive/root/search(q='.xlsx')", {}, qs, ); @@ -529,7 +529,7 @@ export class MicrosoftExcel implements INodeType { this, 'value', 'GET', - `/drive/root/search(q='.xlsx')`, + "/drive/root/search(q='.xlsx')", {}, qs, ); @@ -538,7 +538,7 @@ export class MicrosoftExcel implements INodeType { responseData = await microsoftApiRequest.call( this, 'GET', - `/drive/root/search(q='.xlsx')`, + "/drive/root/search(q='.xlsx')", {}, qs, ); diff --git a/packages/nodes-base/nodes/Microsoft/GraphSecurity/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/GraphSecurity/GenericFunctions.ts index 71b89e96c9a7a..f8524cec9872c 100644 --- a/packages/nodes-base/nodes/Microsoft/GraphSecurity/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/GraphSecurity/GenericFunctions.ts @@ -71,7 +71,7 @@ export async function msGraphSecurityApiRequest( } export function tolerateDoubleQuotes(filterQueryParameter: string) { - return filterQueryParameter.replace(/"/g, `'`); + return filterQueryParameter.replace(/"/g, "'"); } export function throwOnEmptyUpdate(this: IExecuteFunctions) { diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/MicrosoftOutlook.node.ts b/packages/nodes-base/nodes/Microsoft/Outlook/MicrosoftOutlook.node.ts index 04cf8e260633d..5fe5ebac010b8 100644 --- a/packages/nodes-base/nodes/Microsoft/Outlook/MicrosoftOutlook.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Outlook/MicrosoftOutlook.node.ts @@ -255,7 +255,7 @@ export class MicrosoftOutlook implements INodeType { body.attachments = await binaryToAttachments.call(this, attachments, items, i); } - responseData = await microsoftApiRequest.call(this, 'POST', `/messages`, body, {}); + responseData = await microsoftApiRequest.call(this, 'POST', '/messages', body, {}); returnData.push(responseData); } catch (error) { @@ -539,7 +539,7 @@ export class MicrosoftOutlook implements INodeType { saveToSentItems, }; - responseData = await microsoftApiRequest.call(this, 'POST', `/sendMail`, body, {}); + responseData = await microsoftApiRequest.call(this, 'POST', '/sendMail', body, {}); returnData.push({ success: true }); } catch (error) { if (this.continueOnFail()) { diff --git a/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts b/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts index ec36e674a23bc..c0e9caf91f99f 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts @@ -499,7 +499,7 @@ export class MicrosoftTeams implements INodeType { responseData = await microsoftApiRequest.call( this, 'POST', - `/v1.0/planner/tasks`, + '/v1.0/planner/tasks', body, ); } diff --git a/packages/nodes-base/nodes/Mindee/Mindee.node.ts b/packages/nodes-base/nodes/Mindee/Mindee.node.ts index 8c0617684a996..cf022e97fa4f5 100644 --- a/packages/nodes-base/nodes/Mindee/Mindee.node.ts +++ b/packages/nodes-base/nodes/Mindee/Mindee.node.ts @@ -185,7 +185,7 @@ export class Mindee implements INodeType { responseData = await mindeeApiRequest.call( this, 'POST', - `/expense_receipts/v2/predict`, + '/expense_receipts/v2/predict', {}, {}, { diff --git a/packages/nodes-base/nodes/Misp/Misp.node.ts b/packages/nodes-base/nodes/Misp/Misp.node.ts index 263955b193462..d880be6a910d8 100644 --- a/packages/nodes-base/nodes/Misp/Misp.node.ts +++ b/packages/nodes-base/nodes/Misp/Misp.node.ts @@ -342,7 +342,7 @@ export class Misp implements INodeType { tag: this.getNodeParameter('tagId', i), }; - const endpoint = `/events/addTag`; + const endpoint = '/events/addTag'; responseData = await mispApiRequest.call(this, 'POST', endpoint, body); } else if (operation === 'remove') { // ---------------------------------------- diff --git a/packages/nodes-base/nodes/Mocean/Mocean.node.ts b/packages/nodes-base/nodes/Mocean/Mocean.node.ts index a420c1533f65b..de49384a2d743 100644 --- a/packages/nodes-base/nodes/Mocean/Mocean.node.ts +++ b/packages/nodes-base/nodes/Mocean/Mocean.node.ts @@ -18,7 +18,7 @@ export class Mocean implements INodeType { description: INodeTypeDescription = { displayName: 'Mocean', name: 'mocean', - subtitle: `={{$parameter["operation"] + ": " + $parameter["resource"]}}`, + subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', icon: 'file:mocean.svg', group: ['transform'], version: 1, @@ -196,7 +196,7 @@ export class Mocean implements INodeType { const options = { method: 'GET', qs: query, - uri: `https://rest.moceanapi.com/rest/2/account/balance`, + uri: 'https://rest.moceanapi.com/rest/2/account/balance', json: true, }; try { diff --git a/packages/nodes-base/nodes/MongoDb/MongoDbDescription.ts b/packages/nodes-base/nodes/MongoDb/MongoDbDescription.ts index 130a747a449f6..ba0d9b6f2f320 100644 --- a/packages/nodes-base/nodes/MongoDb/MongoDbDescription.ts +++ b/packages/nodes-base/nodes/MongoDb/MongoDbDescription.ts @@ -101,7 +101,7 @@ export const nodeDescription: INodeTypeDescription = { }, }, default: '', - placeholder: `[{ "$match": { "$gt": "1950-01-01" }, ... }]`, + placeholder: '[{ "$match": { "$gt": "1950-01-01" }, ... }]', hint: 'Learn more about aggregation pipeline here', required: true, description: 'MongoDB aggregation pipeline query in JSON format', @@ -123,7 +123,7 @@ export const nodeDescription: INodeTypeDescription = { }, }, default: '{}', - placeholder: `{ "birth": { "$gt": "1950-01-01" } }`, + placeholder: '{ "birth": { "$gt": "1950-01-01" } }', required: true, description: 'MongoDB Delete query', }, @@ -189,7 +189,7 @@ export const nodeDescription: INodeTypeDescription = { }, }, default: '{}', - placeholder: `{ "birth": { "$gt": "1950-01-01" } }`, + placeholder: '{ "birth": { "$gt": "1950-01-01" } }', required: true, description: 'MongoDB Find query', }, diff --git a/packages/nodes-base/nodes/MonicaCrm/GenericFunctions.ts b/packages/nodes-base/nodes/MonicaCrm/GenericFunctions.ts index 49a41babd506a..135cffb98441d 100644 --- a/packages/nodes-base/nodes/MonicaCrm/GenericFunctions.ts +++ b/packages/nodes-base/nodes/MonicaCrm/GenericFunctions.ts @@ -23,7 +23,7 @@ export async function monicaCrmApiRequest( throw new NodeOperationError(this.getNode(), 'No credentials got returned!'); } - let baseUrl = `https://app.monicahq.com`; + let baseUrl = 'https://app.monicahq.com'; if (credentials.environment === 'selfHosted') { baseUrl = credentials.domain; diff --git a/packages/nodes-base/nodes/MonicaCrm/MonicaCrm.node.ts b/packages/nodes-base/nodes/MonicaCrm/MonicaCrm.node.ts index 0896c87606853..c9f2f9ee2f4bb 100644 --- a/packages/nodes-base/nodes/MonicaCrm/MonicaCrm.node.ts +++ b/packages/nodes-base/nodes/MonicaCrm/MonicaCrm.node.ts @@ -277,7 +277,7 @@ export class MonicaCrm implements INodeType { // https://www.monicahq.com/api/activities#list-all-the-activities-in-your-account - const endpoint = `/activities`; + const endpoint = '/activities'; responseData = await monicaCrmApiRequestAllItems.call(this, 'GET', endpoint); } else if (operation === 'update') { // ---------------------------------------- @@ -363,7 +363,7 @@ export class MonicaCrm implements INodeType { // https://www.monicahq.com/api/calls#list-all-the-calls-in-your-account - const endpoint = `/calls`; + const endpoint = '/calls'; responseData = await monicaCrmApiRequestAllItems.call(this, 'GET', endpoint); } else if (operation === 'update') { // ---------------------------------------- @@ -887,7 +887,7 @@ export class MonicaCrm implements INodeType { // https://www.monicahq.com/api/notes#list-all-the-notes-in-your-account - const endpoint = `/notes`; + const endpoint = '/notes'; responseData = await monicaCrmApiRequestAllItems.call(this, 'GET', endpoint); } else if (operation === 'update') { // ---------------------------------------- @@ -1120,7 +1120,7 @@ export class MonicaCrm implements INodeType { // https://www.monicahq.com/api/tasks#list-all-the-tasks-of-a-specific-contact - const endpoint = `/tasks`; + const endpoint = '/tasks'; responseData = await monicaCrmApiRequestAllItems.call(this, 'GET', endpoint); } else if (operation === 'update') { // ---------------------------------------- diff --git a/packages/nodes-base/nodes/Nasa/Nasa.node.ts b/packages/nodes-base/nodes/Nasa/Nasa.node.ts index 2e6913cc21e08..a43a0e06ff41c 100644 --- a/packages/nodes-base/nodes/Nasa/Nasa.node.ts +++ b/packages/nodes-base/nodes/Nasa/Nasa.node.ts @@ -922,7 +922,7 @@ export class Nasa implements INodeType { propertyName = 'near_earth_objects'; - endpoint = `/neo/rest/v1/neo/browse`; + endpoint = '/neo/rest/v1/neo/browse'; } else { throw new NodeOperationError( this.getNode(), diff --git a/packages/nodes-base/nodes/Netlify/Netlify.node.ts b/packages/nodes-base/nodes/Netlify/Netlify.node.ts index 80abe8beb5d65..dfced1a3a12eb 100644 --- a/packages/nodes-base/nodes/Netlify/Netlify.node.ts +++ b/packages/nodes-base/nodes/Netlify/Netlify.node.ts @@ -171,7 +171,7 @@ export class Netlify implements INodeType { responseData = await netlifyRequestAllItems.call( this, 'GET', - `/sites`, + '/sites', {}, { filter: 'all' }, ); @@ -180,7 +180,7 @@ export class Netlify implements INodeType { responseData = await netlifyApiRequest.call( this, 'GET', - `/sites`, + '/sites', {}, { filter: 'all', per_page: limit }, ); diff --git a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts index 4c9db32e7bb0b..348afb891d74b 100644 --- a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts +++ b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts @@ -1062,7 +1062,7 @@ export class NextCloud implements INodeType { if (!returnAll) { qs.limit = this.getNodeParameter('limit', i); } - endpoint = `ocs/v1.php/cloud/users`; + endpoint = 'ocs/v1.php/cloud/users'; headers['OCS-APIRequest'] = true; headers['Content-Type'] = 'application/x-www-form-urlencoded'; diff --git a/packages/nodes-base/nodes/NocoDB/NocoDB.node.ts b/packages/nodes-base/nodes/NocoDB/NocoDB.node.ts index 0cf86a3f381b5..50d0bbf53adf6 100644 --- a/packages/nodes-base/nodes/NocoDB/NocoDB.node.ts +++ b/packages/nodes-base/nodes/NocoDB/NocoDB.node.ts @@ -202,7 +202,7 @@ export class NocoDB implements INodeType { ); } } else { - throw new NodeOperationError(this.getNode(), `No project selected!`); + throw new NodeOperationError(this.getNode(), 'No project selected!'); } }, }, diff --git a/packages/nodes-base/nodes/Notion/SearchFunctions.ts b/packages/nodes-base/nodes/Notion/SearchFunctions.ts index 1b7cc2064c720..86e0fe3ff9050 100644 --- a/packages/nodes-base/nodes/Notion/SearchFunctions.ts +++ b/packages/nodes-base/nodes/Notion/SearchFunctions.ts @@ -16,7 +16,7 @@ export async function getDatabases( query: filter, filter: { property: 'object', value: 'database' }, }; - const databases = await notionApiRequestAllItems.call(this, 'results', 'POST', `/search`, body); + const databases = await notionApiRequestAllItems.call(this, 'results', 'POST', '/search', body); for (const database of databases) { returnData.push({ name: database.title[0]?.plain_text || database.id, diff --git a/packages/nodes-base/nodes/Notion/v1/NotionV1.node.ts b/packages/nodes-base/nodes/Notion/v1/NotionV1.node.ts index f579c96fa56ce..35678ecdbdfa8 100644 --- a/packages/nodes-base/nodes/Notion/v1/NotionV1.node.ts +++ b/packages/nodes-base/nodes/Notion/v1/NotionV1.node.ts @@ -323,12 +323,12 @@ export class NotionV1 implements INodeType { this, 'results', 'POST', - `/search`, + '/search', body, ); } else { body.page_size = this.getNodeParameter('limit', i); - responseData = await notionApiRequest.call(this, 'POST', `/search`, body); + responseData = await notionApiRequest.call(this, 'POST', '/search', body); responseData = responseData.results; } diff --git a/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts b/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts index 3bbd5ede92cea..0fc5916d83467 100644 --- a/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts +++ b/packages/nodes-base/nodes/Notion/v2/NotionV2.node.ts @@ -342,12 +342,12 @@ export class NotionV2 implements INodeType { this, 'results', 'POST', - `/search`, + '/search', body, ); } else { body.page_size = this.getNodeParameter('limit', i); - responseData = await notionApiRequest.call(this, 'POST', `/search`, body); + responseData = await notionApiRequest.call(this, 'POST', '/search', body); responseData = responseData.results; } if (simple) { diff --git a/packages/nodes-base/nodes/Odoo/GenericFunctions.ts b/packages/nodes-base/nodes/Odoo/GenericFunctions.ts index b409621cf682a..0d649d29dcb5b 100644 --- a/packages/nodes-base/nodes/Odoo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Odoo/GenericFunctions.ts @@ -305,7 +305,7 @@ export async function odooUpdate( if (!Object.keys(fieldsToUpdate).length) { throw new NodeApiError(this.getNode(), { status: 'Error', - message: `Please specify at least one field to update`, + message: 'Please specify at least one field to update', }); } if (!/^\d+$/.test(itemsID) || !parseInt(itemsID, 10)) { diff --git a/packages/nodes-base/nodes/Odoo/Odoo.node.ts b/packages/nodes-base/nodes/Odoo/Odoo.node.ts index f6a0a441326f9..7cb66a4345de5 100644 --- a/packages/nodes-base/nodes/Odoo/Odoo.node.ts +++ b/packages/nodes-base/nodes/Odoo/Odoo.node.ts @@ -273,7 +273,7 @@ export class Odoo implements INodeType { if (result.error || !result.result) { return { status: 'Error', - message: `Credentials are not valid`, + message: 'Credentials are not valid', }; } else if (result.error) { return { diff --git a/packages/nodes-base/nodes/Onfleet/OnfleetTrigger.node.ts b/packages/nodes-base/nodes/Onfleet/OnfleetTrigger.node.ts index 61bb54cdebaba..408182ebc64d4 100644 --- a/packages/nodes-base/nodes/Onfleet/OnfleetTrigger.node.ts +++ b/packages/nodes-base/nodes/Onfleet/OnfleetTrigger.node.ts @@ -91,7 +91,7 @@ export class OnfleetTrigger implements INodeType { newWebhookName = `n8n-webhook:${name}`; } - const path = `/webhooks`; + const path = '/webhooks'; const body = { name: newWebhookName, url: webhookUrl, diff --git a/packages/nodes-base/nodes/OpenThesaurus/OpenThesaurus.node.ts b/packages/nodes-base/nodes/OpenThesaurus/OpenThesaurus.node.ts index de56f64518c07..f8f59dc8c41c1 100644 --- a/packages/nodes-base/nodes/OpenThesaurus/OpenThesaurus.node.ts +++ b/packages/nodes-base/nodes/OpenThesaurus/OpenThesaurus.node.ts @@ -154,7 +154,7 @@ export class OpenThesaurus implements INodeType { responseData = await openThesaurusApiRequest.call( this, 'GET', - `/synonyme/search`, + '/synonyme/search', {}, qs, ); diff --git a/packages/nodes-base/nodes/Paddle/CouponDescription.ts b/packages/nodes-base/nodes/Paddle/CouponDescription.ts index 8b0474adb179c..782b3910e72c1 100644 --- a/packages/nodes-base/nodes/Paddle/CouponDescription.ts +++ b/packages/nodes-base/nodes/Paddle/CouponDescription.ts @@ -46,7 +46,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], jsonParameters: [false], }, }, @@ -74,7 +74,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], couponType: ['product'], jsonParameters: [false], }, @@ -91,7 +91,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], jsonParameters: [false], }, }, @@ -120,7 +120,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], discountType: ['flat'], jsonParameters: [false], }, @@ -139,7 +139,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], discountType: ['percentage'], jsonParameters: [false], }, @@ -260,7 +260,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`create`], + operation: ['create'], discountType: ['flat'], jsonParameters: [false], }, @@ -384,7 +384,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`getAll`], + operation: ['getAll'], }, }, default: '', @@ -432,7 +432,7 @@ export const couponFields: INodeProperties[] = [ displayOptions: { show: { resource: ['coupon'], - operation: [`update`], + operation: ['update'], jsonParameters: [false], }, }, diff --git a/packages/nodes-base/nodes/PayPal/PayPal.node.ts b/packages/nodes-base/nodes/PayPal/PayPal.node.ts index d69eb24807c1b..dfcfeab30812b 100644 --- a/packages/nodes-base/nodes/PayPal/PayPal.node.ts +++ b/packages/nodes-base/nodes/PayPal/PayPal.node.ts @@ -88,7 +88,7 @@ export class PayPal implements INodeType { if (!clientId || !clientSecret || !environment) { return { status: 'Error', - message: `Connection details not valid: missing credentials`, + message: 'Connection details not valid: missing credentials', }; } diff --git a/packages/nodes-base/nodes/Peekalink/Peekalink.node.ts b/packages/nodes-base/nodes/Peekalink/Peekalink.node.ts index 0a4cc1708cbe3..18fcdcf0d178a 100644 --- a/packages/nodes-base/nodes/Peekalink/Peekalink.node.ts +++ b/packages/nodes-base/nodes/Peekalink/Peekalink.node.ts @@ -72,7 +72,7 @@ export class Peekalink implements INodeType { link: url, }; - responseData = await peekalinkApiRequest.call(this, 'POST', `/is-available/`, body); + responseData = await peekalinkApiRequest.call(this, 'POST', '/is-available/', body); } if (operation === 'preview') { const url = this.getNodeParameter('url', i) as string; @@ -80,7 +80,7 @@ export class Peekalink implements INodeType { link: url, }; - responseData = await peekalinkApiRequest.call(this, 'POST', `/`, body); + responseData = await peekalinkApiRequest.call(this, 'POST', '/', body); } if (Array.isArray(responseData)) { returnData.push.apply(returnData, responseData as IDataObject[]); diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index cc614aad1a6a6..a05ef56958e65 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -4120,7 +4120,7 @@ export class Pipedrive implements INodeType { qs.type = (qs.type as string[]).join(','); } - endpoint = `/activities`; + endpoint = '/activities'; } else if (operation === 'update') { // ---------------------------------- // activity:update @@ -4198,7 +4198,7 @@ export class Pipedrive implements INodeType { const filters = this.getNodeParameter('filters', i); addAdditionalFields(qs, filters); - endpoint = `/deals`; + endpoint = '/deals'; } else if (operation === 'update') { // ---------------------------------- // deal:update @@ -4250,7 +4250,7 @@ export class Pipedrive implements INodeType { qs.status = additionalFields.status as string; } - endpoint = `/deals/search`; + endpoint = '/deals/search'; } } else if (resource === 'dealActivity') { if (operation === 'getAll') { @@ -4432,7 +4432,7 @@ export class Pipedrive implements INodeType { // ---------------------------------- requestMethod = 'GET'; - endpoint = `/notes`; + endpoint = '/notes'; returnAll = this.getNodeParameter('returnAll', i); if (!returnAll) { @@ -4640,7 +4640,7 @@ export class Pipedrive implements INodeType { qs.first_char = qs.first_char.substring(0, 1); } - endpoint = `/organizations`; + endpoint = '/organizations'; } else if (operation === 'update') { // ---------------------------------- // organization:update @@ -4682,7 +4682,7 @@ export class Pipedrive implements INodeType { qs.exact_match = additionalFields.exactMatch as boolean; } - endpoint = `/organizations/search`; + endpoint = '/organizations/search'; } } else if (resource === 'person') { if (operation === 'create') { @@ -4736,7 +4736,7 @@ export class Pipedrive implements INodeType { qs.first_char = additionalFields.firstChar as string; } - endpoint = `/persons`; + endpoint = '/persons'; } else if (operation === 'search') { // ---------------------------------- // persons:search @@ -4768,7 +4768,7 @@ export class Pipedrive implements INodeType { qs.include_fields = additionalFields.includeFields as string; } - endpoint = `/persons/search`; + endpoint = '/persons/search'; } else if (operation === 'update') { // ---------------------------------- // person:update @@ -4799,7 +4799,7 @@ export class Pipedrive implements INodeType { qs.limit = this.getNodeParameter('limit', i); } - endpoint = `/products`; + endpoint = '/products'; } } else { throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`, { diff --git a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts index 7ec4509e76b72..411afc4e5d5cc 100644 --- a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts @@ -222,7 +222,7 @@ export class PipedriveTrigger implements INodeType { const eventObject = this.getNodeParameter('object') as string; // Webhook got created before so check if it still exists - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const responseData = await pipedriveApiRequest.call(this, 'GET', endpoint, {}); @@ -250,7 +250,7 @@ export class PipedriveTrigger implements INodeType { const eventAction = this.getNodeParameter('action') as string; const eventObject = this.getNodeParameter('object') as string; - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const body = { event_action: eventAction, diff --git a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts index 346a74bfc778f..ecd8b160504f1 100644 --- a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts +++ b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts @@ -126,7 +126,7 @@ export class PostmarkTrigger implements INodeType { } // Get all webhooks - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const responseData = await postmarkApiRequest.call(this, 'GET', endpoint, {}); @@ -152,7 +152,7 @@ export class PostmarkTrigger implements INodeType { async create(this: IHookFunctions): Promise { const webhookUrl = this.getNodeWebhookUrl('default'); - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const body: any = { Url: webhookUrl, diff --git a/packages/nodes-base/nodes/ProfitWell/ProfitWell.node.ts b/packages/nodes-base/nodes/ProfitWell/ProfitWell.node.ts index 2a74855edd278..dff6f72c6cdb2 100644 --- a/packages/nodes-base/nodes/ProfitWell/ProfitWell.node.ts +++ b/packages/nodes-base/nodes/ProfitWell/ProfitWell.node.ts @@ -94,7 +94,7 @@ export class ProfitWell implements INodeType { try { if (resource === 'company') { if (operation === 'getSetting') { - responseData = await profitWellApiRequest.call(this, 'GET', `/company/settings/`); + responseData = await profitWellApiRequest.call(this, 'GET', '/company/settings/'); } } if (resource === 'metric') { diff --git a/packages/nodes-base/nodes/Pushbullet/Pushbullet.node.ts b/packages/nodes-base/nodes/Pushbullet/Pushbullet.node.ts index 119805629da03..4be313744ed93 100644 --- a/packages/nodes-base/nodes/Pushbullet/Pushbullet.node.ts +++ b/packages/nodes-base/nodes/Pushbullet/Pushbullet.node.ts @@ -430,7 +430,7 @@ export class Pushbullet implements INodeType { file_name, file_type, file_url, - } = await pushbulletApiRequest.call(this, 'POST', `/upload-request`, { + } = await pushbulletApiRequest.call(this, 'POST', '/upload-request', { file_name: binaryData.fileName, file_type: binaryData.mimeType, }); @@ -453,7 +453,7 @@ export class Pushbullet implements INodeType { body.file_url = file_url; } - responseData = await pushbulletApiRequest.call(this, 'POST', `/pushes`, body); + responseData = await pushbulletApiRequest.call(this, 'POST', '/pushes', body); } if (operation === 'getAll') { diff --git a/packages/nodes-base/nodes/Pushover/Pushover.node.ts b/packages/nodes-base/nodes/Pushover/Pushover.node.ts index 479c110210cff..5ddfec52b604a 100644 --- a/packages/nodes-base/nodes/Pushover/Pushover.node.ts +++ b/packages/nodes-base/nodes/Pushover/Pushover.node.ts @@ -371,7 +371,7 @@ export class Pushover implements INodeType { } } - responseData = await pushoverApiRequest.call(this, 'POST', `/messages.json`, body); + responseData = await pushoverApiRequest.call(this, 'POST', '/messages.json', body); } } } catch (error) { diff --git a/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts b/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts index 843804231ade0..7761ce32d3ad2 100644 --- a/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts +++ b/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts @@ -138,7 +138,7 @@ export class Raindrop implements INodeType { body.tags = (additionalFields.tags as string).split(',').map((tag) => tag.trim()); } - const endpoint = `/raindrop`; + const endpoint = '/raindrop'; responseData = await raindropApiRequest.call(this, 'POST', endpoint, {}, body); responseData = responseData.item; } else if (operation === 'delete') { @@ -243,7 +243,7 @@ export class Raindrop implements INodeType { delete additionalFields.parentId; } - responseData = await raindropApiRequest.call(this, 'POST', `/collection`, {}, body); + responseData = await raindropApiRequest.call(this, 'POST', '/collection', {}, body); responseData = responseData.item; } else if (operation === 'delete') { // ---------------------------------- @@ -390,7 +390,7 @@ export class Raindrop implements INodeType { // tag: delete // ---------------------------------- - let endpoint = `/tags`; + let endpoint = '/tags'; const body: IDataObject = { tags: (this.getNodeParameter('tags', i) as string).split(','), @@ -408,7 +408,7 @@ export class Raindrop implements INodeType { // tag: getAll // ---------------------------------- - let endpoint = `/tags`; + let endpoint = '/tags'; const returnAll = this.getNodeParameter('returnAll', i); diff --git a/packages/nodes-base/nodes/Reddit/Reddit.node.ts b/packages/nodes-base/nodes/Reddit/Reddit.node.ts index f6b149c28b5a5..ef282016b9ff1 100644 --- a/packages/nodes-base/nodes/Reddit/Reddit.node.ts +++ b/packages/nodes-base/nodes/Reddit/Reddit.node.ts @@ -308,7 +308,7 @@ export class Reddit implements INodeType { let username; if (details === 'saved') { - ({ name: username } = await redditApiRequest.call(this, 'GET', `api/v1/me`, {})); + ({ name: username } = await redditApiRequest.call(this, 'GET', 'api/v1/me', {})); } responseData = diff --git a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts index 323bf92ddbfa8..0ec777247f33a 100644 --- a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts +++ b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts @@ -891,7 +891,7 @@ export class Salesforce implements INodeType { const { fields } = await salesforceApiRequest.call( this, 'GET', - `/sobjects/account/describe`, + '/sobjects/account/describe', ); for (const field of fields) { const fieldName = field.label; @@ -912,7 +912,7 @@ export class Salesforce implements INodeType { const { fields } = await salesforceApiRequest.call( this, 'GET', - `/sobjects/attachment/describe`, + '/sobjects/attachment/describe', ); for (const field of fields) { const fieldName = field.label; @@ -930,7 +930,7 @@ export class Salesforce implements INodeType { async getCaseFields(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; // TODO: find a way to filter this object to get just the lead sources instead of the whole object - const { fields } = await salesforceApiRequest.call(this, 'GET', `/sobjects/case/describe`); + const { fields } = await salesforceApiRequest.call(this, 'GET', '/sobjects/case/describe'); for (const field of fields) { const fieldName = field.label; const fieldId = field.name; @@ -947,7 +947,7 @@ export class Salesforce implements INodeType { async getLeadFields(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; // TODO: find a way to filter this object to get just the lead sources instead of the whole object - const { fields } = await salesforceApiRequest.call(this, 'GET', `/sobjects/lead/describe`); + const { fields } = await salesforceApiRequest.call(this, 'GET', '/sobjects/lead/describe'); for (const field of fields) { const fieldName = field.label; const fieldId = field.name; @@ -967,7 +967,7 @@ export class Salesforce implements INodeType { const { fields } = await salesforceApiRequest.call( this, 'GET', - `/sobjects/opportunity/describe`, + '/sobjects/opportunity/describe', ); for (const field of fields) { const fieldName = field.label; @@ -985,7 +985,7 @@ export class Salesforce implements INodeType { async getTaskFields(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; // TODO: find a way to filter this object to get just the lead sources instead of the whole object - const { fields } = await salesforceApiRequest.call(this, 'GET', `/sobjects/task/describe`); + const { fields } = await salesforceApiRequest.call(this, 'GET', '/sobjects/task/describe'); for (const field of fields) { const fieldName = field.label; const fieldId = field.name; @@ -1002,7 +1002,7 @@ export class Salesforce implements INodeType { async getUserFields(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; // TODO: find a way to filter this object to get just the lead sources instead of the whole object - const { fields } = await salesforceApiRequest.call(this, 'GET', `/sobjects/user/describe`); + const { fields } = await salesforceApiRequest.call(this, 'GET', '/sobjects/user/describe'); for (const field of fields) { const fieldName = field.label; const fieldId = field.name; @@ -1022,7 +1022,7 @@ export class Salesforce implements INodeType { const { fields } = await salesforceApiRequest.call( this, 'GET', - `/sobjects/contact/describe`, + '/sobjects/contact/describe', ); for (const field of fields) { const fieldName = field.label; diff --git a/packages/nodes-base/nodes/SeaTable/GenericFunctions.ts b/packages/nodes-base/nodes/SeaTable/GenericFunctions.ts index 88e02b73ad915..536e28771a3c9 100644 --- a/packages/nodes-base/nodes/SeaTable/GenericFunctions.ts +++ b/packages/nodes-base/nodes/SeaTable/GenericFunctions.ts @@ -112,7 +112,7 @@ export async function getTableColumns( this, ctx, 'GET', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata', ); for (const table of tables) { if (table.name === tableName) { @@ -131,7 +131,7 @@ export async function getTableViews( this, ctx, 'GET', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/views`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/views', {}, { table_name: tableName }, ); diff --git a/packages/nodes-base/nodes/SeaTable/SeaTable.node.ts b/packages/nodes-base/nodes/SeaTable/SeaTable.node.ts index 25b7a154712ac..c00284131632e 100644 --- a/packages/nodes-base/nodes/SeaTable/SeaTable.node.ts +++ b/packages/nodes-base/nodes/SeaTable/SeaTable.node.ts @@ -77,7 +77,7 @@ export class SeaTable implements INodeType { this, {}, 'GET', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata', ); for (const table of tables) { returnData.push({ @@ -95,7 +95,7 @@ export class SeaTable implements INodeType { this, {}, 'GET', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata', ); for (const table of tables) { returnData.push({ @@ -187,7 +187,7 @@ export class SeaTable implements INodeType { this, ctx, 'POST', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/', body, ); @@ -286,7 +286,7 @@ export class SeaTable implements INodeType { for (let i = 0; i < items.length; i++) { try { - const endpoint = `/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/`; + const endpoint = '/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/'; qs.table_name = tableName; const filters = this.getNodeParameter('filters', i); const options = this.getNodeParameter('options', i); @@ -351,7 +351,7 @@ export class SeaTable implements INodeType { this, ctx, 'DELETE', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/', requestBody, qs, )) as IDataObject; @@ -419,7 +419,7 @@ export class SeaTable implements INodeType { this, ctx, 'PUT', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/rows/', body, ); diff --git a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts index 56c145574346d..03d45d5c778fc 100644 --- a/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts +++ b/packages/nodes-base/nodes/SeaTable/SeaTableTrigger.node.ts @@ -87,7 +87,7 @@ export class SeaTableTrigger implements INodeType { this, {}, 'GET', - `/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata`, + '/dtable-server/api/v1/dtables/{{dtable_uuid}}/metadata', ); for (const table of tables) { returnData.push({ @@ -118,7 +118,7 @@ export class SeaTableTrigger implements INodeType { const filterField = event === 'rowCreated' ? '_ctime' : '_mtime'; - const endpoint = `/dtable-db/api/v1/query/{{dtable_uuid}}/`; + const endpoint = '/dtable-db/api/v1/query/{{dtable_uuid}}/'; if (this.getMode() === 'manual') { rows = (await seaTableApiRequest.call(this, ctx, 'POST', endpoint, { diff --git a/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts b/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts index af6a5a9e93aee..cb97bdf1f5175 100644 --- a/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts +++ b/packages/nodes-base/nodes/SecurityScorecard/SecurityScorecard.node.ts @@ -315,7 +315,7 @@ export class SecurityScorecard implements INodeType { const additionalFields = this.getNodeParameter('additionalFields', i); Object.assign(body, additionalFields); - responseData = await scorecardApiRequest.call(this, 'POST', `invitations`, body); + responseData = await scorecardApiRequest.call(this, 'POST', 'invitations', body); returnData.push(responseData as IDataObject); } } diff --git a/packages/nodes-base/nodes/SendGrid/SendGrid.node.ts b/packages/nodes-base/nodes/SendGrid/SendGrid.node.ts index 40c81638d320e..3b15f105a27e3 100644 --- a/packages/nodes-base/nodes/SendGrid/SendGrid.node.ts +++ b/packages/nodes-base/nodes/SendGrid/SendGrid.node.ts @@ -101,7 +101,7 @@ export class SendGrid implements INodeType { const returnData: INodePropertyOptions[] = []; const lists = await sendGridApiRequestAllItems.call( this, - `/marketing/lists`, + '/marketing/lists', 'GET', 'result', {}, @@ -323,7 +323,7 @@ export class SendGrid implements INodeType { qs.ids = (this.getNodeParameter('ids', i) as string).replace(/\s/g, ''); responseData = await sendGridApiRequest.call( this, - `/marketing/contacts`, + '/marketing/contacts', 'DELETE', {}, qs, @@ -355,7 +355,7 @@ export class SendGrid implements INodeType { const returnAll = this.getNodeParameter('returnAll', i); responseData = await sendGridApiRequestAllItems.call( this, - `/marketing/lists`, + '/marketing/lists', 'GET', 'result', {}, diff --git a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts index 525cb62a48056..77fe0b872eae7 100644 --- a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts +++ b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts @@ -194,7 +194,7 @@ export class SentryIo implements INodeType { const organizations = await sentryApiRequestAllItems.call( this, 'GET', - `/api/0/organizations/`, + '/api/0/organizations/', {}, ); @@ -220,7 +220,7 @@ export class SentryIo implements INodeType { // Get all projects so can be displayed easily async getProjects(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const projects = await sentryApiRequestAllItems.call(this, 'GET', `/api/0/projects/`, {}); + const projects = await sentryApiRequestAllItems.call(this, 'GET', '/api/0/projects/', {}); const organizationSlug = this.getNodeParameter('organizationSlug') as string; @@ -408,7 +408,7 @@ export class SentryIo implements INodeType { if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); const additionalFields = this.getNodeParameter('additionalFields', i); - const endpoint = `/api/0/organizations/`; + const endpoint = '/api/0/organizations/'; if (additionalFields.member) { qs.member = additionalFields.member as boolean; @@ -437,7 +437,7 @@ export class SentryIo implements INodeType { const name = this.getNodeParameter('name', i) as string; const agreeTerms = this.getNodeParameter('agreeTerms', i) as boolean; const additionalFields = this.getNodeParameter('additionalFields', i); - const endpoint = `/api/0/organizations/`; + const endpoint = '/api/0/organizations/'; qs.name = name; qs.agreeTerms = agreeTerms; @@ -481,7 +481,7 @@ export class SentryIo implements INodeType { } if (operation === 'getAll') { const returnAll = this.getNodeParameter('returnAll', i); - const endpoint = `/api/0/projects/`; + const endpoint = '/api/0/projects/'; if (!returnAll) { const limit = this.getNodeParameter('limit', i); diff --git a/packages/nodes-base/nodes/ServiceNow/ServiceNow.node.ts b/packages/nodes-base/nodes/ServiceNow/ServiceNow.node.ts index 40d9f15ac0c92..213f894fe40e5 100644 --- a/packages/nodes-base/nodes/ServiceNow/ServiceNow.node.ts +++ b/packages/nodes-base/nodes/ServiceNow/ServiceNow.node.ts @@ -182,7 +182,7 @@ export class ServiceNow implements INodeType { const response = await serviceNowApiRequest.call( this, 'GET', - `/now/doc/table/schema`, + '/now/doc/table/schema', {}, {}, ); @@ -214,7 +214,7 @@ export class ServiceNow implements INodeType { const response = await serviceNowApiRequest.call( this, 'GET', - `/now/table/sys_dictionary`, + '/now/table/sys_dictionary', {}, qs, ); @@ -236,7 +236,7 @@ export class ServiceNow implements INodeType { const response = await serviceNowApiRequest.call( this, 'GET', - `/now/table/cmdb_ci_service`, + '/now/table/cmdb_ci_service', {}, qs, ); @@ -779,7 +779,7 @@ export class ServiceNow implements INodeType { const response = await serviceNowApiRequest.call( this, 'POST', - `/now/table/incident`, + '/now/table/incident', body, ); responseData = response.result; @@ -821,7 +821,7 @@ export class ServiceNow implements INodeType { const response = await serviceNowApiRequest.call( this, 'GET', - `/now/table/incident`, + '/now/table/incident', {}, qs, ); @@ -830,7 +830,7 @@ export class ServiceNow implements INodeType { responseData = await serviceNowRequestAllItems.call( this, 'GET', - `/now/table/incident`, + '/now/table/incident', {}, qs, ); diff --git a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts index 217eb9b6c9d2c..3126e10ea3cf5 100644 --- a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts +++ b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts @@ -333,7 +333,7 @@ export class ShopifyTrigger implements INodeType { const topic = this.getNodeParameter('topic') as string; const webhookData = this.getWorkflowStaticData('node'); const webhookUrl = this.getNodeWebhookUrl('default'); - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const { webhooks } = await shopifyApiRequest.call(this, 'GET', endpoint, {}, { topic }); for (const webhook of webhooks) { @@ -348,7 +348,7 @@ export class ShopifyTrigger implements INodeType { const webhookUrl = this.getNodeWebhookUrl('default'); const topic = this.getNodeParameter('topic') as string; const webhookData = this.getWorkflowStaticData('node'); - const endpoint = `/webhooks.json`; + const endpoint = '/webhooks.json'; const body = { webhook: { topic, diff --git a/packages/nodes-base/nodes/Slack/GenericFunctions.ts b/packages/nodes-base/nodes/Slack/GenericFunctions.ts index b0f9a03e1dacd..546bc8562a941 100644 --- a/packages/nodes-base/nodes/Slack/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Slack/GenericFunctions.ts @@ -66,7 +66,8 @@ export async function slackApiRequest( 0, )}'`, { - description: `Hint: Upgrate to the Slack plan that includes the funcionality you want to use.`, + description: + 'Hint: Upgrate to the Slack plan that includes the funcionality you want to use.', }, ); } diff --git a/packages/nodes-base/nodes/Spotify/Spotify.node.ts b/packages/nodes-base/nodes/Spotify/Spotify.node.ts index 1c38499e73b91..e238899c491d1 100644 --- a/packages/nodes-base/nodes/Spotify/Spotify.node.ts +++ b/packages/nodes-base/nodes/Spotify/Spotify.node.ts @@ -201,13 +201,13 @@ export class Spotify implements INodeType { action: 'Get new album releases', }, { - name: `Get Tracks`, + name: 'Get Tracks', value: 'getTracks', description: "Get an album's tracks by URI or ID", action: "Get an album's tracks by URI or ID", }, { - name: `Search`, + name: 'Search', value: 'search', description: 'Search albums by keyword', action: 'Search albums by keyword', @@ -270,25 +270,25 @@ export class Spotify implements INodeType { action: 'Get an artist', }, { - name: `Get Albums`, + name: 'Get Albums', value: 'getAlbums', description: "Get an artist's albums by URI or ID", action: "Get an artist's albums by URI or ID", }, { - name: `Get Related Artists`, + name: 'Get Related Artists', value: 'getRelatedArtists', description: "Get an artist's related artists by URI or ID", action: "Get an artist's related artists by URI or ID", }, { - name: `Get Top Tracks`, + name: 'Get Top Tracks', value: 'getTopTracks', description: "Get an artist's top tracks by URI or ID", action: "Get an artist's top tracks by URI or ID", }, { - name: `Search`, + name: 'Search', value: 'search', description: 'Search artists by keyword', action: 'Search artists by keyword', @@ -810,7 +810,7 @@ export class Spotify implements INodeType { if (operation === 'pause') { requestMethod = 'PUT'; - endpoint = `/me/player/pause`; + endpoint = '/me/player/pause'; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -818,7 +818,7 @@ export class Spotify implements INodeType { } else if (operation === 'recentlyPlayed') { requestMethod = 'GET'; - endpoint = `/me/player/recently-played`; + endpoint = '/me/player/recently-played'; returnAll = this.getNodeParameter('returnAll', i); @@ -838,13 +838,13 @@ export class Spotify implements INodeType { } else if (operation === 'currentlyPlaying') { requestMethod = 'GET'; - endpoint = `/me/player/currently-playing`; + endpoint = '/me/player/currently-playing'; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); } else if (operation === 'nextSong') { requestMethod = 'POST'; - endpoint = `/me/player/next`; + endpoint = '/me/player/next'; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -852,7 +852,7 @@ export class Spotify implements INodeType { } else if (operation === 'previousSong') { requestMethod = 'POST'; - endpoint = `/me/player/previous`; + endpoint = '/me/player/previous'; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -860,7 +860,7 @@ export class Spotify implements INodeType { } else if (operation === 'startMusic') { requestMethod = 'PUT'; - endpoint = `/me/player/play`; + endpoint = '/me/player/play'; const id = this.getNodeParameter('id', i) as string; @@ -872,7 +872,7 @@ export class Spotify implements INodeType { } else if (operation === 'addSongToQueue') { requestMethod = 'POST'; - endpoint = `/me/player/queue`; + endpoint = '/me/player/queue'; const id = this.getNodeParameter('id', i) as string; @@ -886,7 +886,7 @@ export class Spotify implements INodeType { } else if (operation === 'resume') { requestMethod = 'PUT'; - endpoint = `/me/player/play`; + endpoint = '/me/player/play'; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -894,7 +894,7 @@ export class Spotify implements INodeType { } else if (operation === 'volume') { requestMethod = 'PUT'; - endpoint = `/me/player/volume`; + endpoint = '/me/player/volume'; const volumePercent = this.getNodeParameter('volumePercent', i) as number; @@ -1269,7 +1269,7 @@ export class Spotify implements INodeType { if (operation === 'getFollowingArtists') { requestMethod = 'GET'; - endpoint = `/me/following`; + endpoint = '/me/following'; returnAll = this.getNodeParameter('returnAll', i); diff --git a/packages/nodes-base/nodes/StickyNote/StickyNote.node.ts b/packages/nodes-base/nodes/StickyNote/StickyNote.node.ts index 7107a7d2a1081..7fd8c190623cd 100644 --- a/packages/nodes-base/nodes/StickyNote/StickyNote.node.ts +++ b/packages/nodes-base/nodes/StickyNote/StickyNote.node.ts @@ -23,7 +23,8 @@ export class StickyNote implements INodeType { name: 'content', type: 'string', required: true, - default: `## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)`, + default: + "## I'm a note \n**Double click** to edit me. [Guide](https://docs.n8n.io/workflows/sticky-notes/)", }, { displayName: 'Height', diff --git a/packages/nodes-base/nodes/Storyblok/Storyblok.node.ts b/packages/nodes-base/nodes/Storyblok/Storyblok.node.ts index d442f0aa51eb8..d124964e2c8d7 100644 --- a/packages/nodes-base/nodes/Storyblok/Storyblok.node.ts +++ b/packages/nodes-base/nodes/Storyblok/Storyblok.node.ts @@ -189,7 +189,7 @@ export class Storyblok implements INodeType { responseData = await storyblokApiRequest.call( this, 'GET', - `/v1/cdn/stories`, + '/v1/cdn/stories', {}, qs, ); diff --git a/packages/nodes-base/nodes/Strapi/Strapi.node.ts b/packages/nodes-base/nodes/Strapi/Strapi.node.ts index 8cea92df3544b..fa71eb60f2ea9 100644 --- a/packages/nodes-base/nodes/Strapi/Strapi.node.ts +++ b/packages/nodes-base/nodes/Strapi/Strapi.node.ts @@ -73,7 +73,7 @@ export class Strapi implements INodeType { options = { headers: { - 'content-type': `application/json`, + 'content-type': 'application/json', }, method: 'POST', body: { diff --git a/packages/nodes-base/nodes/Strava/Strava.node.ts b/packages/nodes-base/nodes/Strava/Strava.node.ts index 40dfe42ade718..5d9504aab9182 100644 --- a/packages/nodes-base/nodes/Strava/Strava.node.ts +++ b/packages/nodes-base/nodes/Strava/Strava.node.ts @@ -141,14 +141,14 @@ export class Strava implements INodeType { responseData = await stravaApiRequestAllItems.call( this, 'GET', - `/activities`, + '/activities', {}, qs, ); } else { qs.per_page = this.getNodeParameter('limit', i); - responseData = await stravaApiRequest.call(this, 'GET', `/activities`, {}, qs); + responseData = await stravaApiRequest.call(this, 'GET', '/activities', {}, qs); } } //https://developers.strava.com/docs/reference/#api-Activities-updateActivityById diff --git a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts index f7d7887e7048e..5c40e7d57a6ba 100644 --- a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts +++ b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts @@ -162,7 +162,7 @@ export class StravaTrigger implements INodeType { const webhooks = await stravaApiRequest.call( this, 'GET', - `/push_subscriptions`, + '/push_subscriptions', {}, ); @@ -182,7 +182,7 @@ export class StravaTrigger implements INodeType { responseData = await stravaApiRequest.call( this, 'POST', - `/push_subscriptions`, + '/push_subscriptions', requestBody, ); } else { diff --git a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts index ede704902ab8b..d5efc8a342352 100644 --- a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts +++ b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts @@ -151,7 +151,7 @@ export class TaigaTrigger implements INodeType { const webhookData = this.getWorkflowStaticData('node'); - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const webhooks = await taigaApiRequest.call(this, 'GET', endpoint); diff --git a/packages/nodes-base/nodes/Tapfiliate/Tapfiliate.node.ts b/packages/nodes-base/nodes/Tapfiliate/Tapfiliate.node.ts index 262e9b088ca33..2e0d3141f0114 100644 --- a/packages/nodes-base/nodes/Tapfiliate/Tapfiliate.node.ts +++ b/packages/nodes-base/nodes/Tapfiliate/Tapfiliate.node.ts @@ -161,13 +161,13 @@ export class Tapfiliate implements INodeType { responseData = await tapfiliateApiRequestAllItems.call( this, 'GET', - `/affiliates/`, + '/affiliates/', {}, qs, ); } else { const limit = this.getNodeParameter('limit', i); - responseData = await tapfiliateApiRequest.call(this, 'GET', `/affiliates/`, {}, qs); + responseData = await tapfiliateApiRequest.call(this, 'GET', '/affiliates/', {}, qs); responseData = responseData.splice(0, limit); } } diff --git a/packages/nodes-base/nodes/TheHive/TheHive.node.ts b/packages/nodes-base/nodes/TheHive/TheHive.node.ts index 5da6597137f52..ae9519bfd40f3 100644 --- a/packages/nodes-base/nodes/TheHive/TheHive.node.ts +++ b/packages/nodes-base/nodes/TheHive/TheHive.node.ts @@ -508,7 +508,7 @@ export class TheHive implements INodeType { }; qs.name = 'log-actions'; do { - response = await theHiveApiRequest.call(this, 'POST', `/v1/query`, body, qs); + response = await theHiveApiRequest.call(this, 'POST', '/v1/query', body, qs); } while (response.status === 'Waiting' || response.status === 'InProgress'); responseData = response; @@ -877,7 +877,7 @@ export class TheHive implements INodeType { }; qs.name = 'log-actions'; do { - response = await theHiveApiRequest.call(this, 'POST', `/v1/query`, body, qs); + response = await theHiveApiRequest.call(this, 'POST', '/v1/query', body, qs); } while (response.status === 'Waiting' || response.status === 'InProgress'); responseData = response; @@ -1260,7 +1260,7 @@ export class TheHive implements INodeType { }; qs.name = 'log-actions'; do { - response = await theHiveApiRequest.call(this, 'POST', `/v1/query`, body, qs); + response = await theHiveApiRequest.call(this, 'POST', '/v1/query', body, qs); } while (response.status === 'Waiting' || response.status === 'InProgress'); responseData = response; @@ -1535,7 +1535,7 @@ export class TheHive implements INodeType { }; qs.name = 'task-actions'; do { - response = await theHiveApiRequest.call(this, 'POST', `/v1/query`, body, qs); + response = await theHiveApiRequest.call(this, 'POST', '/v1/query', body, qs); } while (response.status === 'Waiting' || response.status === 'InProgress'); responseData = response; @@ -1848,7 +1848,7 @@ export class TheHive implements INodeType { }; qs.name = 'log-actions'; do { - response = await theHiveApiRequest.call(this, 'POST', `/v1/query`, body, qs); + response = await theHiveApiRequest.call(this, 'POST', '/v1/query', body, qs); } while (response.status === 'Waiting' || response.status === 'InProgress'); responseData = response; diff --git a/packages/nodes-base/nodes/Todoist/GenericFunctions.ts b/packages/nodes-base/nodes/Todoist/GenericFunctions.ts index 821b9d793d657..75e89512748b8 100644 --- a/packages/nodes-base/nodes/Todoist/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Todoist/GenericFunctions.ts @@ -54,7 +54,7 @@ export async function todoistSyncRequest( headers: {}, method: 'POST', qs, - uri: `https://api.todoist.com/sync/v9/sync`, + uri: 'https://api.todoist.com/sync/v9/sync', json: true, }; diff --git a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts index cec5eca791c05..c04e1d2c951fa 100644 --- a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts +++ b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts @@ -108,7 +108,7 @@ export class UnleashedSoftware implements INodeType { } else { const limit = this.getNodeParameter('limit', i); qs.pageSize = limit; - responseData = await unleashedApiRequest.call(this, 'GET', `/SalesOrders`, {}, qs, 1); + responseData = await unleashedApiRequest.call(this, 'GET', '/SalesOrders', {}, qs, 1); responseData = responseData.Items; } convertNETDates(responseData); @@ -152,7 +152,7 @@ export class UnleashedSoftware implements INodeType { } else { const limit = this.getNodeParameter('limit', i); qs.pageSize = limit; - responseData = await unleashedApiRequest.call(this, 'GET', `/StockOnHand`, {}, qs, 1); + responseData = await unleashedApiRequest.call(this, 'GET', '/StockOnHand', {}, qs, 1); responseData = responseData.Items; } diff --git a/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.ts b/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.ts index 1a1390c673529..9e549f1aa9c3f 100644 --- a/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.ts +++ b/packages/nodes-base/nodes/Venafi/Datacenter/VenafiTlsProtectDatacenter.node.ts @@ -87,7 +87,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/vedsdk/Certificates/Request`, + '/vedsdk/Certificates/Request', body, qs, ); @@ -127,7 +127,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/vedsdk/Certificates/Retrieve`, + '/vedsdk/Certificates/Retrieve', body, ); @@ -170,7 +170,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { this, 'Certificates', 'GET', - `/vedsdk/Certificates`, + '/vedsdk/Certificates', {}, qs, ); @@ -179,7 +179,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { responseData = await venafiApiRequest.call( this, 'GET', - `/vedsdk/Certificates`, + '/vedsdk/Certificates', {}, qs, ); @@ -202,7 +202,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/vedsdk/Certificates/Renew`, + '/vedsdk/Certificates/Renew', {}, qs, ); @@ -224,7 +224,7 @@ export class VenafiTlsProtectDatacenter implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/vedsdk/Certificates/CheckPolicy`, + '/vedsdk/Certificates/CheckPolicy', body, qs, ); diff --git a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts index 155c23517dc6d..3881eb5f76cc5 100644 --- a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts +++ b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts @@ -244,7 +244,7 @@ export class VenafiTlsProtectCloud implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/outagedetection/v1/certificaterequests`, + '/outagedetection/v1/certificaterequests', body, qs, ); @@ -274,7 +274,7 @@ export class VenafiTlsProtectCloud implements INodeType { this, 'certificateRequests', 'GET', - `/outagedetection/v1/certificaterequests`, + '/outagedetection/v1/certificaterequests', {}, qs, ); @@ -283,7 +283,7 @@ export class VenafiTlsProtectCloud implements INodeType { responseData = await venafiApiRequest.call( this, 'GET', - `/outagedetection/v1/certificaterequests`, + '/outagedetection/v1/certificaterequests', {}, qs, ); @@ -301,7 +301,7 @@ export class VenafiTlsProtectCloud implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/outagedetection/v1/certificates/deletion`, + '/outagedetection/v1/certificates/deletion', { certificateIds: [certificateId] }, ); @@ -417,7 +417,7 @@ export class VenafiTlsProtectCloud implements INodeType { this, 'certificates', 'GET', - `/outagedetection/v1/certificates`, + '/outagedetection/v1/certificates', {}, qs, ); @@ -426,7 +426,7 @@ export class VenafiTlsProtectCloud implements INodeType { responseData = await venafiApiRequest.call( this, 'GET', - `/outagedetection/v1/certificates`, + '/outagedetection/v1/certificates', {}, qs, ); @@ -464,7 +464,7 @@ export class VenafiTlsProtectCloud implements INodeType { responseData = await venafiApiRequest.call( this, 'POST', - `/outagedetection/v1/certificaterequests`, + '/outagedetection/v1/certificaterequests', body, qs, ); diff --git a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.ts b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.ts index 40e0b77967f5b..e546f17d09847 100644 --- a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.ts +++ b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloudTrigger.node.ts @@ -139,7 +139,7 @@ export class VenafiTlsProtectCloudTrigger implements INodeType { }, }; - const responseData = await venafiApiRequest.call(this, 'POST', `/v1/connectors`, body); + const responseData = await venafiApiRequest.call(this, 'POST', '/v1/connectors', body); if (responseData.id === undefined) { // Required data is missing so was not successful diff --git a/packages/nodes-base/nodes/Wekan/Wekan.node.ts b/packages/nodes-base/nodes/Wekan/Wekan.node.ts index c8ef0a90eeebf..4d65d24ece9bc 100644 --- a/packages/nodes-base/nodes/Wekan/Wekan.node.ts +++ b/packages/nodes-base/nodes/Wekan/Wekan.node.ts @@ -119,7 +119,7 @@ export class Wekan implements INodeType { }, async getBoards(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; - const user = await apiRequest.call(this, 'GET', `user`, {}, {}); + const user = await apiRequest.call(this, 'GET', 'user', {}, {}); const boards = await apiRequest.call(this, 'GET', `users/${user._id}/boards`, {}, {}); for (const board of boards) { returnData.push({ diff --git a/packages/nodes-base/nodes/Wise/WiseTrigger.node.ts b/packages/nodes-base/nodes/Wise/WiseTrigger.node.ts index 0c643f64f43c5..2a489cba7441e 100644 --- a/packages/nodes-base/nodes/Wise/WiseTrigger.node.ts +++ b/packages/nodes-base/nodes/Wise/WiseTrigger.node.ts @@ -131,7 +131,7 @@ export class WiseTrigger implements INodeType { const event = this.getNodeParameter('event') as string; const trigger = getTriggerName(event); const body: IDataObject = { - name: `n8n Webhook`, + name: 'n8n Webhook', trigger_on: trigger, delivery: { version: '2.0.0', diff --git a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts index 086b107f6c55e..56209c5a18e42 100644 --- a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts +++ b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts @@ -102,7 +102,7 @@ export class WooCommerceTrigger implements INodeType { const webhookUrl = this.getNodeWebhookUrl('default'); const webhookData = this.getWorkflowStaticData('node'); const currentEvent = this.getNodeParameter('event') as string; - const endpoint = `/webhooks`; + const endpoint = '/webhooks'; const webhooks = await woocommerceApiRequest.call( this, diff --git a/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts b/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts index ed48f55e60e71..acf216dfc55c6 100644 --- a/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts +++ b/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts @@ -416,7 +416,7 @@ export class Wordpress implements INodeType { const reassign = this.getNodeParameter('reassign', i) as string; qs.reassign = reassign; qs.force = true; - responseData = await wordpressApiRequest.call(this, 'DELETE', `/users/me`, {}, qs); + responseData = await wordpressApiRequest.call(this, 'DELETE', '/users/me', {}, qs); } } const exectutionData = this.helpers.constructExecutionMetaData( diff --git a/packages/nodes-base/nodes/Workable/WorkableTrigger.node.ts b/packages/nodes-base/nodes/Workable/WorkableTrigger.node.ts index 84c1e18463c43..463b8c2e3032d 100644 --- a/packages/nodes-base/nodes/Workable/WorkableTrigger.node.ts +++ b/packages/nodes-base/nodes/Workable/WorkableTrigger.node.ts @@ -129,7 +129,7 @@ export class WorkableTrigger implements INodeType { const webhookData = this.getWorkflowStaticData('node'); // Check all the webhooks which exist already if it is identical to the // one that is supposed to get created. - const { subscriptions } = await workableApiRequest.call(this, 'GET', `/subscriptions`); + const { subscriptions } = await workableApiRequest.call(this, 'GET', '/subscriptions'); for (const subscription of subscriptions) { if (subscription.target === webhookUrl) { webhookData.webhookId = subscription.id as string; diff --git a/packages/nodes-base/nodes/Xero/Xero.node.ts b/packages/nodes-base/nodes/Xero/Xero.node.ts index 0b46037c11f37..1d712e3fd8ce4 100644 --- a/packages/nodes-base/nodes/Xero/Xero.node.ts +++ b/packages/nodes-base/nodes/Xero/Xero.node.ts @@ -449,7 +449,7 @@ export class Xero implements INodeType { responseData = await xeroApiRequest.call( this, 'GET', - `/Invoices`, + '/Invoices', { organizationId }, qs, ); @@ -602,7 +602,7 @@ export class Xero implements INodeType { responseData = await xeroApiRequest.call( this, 'GET', - `/Contacts`, + '/Contacts', { organizationId }, qs, ); diff --git a/packages/nodes-base/nodes/Zendesk/TriggerPlaceholders.ts b/packages/nodes-base/nodes/Zendesk/TriggerPlaceholders.ts index 402e910961323..cf32c5d54c2a7 100644 --- a/packages/nodes-base/nodes/Zendesk/TriggerPlaceholders.ts +++ b/packages/nodes-base/nodes/Zendesk/TriggerPlaceholders.ts @@ -137,92 +137,88 @@ export const triggerPlaceholders = [ description: "Requester's organization", }, { - name: `Ticket's Organization External ID`, + name: "Ticket's Organization External ID", value: 'ticket.organization.external_id', - description: "Ticket's organization external ID", }, { - name: `Organization details`, + name: 'Organization Details', value: 'ticket.organization.details', description: "The details about the organization of the ticket's requester", }, { - name: `Organization Note`, + name: 'Organization Note', value: 'ticket.organization.notes', description: "The notes about the organization of the ticket's requester", }, { - name: `Ticket's CCs`, + name: "Ticket's CCs", value: 'ticket.ccs', - description: "Ticket's CCs", }, { - name: `Ticket's CCs names`, + name: "Ticket's CCs Names", value: 'ticket.cc_names', - description: "Ticket's CCs names", }, { - name: `Ticket's tags`, + name: "Ticket's Tags", value: 'ticket.tags', - description: "Ticket's tags", }, { - name: `Current Holiday Name`, + name: 'Current Holiday Name', value: 'ticket.current_holiday_name', description: "Displays the name of the current holiday on the ticket's schedule", }, { - name: `Current User Name `, + name: 'Current User Name', value: 'current_user.name', description: 'Your full name', }, { - name: `Current User First Name `, + name: 'Current User First Name', value: 'current_user.first_name', description: 'Your first name', }, { - name: `Current User Email `, + name: 'Current User Email', value: 'current_user.email', description: 'Your primary email', }, { - name: `Current User Organization Name `, + name: 'Current User Organization Name', value: 'current_user.organization.name', description: 'Your default organization', }, { - name: `Current User Organization Details `, + name: 'Current User Organization Details', value: 'current_user.organization.details', description: "Your default organization's details", }, { - name: `Current User Organization Notes `, + name: 'Current User Organization Notes', value: 'current_user.organization.notes', description: "Your default organization's note", }, { - name: `Current User Language `, + name: 'Current User Language', value: 'current_user.language', description: 'Your chosen language', }, { - name: `Current User External ID `, + name: 'Current User External ID', value: 'current_user.external_id', description: 'Your external ID', }, { - name: `Current User Notes `, + name: 'Current User Notes', value: 'current_user.notes', description: 'Your notes, stored in your profile', }, { - name: `Satisfation Current Rating `, + name: 'Satisfation Current Rating', value: 'satisfaction.current_rating', description: 'The text of the current satisfaction rating', }, { - name: `Satisfation Current Comment `, + name: 'Satisfation Current Comment', value: 'satisfaction.current_comment', description: 'The text of the current satisfaction rating comment', }, diff --git a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts index 878b2c01ab44e..356c6af61b8ae 100644 --- a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts +++ b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts @@ -247,7 +247,7 @@ export class Zendesk implements INodeType { this, 'organizations', 'GET', - `/organizations`, + '/organizations', {}, {}, ); @@ -438,7 +438,7 @@ export class Zendesk implements INodeType { if (options.sortOrder) { qs.sort_order = options.sortOrder; } - const endpoint = ticketType === 'regular' ? `/search` : `/suspended_tickets`; + const endpoint = ticketType === 'regular' ? '/search' : '/suspended_tickets'; const property = ticketType === 'regular' ? 'results' : 'suspended_tickets'; if (returnAll) { responseData = await zendeskApiRequestAllItems.call( @@ -595,14 +595,14 @@ export class Zendesk implements INodeType { this, 'users', 'GET', - `/users`, + '/users', {}, qs, ); } else { const limit = this.getNodeParameter('limit', i); qs.per_page = limit; - responseData = await zendeskApiRequest.call(this, 'GET', `/users`, {}, qs); + responseData = await zendeskApiRequest.call(this, 'GET', '/users', {}, qs); responseData = responseData.users; } } @@ -629,14 +629,14 @@ export class Zendesk implements INodeType { this, 'users', 'GET', - `/users/search`, + '/users/search', {}, qs, ); } else { const limit = this.getNodeParameter('limit', i); qs.per_page = limit; - responseData = await zendeskApiRequest.call(this, 'GET', `/users/search`, {}, qs); + responseData = await zendeskApiRequest.call(this, 'GET', '/users/search', {}, qs); responseData = responseData.users; } } @@ -705,7 +705,7 @@ export class Zendesk implements INodeType { } //https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#count-organizations if (operation === 'count') { - responseData = await zendeskApiRequest.call(this, 'GET', `/organizations/count`, {}); + responseData = await zendeskApiRequest.call(this, 'GET', '/organizations/count', {}); responseData = responseData.count; } //https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#show-organization @@ -728,14 +728,14 @@ export class Zendesk implements INodeType { this, 'organizations', 'GET', - `/organizations`, + '/organizations', {}, qs, ); } else { const limit = this.getNodeParameter('limit', i); qs.per_page = limit; - responseData = await zendeskApiRequest.call(this, 'GET', `/organizations`, {}, qs); + responseData = await zendeskApiRequest.call(this, 'GET', '/organizations', {}, qs); responseData = responseData.organizations; } } diff --git a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts index 21afe1de6d438..789207d5131e1 100644 --- a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts +++ b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts @@ -275,7 +275,7 @@ export class ZendeskTrigger implements INodeType { return false; } - endpoint = `/triggers/active`; + endpoint = '/triggers/active'; const triggers = await zendeskApiRequestAllItems.call(this, 'triggers', 'GET', endpoint); for (const trigger of triggers) { diff --git a/packages/nodes-base/nodes/Zoom/Zoom.node.ts b/packages/nodes-base/nodes/Zoom/Zoom.node.ts index 37be69327a769..f117866299052 100644 --- a/packages/nodes-base/nodes/Zoom/Zoom.node.ts +++ b/packages/nodes-base/nodes/Zoom/Zoom.node.ts @@ -321,7 +321,7 @@ export class Zoom implements INodeType { body.agenda = additionalFields.agenda as string; } - responseData = await zoomApiRequest.call(this, 'POST', `/users/me/meetings`, body, qs); + responseData = await zoomApiRequest.call(this, 'POST', '/users/me/meetings', body, qs); } if (operation === 'update') { //https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate diff --git a/packages/nodes-base/nodes/Zulip/Zulip.node.ts b/packages/nodes-base/nodes/Zulip/Zulip.node.ts index 00e6fd97c29ce..bc328afc73ec7 100644 --- a/packages/nodes-base/nodes/Zulip/Zulip.node.ts +++ b/packages/nodes-base/nodes/Zulip/Zulip.node.ts @@ -253,7 +253,7 @@ export class Zulip implements INodeType { body.include_owner_subscribed = additionalFields.includeOwnersubscribed as boolean; } - responseData = await zulipApiRequest.call(this, 'GET', `/streams`, body); + responseData = await zulipApiRequest.call(this, 'GET', '/streams', body); responseData = responseData.streams; } @@ -264,7 +264,7 @@ export class Zulip implements INodeType { body.include_subscribers = additionalFields.includeSubscribers as boolean; } - responseData = await zulipApiRequest.call(this, 'GET', `/users/me/subscriptions`, body); + responseData = await zulipApiRequest.call(this, 'GET', '/users/me/subscriptions', body); responseData = responseData.subscriptions; } @@ -326,7 +326,7 @@ export class Zulip implements INodeType { responseData = await zulipApiRequest.call( this, 'POST', - `/users/me/subscriptions`, + '/users/me/subscriptions', body, ); } @@ -421,7 +421,7 @@ export class Zulip implements INodeType { additionalFields.includeCustomProfileFields as boolean; } - responseData = await zulipApiRequest.call(this, 'GET', `/users`, body); + responseData = await zulipApiRequest.call(this, 'GET', '/users', body); responseData = responseData.members; } @@ -431,7 +431,7 @@ export class Zulip implements INodeType { body.full_name = this.getNodeParameter('fullName', i) as string; body.short_name = this.getNodeParameter('shortName', i) as string; - responseData = await zulipApiRequest.call(this, 'POST', `/users`, body); + responseData = await zulipApiRequest.call(this, 'POST', '/users', body); } if (operation === 'update') { diff --git a/packages/nodes-base/nodes/utils/allCurrencies.ts b/packages/nodes-base/nodes/utils/allCurrencies.ts index e8271b9acb2f7..2dd1cc3ad9898 100644 --- a/packages/nodes-base/nodes/utils/allCurrencies.ts +++ b/packages/nodes-base/nodes/utils/allCurrencies.ts @@ -144,7 +144,7 @@ export const allCurrencies = [ { name: 'Tajikistani Somoni', value: 'tjs' }, { name: 'Turkmenistani Manat', value: 'tmt' }, { name: 'Tunisian Dinar', value: 'tnd' }, - { name: `Tongan Pa'anga`, value: 'top' }, + { name: "Tongan Pa'anga", value: 'top' }, { name: 'Turkish Lira', value: 'try' }, { name: 'Trinidad and Tobago Dollar', value: 'ttd' }, { name: 'New Taiwan Dollar', value: 'twd' }, diff --git a/packages/workflow/src/NodeHelpers.ts b/packages/workflow/src/NodeHelpers.ts index 70518ac895f43..4d52368e99e3f 100644 --- a/packages/workflow/src/NodeHelpers.ts +++ b/packages/workflow/src/NodeHelpers.ts @@ -404,7 +404,7 @@ export function getContext( key = 'flow'; } else if (type === 'node') { if (node === undefined) { - throw new Error(`The request data of context type "node" the node parameter has to be set!`); + throw new Error('The request data of context type "node" the node parameter has to be set!'); } key = `node:${node.name}`; } else { @@ -1071,7 +1071,7 @@ export function nodeIssuesToString(issues: INodeIssues, node?: INode): string[] const nodeIssues = []; if (issues.execution !== undefined) { - nodeIssues.push(`Execution Error.`); + nodeIssues.push('Execution Error.'); } const objectProperties = ['parameters', 'credentials']; @@ -1092,7 +1092,7 @@ export function nodeIssuesToString(issues: INodeIssues, node?: INode): string[] if (node !== undefined) { nodeIssues.push(`Node Type "${node.type}" is not known.`); } else { - nodeIssues.push(`Node Type is not known.`); + nodeIssues.push('Node Type is not known.'); } } diff --git a/packages/workflow/src/Workflow.ts b/packages/workflow/src/Workflow.ts index fbb4278f024ab..66b495675e9e1 100644 --- a/packages/workflow/src/Workflow.ts +++ b/packages/workflow/src/Workflow.ts @@ -318,7 +318,7 @@ export class Workflow { } else if (type === 'node') { if (node === undefined) { throw new Error( - `The request data of context type "node" the node parameter has to be set!`, + 'The request data of context type "node" the node parameter has to be set!', ); } key = `node:${node.name}`; diff --git a/packages/workflow/src/WorkflowDataProxy.ts b/packages/workflow/src/WorkflowDataProxy.ts index fd28a3ef0de45..b294d72cedef5 100644 --- a/packages/workflow/src/WorkflowDataProxy.ts +++ b/packages/workflow/src/WorkflowDataProxy.ts @@ -132,7 +132,7 @@ export class WorkflowDataProxy { if (!that.runExecutionData?.executionData) { throw new ExpressionError( - `The workflow hasn't been executed yet, so you can't reference any context data`, + "The workflow hasn't been executed yet, so you can't reference any context data", { runIndex: that.runIndex, itemIndex: that.itemIndex, @@ -283,7 +283,7 @@ export class WorkflowDataProxy { if (that.runExecutionData === null) { throw new ExpressionError( - `The workflow hasn't been executed yet, so you can't reference any output data`, + "The workflow hasn't been executed yet, so you can't reference any output data", { runIndex: that.runIndex, itemIndex: that.itemIndex, @@ -319,7 +319,7 @@ export class WorkflowDataProxy { if (taskData.main === null || !taskData.main.length || taskData.main[0] === null) { // throw new Error(`No data found for item-index: "${itemIndex}"`); - throw new ExpressionError(`No data found from "main" input.`, { + throw new ExpressionError('No data found from "main" input.', { runIndex: that.runIndex, itemIndex: that.itemIndex, }); @@ -546,7 +546,7 @@ export class WorkflowDataProxy { if (value === undefined && name === 'id') { throw new ExpressionError('save workflow to view', { - description: `Please save the workflow first to use $workflow`, + description: 'Please save the workflow first to use $workflow', runIndex: that.runIndex, itemIndex: that.itemIndex, failExecution: true, @@ -723,7 +723,7 @@ export class WorkflowDataProxy { message: 'Can’t get data', }, nodeCause: nodeBeforeLast, - description: `Apologies, this is an internal error. See details for more information`, + description: 'Apologies, this is an internal error. See details for more information', causeDetailed: 'Referencing a non-existent output on a node, problem with source data', type: 'internal', }); @@ -731,7 +731,7 @@ export class WorkflowDataProxy { if (pairedItem.item >= taskData.data!.main[previousNodeOutput]!.length) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { message: 'Can’t get data', @@ -756,7 +756,7 @@ export class WorkflowDataProxy { if (itemPreviousNode.pairedItem === undefined) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { message: 'Can’t get data', @@ -834,10 +834,10 @@ export class WorkflowDataProxy { }); } throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { - message: `Can’t get data`, + message: 'Can’t get data', }, nodeCause: nodeBeforeLast, description: `In node ‘${sourceData.previousNode}’, output item ${ @@ -861,13 +861,13 @@ export class WorkflowDataProxy { if (sourceData === null) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { - message: `Can’t get data`, + message: 'Can’t get data', }, nodeCause: nodeBeforeLast, - description: `Could not resolve, proably no pairedItem exists`, + description: 'Could not resolve, proably no pairedItem exists', type: 'no pairing info', moreInfoLink: true, }); @@ -881,12 +881,12 @@ export class WorkflowDataProxy { const previousNodeOutput = sourceData.previousNodeOutput || 0; if (previousNodeOutput >= taskData.data!.main.length) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { - message: `Can’t get data`, + message: 'Can’t get data', }, - description: `Item points to a node output which does not exist`, + description: 'Item points to a node output which does not exist', causeDetailed: `The sourceData points to a node output ‘${previousNodeOutput}‘ which does not exist on node ‘${sourceData.previousNode}‘ (output node did probably supply a wrong one)`, type: 'invalid pairing info', }); @@ -894,10 +894,10 @@ export class WorkflowDataProxy { if (pairedItem.item >= taskData.data!.main[previousNodeOutput]!.length) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { - message: `Can’t get data`, + message: 'Can’t get data', }, nodeCause: nodeBeforeLast, description: `In node ‘${nodeBeforeLast!}’, output item ${ @@ -952,11 +952,11 @@ export class WorkflowDataProxy { if (pairedItem === undefined) { throw createExpressionError('Can’t get data for expression', { - messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’ field`, + messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { description: `To fetch the data from other nodes that this code needs, more information is needed from the node ‘${that.activeNodeName}‘`, - message: `Can’t get data`, + message: 'Can’t get data', }, description: `To fetch the data from other nodes that this expression needs, more information is needed from the node ‘${that.activeNodeName}‘`, causeDetailed: `Missing pairedItem data (node ‘${that.activeNodeName}‘ probably didn’t supply it)`, @@ -969,10 +969,11 @@ export class WorkflowDataProxy { messageTemplate: 'Can’t get data for expression under ‘%%PARAMETER%%’ field', functionality: 'pairedItem', functionOverrides: { - message: `Can’t get data`, + message: 'Can’t get data', }, - description: `Apologies, this is an internal error. See details for more information`, - causeDetailed: `Missing sourceData (probably an internal error)`, + description: + 'Apologies, this is an internal error. See details for more information', + causeDetailed: 'Missing sourceData (probably an internal error)', itemIndex, }); } @@ -1099,8 +1100,9 @@ export class WorkflowDataProxy { functionOverrides: { message: 'Can’t get data', }, - description: `Apologies, this is an internal error. See details for more information`, - causeDetailed: `Missing sourceData (probably an internal error)`, + description: + 'Apologies, this is an internal error. See details for more information', + causeDetailed: 'Missing sourceData (probably an internal error)', runIndex: that.runIndex, }); }