2023-01-27 03:22:44 -08:00
|
|
|
import type {
|
2023-03-09 09:13:15 -08:00
|
|
|
IExecuteFunctions,
|
2023-01-20 07:00:47 -08:00
|
|
|
INodeExecutionData,
|
|
|
|
INodeType,
|
|
|
|
INodeTypeBaseDescription,
|
|
|
|
INodeTypeDescription,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
import { listSearch, loadOptions } from './methods';
|
|
|
|
import { router } from './actions/router';
|
|
|
|
import { versionDescription } from './actions/versionDescription';
|
|
|
|
|
|
|
|
export class GoogleAnalyticsV2 implements INodeType {
|
|
|
|
description: INodeTypeDescription;
|
|
|
|
|
|
|
|
constructor(baseDescription: INodeTypeBaseDescription) {
|
|
|
|
this.description = {
|
|
|
|
...baseDescription,
|
|
|
|
...versionDescription,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
methods = { loadOptions, listSearch };
|
|
|
|
|
|
|
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
2024-01-17 07:08:50 -08:00
|
|
|
return await router.call(this);
|
2023-01-20 07:00:47 -08:00
|
|
|
}
|
|
|
|
}
|