@ecency/sdk 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4930,9 +4930,15 @@ interface UseStatsQueryOptions {
4930
4930
  url: string;
4931
4931
  dimensions?: string[];
4932
4932
  metrics?: string[];
4933
+ /**
4934
+ * Which dimension the `url` is matched against. `event:page` (default) matches
4935
+ * any visit that viewed the page; `visit:entry_page` matches only visits that
4936
+ * landed on it. The API route validates this against an allow-list.
4937
+ */
4938
+ filterBy?: "event:page" | "visit:entry_page";
4933
4939
  enabled?: boolean;
4934
4940
  }
4935
- declare function getStatsQueryOptions({ url, dimensions, metrics, enabled, }: UseStatsQueryOptions): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[])[]>, "queryFn"> & {
4941
+ declare function getStatsQueryOptions({ url, dimensions, metrics, filterBy, enabled, }: UseStatsQueryOptions): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[])[]>, "queryFn"> & {
4936
4942
  queryFn?: _tanstack_react_query.QueryFunction<StatsResponse, (string | string[])[], never> | undefined;
4937
4943
  } & {
4938
4944
  queryKey: (string | string[])[] & {