UNPKG

@openstream/client

Version:
30 lines 1.33 kB
import type { AnalyticsItem } from "./AnalyticsItem.js"; import type { AnalyticsQueryKind } from "./AnalyticsQueryKind.js"; import type { AnalyticsStation } from "./AnalyticsStation.js"; import type { CountryCode } from "../CountryCode.js"; import type { DateTime } from "../DateTime.js"; import type { TimezoneDateTime } from "../TimezoneDateTime.js"; import type { YearMonthDay } from "./YearMonthDay.js"; import type { YearMonthDayHour } from "./YearMonthDayHour.js"; export type Analytics = { is_now: boolean; kind: AnalyticsQueryKind; stations: Array<AnalyticsStation>; since: TimezoneDateTime; until: TimezoneDateTime; utc_offset_minutes: number; sessions: number; ips: number; total_duration_ms: number; total_transfer_bytes: number; max_concurrent_listeners?: number; max_concurrent_listeners_date?: DateTime; by_day: Array<AnalyticsItem<YearMonthDay>>; by_hour: Array<AnalyticsItem<YearMonthDayHour>> | null | undefined; by_browser: Array<AnalyticsItem<string | null | undefined>>; by_os: Array<AnalyticsItem<string | null | undefined>>; by_country: Array<AnalyticsItem<CountryCode | null | undefined>>; by_station: Array<AnalyticsItem<string>>; by_domain: Array<AnalyticsItem<string | null | undefined>>; }; //# sourceMappingURL=Analytics.d.ts.map