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,4 @@
|
||||
import { tz } from 'moment-timezone';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IDataObject,
|
||||
@@ -9,21 +10,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
import { tz } from 'moment-timezone';
|
||||
import {
|
||||
adjustAddress,
|
||||
adjustAgentRoles,
|
||||
formatFilters,
|
||||
freshserviceApiRequest,
|
||||
handleListing,
|
||||
sanitizeAssignmentScopeGroup,
|
||||
toArray,
|
||||
toOptions,
|
||||
toUserOptions,
|
||||
validateAssignmentScopeGroup,
|
||||
validateUpdateFields,
|
||||
} from './GenericFunctions';
|
||||
|
||||
import {
|
||||
agentFields,
|
||||
agentGroupFields,
|
||||
@@ -56,7 +42,19 @@ import {
|
||||
ticketFields,
|
||||
ticketOperations,
|
||||
} from './descriptions';
|
||||
|
||||
import {
|
||||
adjustAddress,
|
||||
adjustAgentRoles,
|
||||
formatFilters,
|
||||
freshserviceApiRequest,
|
||||
handleListing,
|
||||
sanitizeAssignmentScopeGroup,
|
||||
toArray,
|
||||
toOptions,
|
||||
toUserOptions,
|
||||
validateAssignmentScopeGroup,
|
||||
validateUpdateFields,
|
||||
} from './GenericFunctions';
|
||||
import type { AddressFixedCollection, LoadedResource, LoadedUser, RolesParameter } from './types';
|
||||
|
||||
export class Freshservice implements INodeType {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { omit } from 'lodash';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IHookFunctions,
|
||||
@@ -9,7 +10,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { omit } from 'lodash';
|
||||
import type {
|
||||
AddressFixedCollection,
|
||||
FreshserviceCredentials,
|
||||
@@ -24,9 +24,7 @@ export async function freshserviceApiRequest(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const { apiKey, domain } = (await this.getCredentials(
|
||||
'freshserviceApi',
|
||||
)) as FreshserviceCredentials;
|
||||
const { apiKey, domain } = await this.getCredentials<FreshserviceCredentials>('freshserviceApi');
|
||||
const encodedApiKey = Buffer.from(`${apiKey}:X`).toString('base64');
|
||||
|
||||
const options: IRequestOptions = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import { LANGUAGES } from '../constants';
|
||||
|
||||
export const requesterOperations: INodeProperties[] = [
|
||||
|
||||
Reference in New Issue
Block a user