mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -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,
|
||||
|
||||
@@ -12,54 +12,33 @@ import type {
|
||||
import { NodeApiError, NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { accountFields, accountOperations } from './AccountDescription';
|
||||
|
||||
import type { IAccount } from './AccountInterface';
|
||||
|
||||
import { attachmentFields, attachmentOperations } from './AttachmentDescription';
|
||||
|
||||
import type { IAttachment } from './AttachmentInterface';
|
||||
|
||||
import type { ICampaignMember } from './CampaignMemberInterface';
|
||||
|
||||
import { caseFields, caseOperations } from './CaseDescription';
|
||||
|
||||
import type { ICase, ICaseComment } from './CaseInterface';
|
||||
|
||||
import { contactFields, contactOperations } from './ContactDescription';
|
||||
|
||||
import type { IContact } from './ContactInterface';
|
||||
|
||||
import { customObjectFields, customObjectOperations } from './CustomObjectDescription';
|
||||
|
||||
import { documentFields, documentOperations } from './DocumentDescription';
|
||||
import { flowFields, flowOperations } from './FlowDescription';
|
||||
|
||||
import {
|
||||
getQuery,
|
||||
salesforceApiRequest,
|
||||
salesforceApiRequestAllItems,
|
||||
sortOptions,
|
||||
} from './GenericFunctions';
|
||||
|
||||
import { leadFields, leadOperations } from './LeadDescription';
|
||||
|
||||
import type { ILead } from './LeadInterface';
|
||||
|
||||
import type { INote } from './NoteInterface';
|
||||
|
||||
import { opportunityFields, opportunityOperations } from './OpportunityDescription';
|
||||
|
||||
import type { IOpportunity } from './OpportunityInterface';
|
||||
|
||||
import { searchFields, searchOperations } from './SearchDescription';
|
||||
|
||||
import { taskFields, taskOperations } from './TaskDescription';
|
||||
|
||||
import type { ITask } from './TaskInterface';
|
||||
|
||||
import { userFields, userOperations } from './UserDescription';
|
||||
|
||||
import { documentFields, documentOperations } from './DocumentDescription';
|
||||
|
||||
export class Salesforce implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Salesforce',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { DateTime } from 'luxon';
|
||||
import { NodeApiError, NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
IPollFunctions,
|
||||
@@ -11,7 +11,6 @@ import type {
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { DateTime } from 'luxon';
|
||||
import {
|
||||
getQuery,
|
||||
salesforceApiRequest,
|
||||
|
||||
Reference in New Issue
Block a user