gscdump 0.20.3 → 0.21.0

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.
@@ -2037,12 +2037,12 @@ function inferDataset(dimensions, filterDims = []) {
2037
2037
  const allDims = new Set([...dimensions, ...filterDims]);
2038
2038
  const has = (dimension) => allDims.has(dimension);
2039
2039
  if (has("searchAppearance")) return "search_appearance";
2040
- if (has("page") && (has("query") || has("queryCanonical"))) return "page_keywords";
2041
- if (has("query") || has("queryCanonical")) return "keywords";
2040
+ if (has("page") && (has("query") || has("queryCanonical"))) return "page_queries";
2041
+ if (has("query") || has("queryCanonical")) return "queries";
2042
2042
  if (has("page")) return "pages";
2043
2043
  if (has("country")) return "countries";
2044
- if (has("device")) return "devices";
2045
- return "pages";
2044
+ if (has("device")) return "dates";
2045
+ return "dates";
2046
2046
  }
2047
2047
  const RESOLVABLE_DIMENSION_FAMILIES = [
2048
2048
  new Set([
@@ -2051,7 +2051,6 @@ const RESOLVABLE_DIMENSION_FAMILIES = [
2051
2051
  "queryCanonical"
2052
2052
  ]),
2053
2053
  new Set(["country"]),
2054
- new Set(["device"]),
2055
2054
  new Set(["searchAppearance"])
2056
2055
  ];
2057
2056
  const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
@@ -1681,12 +1681,12 @@ function inferDataset(dimensions, filterDims = []) {
1681
1681
  const allDims = new Set([...dimensions, ...filterDims]);
1682
1682
  const has = (dimension) => allDims.has(dimension);
1683
1683
  if (has("searchAppearance")) return "search_appearance";
1684
- if (has("page") && (has("query") || has("queryCanonical"))) return "page_keywords";
1685
- if (has("query") || has("queryCanonical")) return "keywords";
1684
+ if (has("page") && (has("query") || has("queryCanonical"))) return "page_queries";
1685
+ if (has("query") || has("queryCanonical")) return "queries";
1686
1686
  if (has("page")) return "pages";
1687
1687
  if (has("country")) return "countries";
1688
- if (has("device")) return "devices";
1689
- return "pages";
1688
+ if (has("device")) return "dates";
1689
+ return "dates";
1690
1690
  }
1691
1691
  const RESOLVABLE_DIMENSION_FAMILIES = [
1692
1692
  new Set([
@@ -1695,7 +1695,6 @@ const RESOLVABLE_DIMENSION_FAMILIES = [
1695
1695
  "queryCanonical"
1696
1696
  ]),
1697
1697
  new Set(["country"]),
1698
- new Set(["device"]),
1699
1698
  new Set(["searchAppearance"])
1700
1699
  ];
1701
1700
  const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gscdump",
3
3
  "type": "module",
4
- "version": "0.20.3",
4
+ "version": "0.21.0",
5
5
  "description": "Google Search Console API wrapper with typed query builder, streaming pagination, and SEO analysis functions",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -108,7 +108,7 @@
108
108
  "defu": "^6.1.7",
109
109
  "ofetch": "^1.5.1",
110
110
  "ufo": "^1.6.4",
111
- "@gscdump/contracts": "0.20.3"
111
+ "@gscdump/contracts": "0.21.0"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@googleapis/indexing": "^6.0.1",