refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 18:46:14 +01:00
committed by GitHub
parent 8c635993bd
commit bafac73eb5
1120 changed files with 2677 additions and 2827 deletions

View File

@@ -1,3 +1,5 @@
import jwt from 'jsonwebtoken';
import moment from 'moment-timezone';
import type {
IExecuteFunctions,
ILoadOptionsFunctions,
@@ -10,10 +12,6 @@ import type {
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import moment from 'moment-timezone';
import jwt from 'jsonwebtoken';
function getOptions(
this: IExecuteFunctions | ILoadOptionsFunctions | IPollFunctions,
method: IHttpRequestMethods,
@@ -118,9 +116,9 @@ export async function salesforceApiRequest(
} else {
// https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_server_flow.htm&type=5
const credentialsType = 'salesforceOAuth2Api';
const credentials = (await this.getCredentials(credentialsType)) as {
const credentials = await this.getCredentials<{
oauthTokenData: { instance_url: string };
};
}>(credentialsType);
const options = getOptions.call(
this,
method,