gscdump 0.21.3 → 0.22.4

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.
@@ -2036,7 +2036,12 @@ function collectInternalFilters(filter) {
2036
2036
  function inferDataset(dimensions, filterDims = []) {
2037
2037
  const allDims = new Set([...dimensions, ...filterDims]);
2038
2038
  const has = (dimension) => allDims.has(dimension);
2039
- if (has("searchAppearance")) return "search_appearance";
2039
+ if (has("searchAppearance")) {
2040
+ if (has("page") && (has("query") || has("queryCanonical"))) return "search_appearance_page_queries";
2041
+ if (has("page")) return "search_appearance_pages";
2042
+ if (has("query") || has("queryCanonical")) return "search_appearance_queries";
2043
+ return "search_appearance";
2044
+ }
2040
2045
  if (has("page") && (has("query") || has("queryCanonical"))) return "page_queries";
2041
2046
  if (has("query") || has("queryCanonical")) return "queries";
2042
2047
  if (has("page")) return "pages";
@@ -2051,7 +2056,12 @@ const RESOLVABLE_DIMENSION_FAMILIES = [
2051
2056
  "queryCanonical"
2052
2057
  ]),
2053
2058
  new Set(["country"]),
2054
- new Set(["searchAppearance"])
2059
+ new Set([
2060
+ "searchAppearance",
2061
+ "page",
2062
+ "query",
2063
+ "queryCanonical"
2064
+ ])
2055
2065
  ];
2056
2066
  const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
2057
2067
  function isDatasetResolvable(dimensions, filterDims = []) {
@@ -1680,7 +1680,12 @@ function collectInternalFilters(filter) {
1680
1680
  function inferDataset(dimensions, filterDims = []) {
1681
1681
  const allDims = new Set([...dimensions, ...filterDims]);
1682
1682
  const has = (dimension) => allDims.has(dimension);
1683
- if (has("searchAppearance")) return "search_appearance";
1683
+ if (has("searchAppearance")) {
1684
+ if (has("page") && (has("query") || has("queryCanonical"))) return "search_appearance_page_queries";
1685
+ if (has("page")) return "search_appearance_pages";
1686
+ if (has("query") || has("queryCanonical")) return "search_appearance_queries";
1687
+ return "search_appearance";
1688
+ }
1684
1689
  if (has("page") && (has("query") || has("queryCanonical"))) return "page_queries";
1685
1690
  if (has("query") || has("queryCanonical")) return "queries";
1686
1691
  if (has("page")) return "pages";
@@ -1695,7 +1700,12 @@ const RESOLVABLE_DIMENSION_FAMILIES = [
1695
1700
  "queryCanonical"
1696
1701
  ]),
1697
1702
  new Set(["country"]),
1698
- new Set(["searchAppearance"])
1703
+ new Set([
1704
+ "searchAppearance",
1705
+ "page",
1706
+ "query",
1707
+ "queryCanonical"
1708
+ ])
1699
1709
  ];
1700
1710
  const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
1701
1711
  function isDatasetResolvable(dimensions, filterDims = []) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gscdump",
3
3
  "type": "module",
4
- "version": "0.21.3",
4
+ "version": "0.22.4",
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.21.3"
111
+ "@gscdump/contracts": "0.22.4"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@googleapis/indexing": "^6.0.1",