import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The interval to retrieve analytics for. If undefined, defaults to 24h. */ export declare const RetrievePartnerAnalyticsQueryParamInterval: { readonly TwentyFourh: "24h"; readonly Sevend: "7d"; readonly Thirtyd: "30d"; readonly Ninetyd: "90d"; readonly Oney: "1y"; readonly Mtd: "mtd"; readonly Qtd: "qtd"; readonly Ytd: "ytd"; readonly All: "all"; }; /** * The interval to retrieve analytics for. If undefined, defaults to 24h. */ export type RetrievePartnerAnalyticsQueryParamInterval = ClosedEnum; /** * The parameter to group the analytics data points by. Defaults to `count` if undefined. */ export declare const RetrievePartnerAnalyticsQueryParamGroupBy: { readonly TopLinks: "top_links"; readonly Timeseries: "timeseries"; readonly Count: "count"; }; /** * The parameter to group the analytics data points by. Defaults to `count` if undefined. */ export type RetrievePartnerAnalyticsQueryParamGroupBy = ClosedEnum; export type RetrievePartnerAnalyticsRequest = { /** * The ID of the partner to create a link for. Will take precedence over `tenantId` if provided. */ partnerId?: string | null | undefined; /** * The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown. */ tenantId?: string | null | undefined; /** * The interval to retrieve analytics for. If undefined, defaults to 24h. */ interval?: RetrievePartnerAnalyticsQueryParamInterval | undefined; /** * The start date and time when to retrieve analytics from. If set, takes precedence over `interval`. */ start?: string | undefined; /** * The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with `start`, takes precedence over `interval`. */ end?: string | undefined; /** * The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. */ timezone?: string | undefined; /** * Search the events by a custom metadata value. Only available for lead and sale events. Examples: `metadata['key']:'value'` */ query?: string | undefined; /** * The parameter to group the analytics data points by. Defaults to `count` if undefined. */ groupBy?: RetrievePartnerAnalyticsQueryParamGroupBy | undefined; }; /** * Partner analytics data */ export type RetrievePartnerAnalyticsResponseBody = components.PartnerAnalyticsCount | Array | Array; /** @internal */ export declare const RetrievePartnerAnalyticsQueryParamInterval$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RetrievePartnerAnalyticsQueryParamGroupBy$outboundSchema: z.ZodNativeEnum; /** @internal */ export type RetrievePartnerAnalyticsRequest$Outbound = { partnerId?: string | null | undefined; tenantId?: string | null | undefined; interval?: string | undefined; start?: string | undefined; end?: string | undefined; timezone: string; query?: string | undefined; groupBy: string; }; /** @internal */ export declare const RetrievePartnerAnalyticsRequest$outboundSchema: z.ZodType; export declare function retrievePartnerAnalyticsRequestToJSON(retrievePartnerAnalyticsRequest: RetrievePartnerAnalyticsRequest): string; /** @internal */ export declare const RetrievePartnerAnalyticsResponseBody$inboundSchema: z.ZodType; export declare function retrievePartnerAnalyticsResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=retrievepartneranalytics.d.ts.map