@trillboards/api-client 3.2.19 → 3.2.20

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.
@@ -1828,7 +1828,13 @@ type DataApi_DataProducts_MetricAnswer = {
1828
1828
  /** complete, partial or not_measured. */
1829
1829
  status: string;
1830
1830
  }>;
1831
- dimensions_measured?: Array<string>;
1831
+ /** Demographics metrics: each dimension read, with its readings in the window. */
1832
+ dimensions_measured?: Array<{
1833
+ /** A demographic dimension the answer reads. */
1834
+ dimension: string;
1835
+ /** Readings of that dimension in the window. */
1836
+ readings_in_window: number;
1837
+ }>;
1832
1838
  /** Metric family. */
1833
1839
  family: string;
1834
1840
  /** The filters applied (screens, markets, brands, board_id, by, ...). */
@@ -1860,8 +1866,8 @@ type DataApi_DataProducts_MetricAnswer = {
1860
1866
  row_count?: number;
1861
1867
  /** One row per grain cell: the grain keys, then every measure of the metric (see the table on this operation), each with the count it is taken over; `absent` lists the measures with no value and why. */
1862
1868
  rows?: Array<Record<string, unknown>>;
1863
- /** The fleet totals over the window, keyed like a row. */
1864
- totals?: Record<string, unknown>;
1869
+ /** The totals over the window, shaped like `rows`: one row when the answer has one key, one row per key when it has several (per brand for creative_share_of_voice, per panel for a panel metric, per dimension value for demographics); null when no day was measured. */
1870
+ totals?: Record<string, unknown> | Array<Record<string, unknown>> | null | null;
1865
1871
  /** The window answered: from, to, days, timezone, defaulted (or window_end, window_days for a board metric). */
1866
1872
  window: Record<string, unknown>;
1867
1873
  };
@@ -1828,7 +1828,13 @@ type DataApi_DataProducts_MetricAnswer = {
1828
1828
  /** complete, partial or not_measured. */
1829
1829
  status: string;
1830
1830
  }>;
1831
- dimensions_measured?: Array<string>;
1831
+ /** Demographics metrics: each dimension read, with its readings in the window. */
1832
+ dimensions_measured?: Array<{
1833
+ /** A demographic dimension the answer reads. */
1834
+ dimension: string;
1835
+ /** Readings of that dimension in the window. */
1836
+ readings_in_window: number;
1837
+ }>;
1832
1838
  /** Metric family. */
1833
1839
  family: string;
1834
1840
  /** The filters applied (screens, markets, brands, board_id, by, ...). */
@@ -1860,8 +1866,8 @@ type DataApi_DataProducts_MetricAnswer = {
1860
1866
  row_count?: number;
1861
1867
  /** One row per grain cell: the grain keys, then every measure of the metric (see the table on this operation), each with the count it is taken over; `absent` lists the measures with no value and why. */
1862
1868
  rows?: Array<Record<string, unknown>>;
1863
- /** The fleet totals over the window, keyed like a row. */
1864
- totals?: Record<string, unknown>;
1869
+ /** The totals over the window, shaped like `rows`: one row when the answer has one key, one row per key when it has several (per brand for creative_share_of_voice, per panel for a panel metric, per dimension value for demographics); null when no day was measured. */
1870
+ totals?: Record<string, unknown> | Array<Record<string, unknown>> | null | null;
1865
1871
  /** The window answered: from, to, days, timezone, defaulted (or window_end, window_days for a board metric). */
1866
1872
  window: Record<string, unknown>;
1867
1873
  };