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 flow from 'lodash/flow';
|
||||
import sortBy from 'lodash/sortBy';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IHookFunctions,
|
||||
@@ -9,9 +11,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import flow from 'lodash/flow';
|
||||
import sortBy from 'lodash/sortBy';
|
||||
|
||||
import type {
|
||||
AllFields,
|
||||
CamelCaseResource,
|
||||
@@ -47,9 +46,7 @@ export async function zohoApiRequest(
|
||||
qs: IDataObject = {},
|
||||
uri?: string,
|
||||
) {
|
||||
const { oauthTokenData } = (await this.getCredentials(
|
||||
'zohoOAuth2Api',
|
||||
)) as ZohoOAuth2ApiCredentials;
|
||||
const { oauthTokenData } = await this.getCredentials<ZohoOAuth2ApiCredentials>('zohoOAuth2Api');
|
||||
|
||||
const options: IRequestOptions = {
|
||||
body: {
|
||||
|
||||
@@ -8,41 +8,6 @@ import {
|
||||
NodeConnectionType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
addGetAllFilterOptions,
|
||||
adjustAccountPayload,
|
||||
adjustContactPayload,
|
||||
adjustDealPayload,
|
||||
adjustInvoicePayload,
|
||||
adjustInvoicePayloadOnUpdate,
|
||||
adjustLeadPayload,
|
||||
adjustProductDetails,
|
||||
adjustProductPayload,
|
||||
adjustPurchaseOrderPayload,
|
||||
adjustQuotePayload,
|
||||
adjustSalesOrderPayload,
|
||||
adjustVendorPayload,
|
||||
getFields,
|
||||
getPicklistOptions,
|
||||
handleListing,
|
||||
throwOnEmptyUpdate,
|
||||
throwOnMissingProducts,
|
||||
toLoadOptions,
|
||||
zohoApiRequest,
|
||||
zohoApiRequestAllItems,
|
||||
} from './GenericFunctions';
|
||||
|
||||
import type {
|
||||
CamelCaseResource,
|
||||
GetAllFilterOptions,
|
||||
LoadedAccounts,
|
||||
LoadedContacts,
|
||||
LoadedDeals,
|
||||
LoadedProducts,
|
||||
LoadedVendors,
|
||||
ProductDetails,
|
||||
} from './types';
|
||||
|
||||
import {
|
||||
accountFields,
|
||||
accountOperations,
|
||||
@@ -65,6 +30,39 @@ import {
|
||||
vendorFields,
|
||||
vendorOperations,
|
||||
} from './descriptions';
|
||||
import {
|
||||
addGetAllFilterOptions,
|
||||
adjustAccountPayload,
|
||||
adjustContactPayload,
|
||||
adjustDealPayload,
|
||||
adjustInvoicePayload,
|
||||
adjustInvoicePayloadOnUpdate,
|
||||
adjustLeadPayload,
|
||||
adjustProductDetails,
|
||||
adjustProductPayload,
|
||||
adjustPurchaseOrderPayload,
|
||||
adjustQuotePayload,
|
||||
adjustSalesOrderPayload,
|
||||
adjustVendorPayload,
|
||||
getFields,
|
||||
getPicklistOptions,
|
||||
handleListing,
|
||||
throwOnEmptyUpdate,
|
||||
throwOnMissingProducts,
|
||||
toLoadOptions,
|
||||
zohoApiRequest,
|
||||
zohoApiRequestAllItems,
|
||||
} from './GenericFunctions';
|
||||
import type {
|
||||
CamelCaseResource,
|
||||
GetAllFilterOptions,
|
||||
LoadedAccounts,
|
||||
LoadedContacts,
|
||||
LoadedDeals,
|
||||
LoadedProducts,
|
||||
LoadedVendors,
|
||||
ProductDetails,
|
||||
} from './types';
|
||||
|
||||
export class ZohoCrm implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import { capitalizeInitial } from '../GenericFunctions';
|
||||
import type { CamelCaseResource } from '../types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user