/** * Google Analytics client types. */ import type { BaseIntegrationClient } from "../../types.js"; import type { SupportsApiRequest } from "../base/index.js"; /** * Google Analytics client for API interactions. * * Provides generic API request method for interacting with Google Analytics' API. * Use apiRequest() to make calls to any Google Analytics API endpoint. * * @example * ```typescript * // Declare in api(): integrations: { googleAnalytics: googleanalytics(INTEGRATION_ID) } * // In run(), access via ctx.integrations.googleAnalytics * * // Make API requests * const ResponseSchema = z.object({ * // Define your response schema * }); * * const result = await googleAnalytics.apiRequest( * { * method: 'POST', * path: '/v1beta/properties/{propertyId}:runReport', * }, * { response: ResponseSchema } * ); * ``` */ export interface GoogleAnalyticsClient extends BaseIntegrationClient, SupportsApiRequest { // apiRequest() method inherited from SupportsApiRequest }