@gscdump/engine-gsc-api 0.40.2 → 1.0.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.
- package/README.md +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npm install @gscdump/engine-gsc-api @gscdump/engine gscdump
|
|
|
21
21
|
```ts
|
|
22
22
|
import { analyzeMoversFromSource } from '@gscdump/analysis'
|
|
23
23
|
import { createGscApiQuerySource } from '@gscdump/engine-gsc-api'
|
|
24
|
-
import { googleSearchConsole } from 'gscdump
|
|
24
|
+
import { googleSearchConsole } from 'gscdump'
|
|
25
25
|
|
|
26
26
|
const client = googleSearchConsole(auth)
|
|
27
27
|
const source = createGscApiQuerySource({ client, siteUrl: 'sc-domain:example.com' })
|
|
@@ -56,7 +56,7 @@ const source = createLiveGscSource({
|
|
|
56
56
|
|
|
57
57
|
## Capabilities
|
|
58
58
|
|
|
59
|
-
GSC supports regex pushdown via `INCLUDING_REGEX` / `EXCLUDING_REGEX` filters but has no SQL surface, no comparison joins, no cross-dataset queries, and no engine-derived dimensions (`queryCanonical`, `page_keywords`). Pair with `createCompositeSource({ engine, gsc })` from `@gscdump/analysis
|
|
59
|
+
GSC supports regex pushdown via `INCLUDING_REGEX` / `EXCLUDING_REGEX` filters but has no SQL surface, no comparison joins, no cross-dataset queries, and no engine-derived dimensions (`queryCanonical`, `page_keywords`). Pair with `createCompositeSource({ engine, gsc })` from `@gscdump/analysis` to route SQL-shaped queries to the engine and date-out-of-range queries to GSC.
|
|
60
60
|
|
|
61
61
|
## Related
|
|
62
62
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GoogleSearchConsoleClient } from "gscdump
|
|
1
|
+
import { GoogleSearchConsoleClient } from "gscdump";
|
|
2
2
|
import { BuilderState, Column, Dimension, SearchType } from "gscdump/query";
|
|
3
3
|
import { SearchType as SearchType$1 } from "@gscdump/engine";
|
|
4
4
|
import { AnalysisQuerySource } from "@gscdump/engine/source";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { googleSearchConsole } from "gscdump
|
|
1
|
+
import { googleSearchConsole } from "gscdump";
|
|
2
2
|
import { assertDimensionsSupported, dimensionValue, getFilterDimensions, matchesTopLevelPage, metricValue } from "@gscdump/engine/resolver";
|
|
3
3
|
import { between, clicks, date, extractMetricFilters, extractSpecialOperatorFilters, gsc } from "gscdump/query";
|
|
4
4
|
import { buildLogicalPlan } from "gscdump/query/plan";
|
|
@@ -370,7 +370,7 @@ async function runGscSyncSlice(opts) {
|
|
|
370
370
|
...dimensionFilterGroups ? { dimensionFilterGroups } : {}
|
|
371
371
|
};
|
|
372
372
|
try {
|
|
373
|
-
const response = await opts.client.
|
|
373
|
+
const response = await opts.client.searchAnalytics.query(opts.siteUrl, query);
|
|
374
374
|
return {
|
|
375
375
|
kind: "ok",
|
|
376
376
|
startRow: row,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/engine-gsc-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "GSC live-API engine adapter — wraps the Search Analytics REST API as an AnalysisQuerySource for typed analyzer dispatch.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=22"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@gscdump/engine": "0.
|
|
40
|
-
"gscdump": "0.
|
|
39
|
+
"@gscdump/engine": "^1.0.1",
|
|
40
|
+
"gscdump": "^1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"vitest": "^4.1.10"
|