/** * Google Analytics Node - Version 1 * Discriminator: resource=userActivity, operation=search */ interface Credentials { googleAnalyticsOAuth2: CredentialReference; } /** Return user activity data */ export type GoogleAnalyticsV1UserActivitySearchParams = { resource: 'userActivity'; operation: 'search'; /** * The View ID of Google Analytics. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ viewId?: string | Expression; /** * ID of a user */ userId?: string | Expression | PlaceholderValue; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 100 */ limit?: number | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Type of activites requested * @default [] */ activityTypes?: Array<'ECOMMERCE' | 'EVENT' | 'GOAL' | 'PAGEVIEW' | 'SCREENVIEW'>; }; }; export type GoogleAnalyticsV1UserActivitySearchNode = { type: 'n8n-nodes-base.googleAnalytics'; version: 1; credentials?: Credentials; config: NodeConfig; };