/** * Google Analytics Node - Version 2 * Discriminator: resource=userActivity, operation=search */ interface Credentials { googleAnalyticsOAuth2: CredentialReference; } /** Return user activity data */ export type GoogleAnalyticsV2UserActivitySearchParams = { resource: 'userActivity'; operation: 'search'; /** * The view from Google Analytics. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @hint If there's nothing here, try changing the 'Property type' field above */ 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 GoogleAnalyticsV2UserActivitySearchNode = { type: 'n8n-nodes-base.googleAnalytics'; version: 2; credentials?: Credentials; config: NodeConfig; };