mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
b03e358a12
* 👕 Enable `consistent-type-imports` for nodes-base
* 👕 Apply to nodes-base
* ⏪ Undo unrelated changes
* 🚚 Move to `.eslintrc.js` in nodes-base
* ⏪ Revert "Enable `consistent-type-imports` for nodes-base"
This reverts commit 529ad72b05
.
* 👕 Fix severity
47 lines
1 KiB
TypeScript
47 lines
1 KiB
TypeScript
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
|
import type { INodeTypeDescription } from 'n8n-workflow';
|
|
import * as userActivity from './userActivity/UserActivity.resource';
|
|
import * as report from './report/Report.resource';
|
|
|
|
export const versionDescription: INodeTypeDescription = {
|
|
displayName: 'Google Analytics',
|
|
name: 'googleAnalytics',
|
|
icon: 'file:analytics.svg',
|
|
group: ['transform'],
|
|
version: 2,
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
description: 'Use the Google Analytics API',
|
|
defaults: {
|
|
name: 'Google Analytics',
|
|
},
|
|
inputs: ['main'],
|
|
outputs: ['main'],
|
|
credentials: [
|
|
{
|
|
name: 'googleAnalyticsOAuth2',
|
|
required: true,
|
|
},
|
|
],
|
|
properties: [
|
|
{
|
|
displayName: 'Resource',
|
|
name: 'resource',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
options: [
|
|
{
|
|
name: 'Report',
|
|
value: 'report',
|
|
},
|
|
{
|
|
name: 'User Activity',
|
|
value: 'userActivity',
|
|
},
|
|
],
|
|
default: 'report',
|
|
},
|
|
...report.description,
|
|
...userActivity.description,
|
|
],
|
|
};
|