mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +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
@@ -5,9 +5,10 @@ import type {
|
||||
INodeTypeBaseDescription,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { listSearch, loadOptions } from './methods';
|
||||
|
||||
import { router } from './actions/router';
|
||||
import { versionDescription } from './actions/versionDescription';
|
||||
import { listSearch, loadOptions } from './methods';
|
||||
|
||||
export class GoogleAnalyticsV2 implements INodeType {
|
||||
description: INodeTypeDescription;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import * as getga4 from './get.ga4.operation';
|
||||
import * as getuniversal from './get.universal.operation';
|
||||
|
||||
|
||||
@@ -4,6 +4,13 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
dimensionDropdown,
|
||||
dimensionFilterField,
|
||||
metricDropdown,
|
||||
metricsFilterField,
|
||||
} from './FiltersDescription';
|
||||
import {
|
||||
checkDuplicates,
|
||||
defaultEndDate,
|
||||
@@ -13,12 +20,6 @@ import {
|
||||
simplifyGA4,
|
||||
} from '../../helpers/utils';
|
||||
import { googleApiRequest, googleApiRequestAllItems } from '../../transport';
|
||||
import {
|
||||
dimensionDropdown,
|
||||
dimensionFilterField,
|
||||
metricDropdown,
|
||||
metricsFilterField,
|
||||
} from './FiltersDescription';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import type { IData, IDimension, IMetric } from '../../helpers/Interfaces';
|
||||
import {
|
||||
checkDuplicates,
|
||||
|
||||
@@ -2,8 +2,8 @@ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import type { GoogleAnalytics, ReportBasedOnProperty } from './node.type';
|
||||
import * as userActivity from './userActivity/UserActivity.resource';
|
||||
import * as report from './report/Report.resource';
|
||||
import * as userActivity from './userActivity/UserActivity.resource';
|
||||
|
||||
export async function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const items = this.getInputData();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import * as search from './search.operation';
|
||||
|
||||
export { search };
|
||||
|
||||
@@ -4,6 +4,7 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { googleApiRequest, googleApiRequestAllItems } from '../../transport';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import { NodeConnectionType, type INodeTypeDescription } from 'n8n-workflow';
|
||||
import * as userActivity from './userActivity/UserActivity.resource';
|
||||
|
||||
import * as report from './report/Report.resource';
|
||||
import * as userActivity from './userActivity/UserActivity.resource';
|
||||
|
||||
export const versionDescription: INodeTypeDescription = {
|
||||
displayName: 'Google Analytics',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { DateTime } from 'luxon';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
ILoadOptionsFunctions,
|
||||
@@ -6,7 +7,6 @@ import type {
|
||||
INodePropertyOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
// tslint:disable-next-line:no-any
|
||||
export function simplify(responseData: any | [any]) {
|
||||
|
||||
@@ -3,6 +3,7 @@ import type {
|
||||
INodeListSearchItems,
|
||||
INodeListSearchResult,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { sortLoadOptions } from '../helpers/utils';
|
||||
import { googleApiRequest } from '../transport';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
||||
|
||||
import { sortLoadOptions } from '../helpers/utils';
|
||||
import { googleApiRequest } from '../transport';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user