import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Groups time-series data into buckets of this size. Requires startDate and endDate. Returns a periods array with one entry per bucket containing grossRevenue and netRevenue. */ export declare const Interval: { readonly Day: "day"; readonly Week: "week"; readonly Month: "month"; }; /** * Groups time-series data into buckets of this size. Requires startDate and endDate. Returns a periods array with one entry per bucket containing grossRevenue and netRevenue. */ export type Interval = ClosedEnum; export declare const Currency: { readonly Eur: "EUR"; readonly Usd: "USD"; }; export type Currency = ClosedEnum; export type GetMetricsSummaryRequest = { /** * Start of the date range as a Unix timestamp in milliseconds (e.g. 1740614400000). When provided with endDate, filters totals to this range. Required when interval is specified. */ startDate?: number | undefined; /** * End of the date range as a Unix timestamp in milliseconds (e.g. 1772150400000). When provided with startDate, filters totals to this range. Required when interval is specified. */ endDate?: number | undefined; /** * Groups time-series data into buckets of this size. Requires startDate and endDate. Returns a periods array with one entry per bucket containing grossRevenue and netRevenue. */ interval?: Interval | undefined; currency: Currency; }; /** @internal */ export declare const Interval$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Interval$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Currency$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Currency$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetMetricsSummaryRequest$inboundSchema: z.ZodType; /** @internal */ export type GetMetricsSummaryRequest$Outbound = { startDate?: number | undefined; endDate?: number | undefined; interval?: string | undefined; currency: string; }; /** @internal */ export declare const GetMetricsSummaryRequest$outboundSchema: z.ZodType; export declare function getMetricsSummaryRequestToJSON(getMetricsSummaryRequest: GetMetricsSummaryRequest): string; export declare function getMetricsSummaryRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getmetricssummary.d.ts.map