@gscdump/sdk 1.4.10 → 1.5.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.
- package/README.md +19 -9
- package/dist/v1/http.d.mts +3 -7
- package/dist/v1/http.mjs +4 -4
- package/dist/v1/realtime.d.mts +1 -1
- package/dist/v1/realtime.mjs +2 -2
- package/package.json +4 -17
- package/dist/analyzer-defs.d.mts +0 -73
- package/dist/analyzer-defs.mjs +0 -4
- package/dist/index.d.mts +0 -22
- package/dist/index.mjs +0 -22
package/README.md
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Consumer SDK for hosted gscdump.com integrations.
|
|
4
4
|
|
|
5
5
|
> The descriptor-driven HTTP client and ticketed realtime state machine are
|
|
6
|
-
> exported from `@gscdump/sdk/v1`.
|
|
7
|
-
>
|
|
8
|
-
> long-lived-key realtime client was removed before v1. See the
|
|
6
|
+
> exported from `@gscdump/sdk/v1`. Focused helper and compatibility clients
|
|
7
|
+
> use explicit subpaths; the package root is intentionally not importable.
|
|
8
|
+
> The unsafe long-lived-key realtime client was removed before v1. See the
|
|
9
|
+
> [integration guide](../../docs/guides/hosted-v1.md) and
|
|
9
10
|
> [v1 contract](../../docs/hosted-api-v1.md).
|
|
10
11
|
|
|
11
12
|
This package is for partner applications that consume gscdump.com APIs,
|
|
@@ -27,15 +28,24 @@ const lifecycle = await gscdump.getUserLifecycle({
|
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
The v1 surface uses a server-held Bearer credential and exposes a generic
|
|
30
|
-
operation executor plus typed convenience methods for all
|
|
31
|
+
operation executor plus typed convenience methods for all 51 registered HTTP
|
|
31
32
|
operations across partner, analytics, and realtime.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
compatibility inventory. Do not use it for an operation already available from
|
|
35
|
-
`@gscdump/sdk/v1`.
|
|
34
|
+
Focused guides:
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
- [Quickstart](../../docs/guides/hosted-v1.md#quickstart)
|
|
37
|
+
- [Authentication](../../docs/guides/hosted-v1.md#authentication)
|
|
38
|
+
- [Errors](../../docs/guides/hosted-v1.md#errors)
|
|
39
|
+
- [Rate limits](../../docs/guides/hosted-v1.md#rate-limits)
|
|
40
|
+
- [Idempotency and retries](../../docs/guides/hosted-v1.md#idempotency-and-retries)
|
|
41
|
+
- [Realtime](../../docs/guides/hosted-v1.md#realtime)
|
|
42
|
+
- [Upgrade guide](../../docs/v1-migration.md)
|
|
43
|
+
|
|
44
|
+
`createPartnerClient` remains at `@gscdump/sdk/partner` only for operations
|
|
45
|
+
still in the compatibility inventory. Do not use it for an operation already
|
|
46
|
+
available from `@gscdump/sdk/v1`.
|
|
47
|
+
|
|
48
|
+
Use focused subpaths for pure helpers, including `period`, `period-presets`,
|
|
39
49
|
`site-triage`, `site-baseline`, `search-console-stage`, `indexing-issues`,
|
|
40
50
|
`analytics`, `partner`, `partner-errors`, `lifecycle`, `webhook`, and
|
|
41
51
|
`gsc-console-url`.
|
package/dist/v1/http.d.mts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { ZodTypeAny, z } from "zod";
|
|
2
|
-
import { GscdumpV1ErrorEnvelope,
|
|
2
|
+
import { GscdumpV1ErrorEnvelope, GscdumpV1Operation as GscdumpV1Operation$1, GscdumpV1OperationId as GscdumpV1OperationId$1 } from "@gscdump/contracts/v1/http";
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
type ValueOf<T> = T[keyof T];
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type GscdumpV1Surface = ValueOf<GscdumpV1ProtocolShape['surfaces']>;
|
|
8
|
-
type GscdumpV1OperationRegistry = GscdumpV1Surface['operations'];
|
|
9
|
-
type GscdumpV1Operation = ValueOfUnion<GscdumpV1OperationRegistry>;
|
|
10
|
-
type GscdumpV1OperationId = GscdumpV1Operation['id'];
|
|
5
|
+
type GscdumpV1Operation = GscdumpV1Operation$1;
|
|
6
|
+
type GscdumpV1OperationId = GscdumpV1OperationId$1;
|
|
11
7
|
type OperationById<TId extends GscdumpV1OperationId> = Extract<GscdumpV1Operation, {
|
|
12
8
|
id: TId;
|
|
13
9
|
}>;
|
package/dist/v1/http.mjs
CHANGED
|
@@ -241,9 +241,9 @@ async function readJson(response) {
|
|
|
241
241
|
function requestIdFrom(response) {
|
|
242
242
|
return response.headers.get("x-request-id") ?? void 0;
|
|
243
243
|
}
|
|
244
|
-
function operationLookup(protocol) {
|
|
244
|
+
function operationLookup(protocol, listOperations) {
|
|
245
245
|
const operations = /* @__PURE__ */ new Map();
|
|
246
|
-
for (const
|
|
246
|
+
for (const { operation, surface } of listOperations(protocol)) operations.set(operation.id, {
|
|
247
247
|
operation,
|
|
248
248
|
surface
|
|
249
249
|
});
|
|
@@ -256,11 +256,11 @@ function createGscdumpV1Client(options) {
|
|
|
256
256
|
let runtimePromise;
|
|
257
257
|
if (typeof fetchImpl !== "function") throw new TypeError("createGscdumpV1Client requires a fetch implementation in this runtime.");
|
|
258
258
|
function getRuntime() {
|
|
259
|
-
return runtimePromise ??= import("@gscdump/contracts/v1/http").then(({ buildHttpOperationPath: buildOperationPath, createGscdumpV1Protocol }) => {
|
|
259
|
+
return runtimePromise ??= import("@gscdump/contracts/v1/http").then(({ buildHttpOperationPath: buildOperationPath, createGscdumpV1Protocol, listHttpOperations: listOperations }) => {
|
|
260
260
|
const protocol = createGscdumpV1Protocol();
|
|
261
261
|
return {
|
|
262
262
|
buildOperationPath,
|
|
263
|
-
operations: operationLookup(protocol),
|
|
263
|
+
operations: operationLookup(protocol, listOperations),
|
|
264
264
|
protocol
|
|
265
265
|
};
|
|
266
266
|
});
|
package/dist/v1/realtime.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RealtimeV1Cursor, RealtimeV1Event, RealtimeV1StreamHead, RealtimeV1StreamId } from "@gscdump/contracts/v1/realtime";
|
|
2
2
|
type MaybePromise<T> = T | Promise<T>;
|
|
3
|
-
declare const GSCDUMP_REALTIME_V1_SDK_VERSION: "1.
|
|
3
|
+
declare const GSCDUMP_REALTIME_V1_SDK_VERSION: "1.5.0";
|
|
4
4
|
type GscdumpRealtimeV1TransportState = 'idle' | 'ticketing' | 'connecting' | 'handshaking' | 'replaying' | 'live' | 'waiting' | 'stopped' | 'terminal';
|
|
5
5
|
type GscdumpRealtimeV1Freshness = 'unknown' | 'stale' | 'applying' | 'fresh' | 'resyncing' | 'degraded';
|
|
6
6
|
type GscdumpRealtimeV1ErrorCode = 'cursor_store_failed' | 'effect_failed' | 'heartbeat_stale' | 'integration_failed' | 'protocol_error' | 'resync_failed' | 'runtime_unavailable' | 'socket_error' | 'ticket_invalid' | 'ticket_provider_failed' | 'upgrade_rejected';
|
package/dist/v1/realtime.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utf8Size } from "../utf8.mjs";
|
|
2
2
|
import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_SUBPROTOCOL, REALTIME_V1_EVENT_NAMES, REALTIME_V1_RESOURCE_TYPES, createRealtimeV1Schemas } from "@gscdump/contracts/v1/realtime";
|
|
3
|
-
const GSCDUMP_REALTIME_V1_SDK_VERSION = "1.
|
|
3
|
+
const GSCDUMP_REALTIME_V1_SDK_VERSION = "1.5.0";
|
|
4
4
|
var GscdumpRealtimeV1Error = class extends Error {
|
|
5
5
|
tag = "GscdumpRealtimeV1Error";
|
|
6
6
|
code;
|
|
@@ -87,7 +87,7 @@ function createGscdumpRealtimeV1Client(options) {
|
|
|
87
87
|
const schemas = createRealtimeV1Schemas();
|
|
88
88
|
const runtime = options.runtime ?? defaultRuntime();
|
|
89
89
|
const cursorStore = options.cursorStore ?? createMemoryCursorStore();
|
|
90
|
-
const sdkVersion = options.sdkVersion ?? "1.
|
|
90
|
+
const sdkVersion = options.sdkVersion ?? "1.5.0";
|
|
91
91
|
if (!sdkVersion) throw new TypeError("sdkVersion cannot be empty.");
|
|
92
92
|
let running = false;
|
|
93
93
|
let epoch = 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "Consumer SDK for hosted gscdump.com integrations.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -21,21 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"exports": {
|
|
24
|
-
".": {
|
|
25
|
-
"types": "./dist/index.d.mts",
|
|
26
|
-
"import": "./dist/index.mjs",
|
|
27
|
-
"default": "./dist/index.mjs"
|
|
28
|
-
},
|
|
29
24
|
"./analytics": {
|
|
30
25
|
"types": "./dist/analytics-client.d.mts",
|
|
31
26
|
"import": "./dist/analytics-client.mjs",
|
|
32
27
|
"default": "./dist/analytics-client.mjs"
|
|
33
28
|
},
|
|
34
|
-
"./analyzers": {
|
|
35
|
-
"types": "./dist/analyzer-defs.d.mts",
|
|
36
|
-
"import": "./dist/analyzer-defs.mjs",
|
|
37
|
-
"default": "./dist/analyzer-defs.mjs"
|
|
38
|
-
},
|
|
39
29
|
"./anonymization": {
|
|
40
30
|
"types": "./dist/anonymization.d.mts",
|
|
41
31
|
"import": "./dist/anonymization.mjs",
|
|
@@ -147,8 +137,6 @@
|
|
|
147
137
|
"default": "./dist/v1/realtime.mjs"
|
|
148
138
|
}
|
|
149
139
|
},
|
|
150
|
-
"main": "./dist/index.mjs",
|
|
151
|
-
"types": "./dist/index.d.mts",
|
|
152
140
|
"files": [
|
|
153
141
|
"dist"
|
|
154
142
|
],
|
|
@@ -158,10 +146,9 @@
|
|
|
158
146
|
"dependencies": {
|
|
159
147
|
"ofetch": "^1.5.1",
|
|
160
148
|
"zod": "^4.4.3",
|
|
161
|
-
"@gscdump/
|
|
162
|
-
"@gscdump/
|
|
163
|
-
"
|
|
164
|
-
"gscdump": "^1.4.10"
|
|
149
|
+
"@gscdump/contracts": "^1.5.0",
|
|
150
|
+
"@gscdump/engine": "^1.5.0",
|
|
151
|
+
"gscdump": "^1.5.0"
|
|
165
152
|
},
|
|
166
153
|
"devDependencies": {
|
|
167
154
|
"typescript": "^7.0.2",
|
package/dist/analyzer-defs.d.mts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ActionSource } from "@gscdump/analysis";
|
|
2
|
-
import { AnalysisTool } from "@gscdump/engine/analysis-types";
|
|
3
|
-
type GscAnalyzerKind = 'analyzer' | 'semantic' | 'action';
|
|
4
|
-
type GscAnalyzerAccent = 'primary' | 'warning' | 'success' | 'error' | 'neutral';
|
|
5
|
-
interface GscAnalyzerInsightCard {
|
|
6
|
-
icon: string;
|
|
7
|
-
accent: GscAnalyzerAccent;
|
|
8
|
-
description: string;
|
|
9
|
-
summarize: (res: {
|
|
10
|
-
results: unknown[];
|
|
11
|
-
meta: Record<string, unknown>;
|
|
12
|
-
}) => {
|
|
13
|
-
headline: string;
|
|
14
|
-
tagline: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
interface GscAnalyzerStatTile {
|
|
18
|
-
label: string;
|
|
19
|
-
value: string | number;
|
|
20
|
-
/** Optional CSS color for the value (e.g. improved/worsened in change-points). */
|
|
21
|
-
valueColor?: string;
|
|
22
|
-
}
|
|
23
|
-
interface GscAnalyzerPanelResult {
|
|
24
|
-
results: unknown[];
|
|
25
|
-
meta: Record<string, unknown>;
|
|
26
|
-
queryMs?: number | null;
|
|
27
|
-
}
|
|
28
|
-
interface GscAnalyzerPanelSpec<TComponent = unknown> {
|
|
29
|
-
/**
|
|
30
|
-
* Body component. Receives `{ rows, meta, range }` as props. Lazy-import
|
|
31
|
-
* to preserve route-level codesplitting.
|
|
32
|
-
*
|
|
33
|
-
* Typed `unknown` in the SDK; consumers can narrow via generic
|
|
34
|
-
* (`GscAnalyzerDefinition<VueComponent>`).
|
|
35
|
-
*/
|
|
36
|
-
component: TComponent;
|
|
37
|
-
/** Project a result to the header stat tiles. Empty array = no tiles. */
|
|
38
|
-
summarize?: (res: GscAnalyzerPanelResult) => GscAnalyzerStatTile[];
|
|
39
|
-
/** Italic footer caption explaining the underlying method. */
|
|
40
|
-
caption?: string;
|
|
41
|
-
/**
|
|
42
|
-
* When true, the shell skips its loading/error/empty gating and renders
|
|
43
|
-
* the body component immediately (pipeline panels: action priority, content gap).
|
|
44
|
-
*/
|
|
45
|
-
ownsLifecycle?: boolean;
|
|
46
|
-
}
|
|
47
|
-
interface GscAnalyzerCapabilities<TComponent = unknown> {
|
|
48
|
-
/** Opt into the `/insights` curated grid by providing a card config. */
|
|
49
|
-
insightCard?: GscAnalyzerInsightCard;
|
|
50
|
-
/** Opt into `useActionPriority`. The value is the typed `ActionSource` slug. */
|
|
51
|
-
actionPriority?: ActionSource;
|
|
52
|
-
/**
|
|
53
|
-
* Opt into the unified `/analyze` panel renderer. Without this, the tab
|
|
54
|
-
* falls back to the generic table renderer.
|
|
55
|
-
*/
|
|
56
|
-
panel?: GscAnalyzerPanelSpec<TComponent>;
|
|
57
|
-
}
|
|
58
|
-
type GscAnalyzerCapability = keyof GscAnalyzerCapabilities;
|
|
59
|
-
interface GscAnalyzerDefinition<TComponent = unknown> {
|
|
60
|
-
/** Stable analyzer id. Must match an `AnalysisTool` slug for built-in analyzers. */
|
|
61
|
-
id: AnalysisTool | (string & {});
|
|
62
|
-
label: string;
|
|
63
|
-
kind: GscAnalyzerKind;
|
|
64
|
-
/** Reads the per-query table; sums silently drop GSC-anonymized impressions. */
|
|
65
|
-
isQueryGrained?: boolean;
|
|
66
|
-
/** Capability opt-ins. Each key gates a downstream consumer. */
|
|
67
|
-
capabilities?: GscAnalyzerCapabilities<TComponent>;
|
|
68
|
-
}
|
|
69
|
-
type GscAnalyzerDefinitionWithCapability<K extends GscAnalyzerCapability, TComponent = unknown> = GscAnalyzerDefinition<TComponent> & {
|
|
70
|
-
capabilities: { [P in K]: NonNullable<GscAnalyzerCapabilities<TComponent>[P]>; };
|
|
71
|
-
};
|
|
72
|
-
declare function defineGscAnalyzer<TComponent = unknown>(def: GscAnalyzerDefinition<TComponent>): GscAnalyzerDefinition<TComponent>;
|
|
73
|
-
export { GscAnalyzerAccent, GscAnalyzerCapabilities, GscAnalyzerCapability, GscAnalyzerDefinition, GscAnalyzerDefinitionWithCapability, GscAnalyzerInsightCard, GscAnalyzerKind, GscAnalyzerPanelResult, GscAnalyzerPanelSpec, GscAnalyzerStatTile, defineGscAnalyzer };
|
package/dist/analyzer-defs.mjs
DELETED
package/dist/index.d.mts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AnalysisSourcesOptions, DEFAULT_SEARCH_TYPE, SearchTypeOptions, SourceRangeOptions, dateRangeOptionsQuery, searchTypeQuery, sourceInfoQuery, tablesQuery, withDefaultSearchType } from "./hosted-query.mjs";
|
|
2
|
-
import { PartnerApiError, PartnerErrorInfo, PartnerErrorKind, partnerErrorToException, toPartnerError } from "./errors.mjs";
|
|
3
|
-
import { AnalyticsClient, AnalyticsClientOptions, AnalyticsFetch, AnalyticsFetchOptions, AnalyticsHeaders, createAnalyticsClient } from "./analytics-client.mjs";
|
|
4
|
-
import { GscAnalyzerAccent, GscAnalyzerCapabilities, GscAnalyzerCapability, GscAnalyzerDefinition, GscAnalyzerDefinitionWithCapability, GscAnalyzerInsightCard, GscAnalyzerKind, GscAnalyzerPanelResult, GscAnalyzerPanelSpec, GscAnalyzerStatTile, defineGscAnalyzer } from "./analyzer-defs.mjs";
|
|
5
|
-
import { DailyAnonInput, weightedAnonPct } from "./anonymization.mjs";
|
|
6
|
-
import { BuilderStateToArchetypeOptions, archetypeSeamSupportsQuery, builderStateToArchetype, extractWireDateRange } from "./archetype-compile.mjs";
|
|
7
|
-
import { PartnerClient, PartnerClientOptions, PartnerFetch, PartnerFetchOptions, PartnerHeaders, createPartnerClient } from "./client.mjs";
|
|
8
|
-
import { countryName } from "./country-names.mjs";
|
|
9
|
-
import { CWV_GOOD_CLS, CWV_GOOD_INP, CWV_GOOD_LCP, CWV_POOR_CLS, CWV_POOR_INP, CWV_POOR_LCP, CwvBucket, cwvBucket, siteUrlToHostname, truncateQuery } from "./cwv-thresholds.mjs";
|
|
10
|
-
import { GscConsoleUrlOpts, gscConsoleUrl } from "./gsc-console-url.mjs";
|
|
11
|
-
import { GSC_STABLE_LATENCY_DAYS } from "./gsc-constants.mjs";
|
|
12
|
-
import { GscClassifiedError, GscErrorStatus, classifyGscError } from "./gsc-error.mjs";
|
|
13
|
-
import { CalendarPeriod, CompareMode, CustomPeriod, DateRangeResult, Period, PeriodOptions, RollingPeriod, compareRange, getGscUnstableCutoffDate, isCustomPeriod, parseCustomPeriod, periodToDateRange, periodToDays } from "./period.mjs";
|
|
14
|
-
import { COMPARE_OPTIONS, GSC_COLUMN_OPTIONS, GSC_PERIOD_OPTIONS, GSC_PERIOD_OPTIONS_LONG, GscColumn, GscColumnOption, PERIOD_PRESETS, PeriodPreset } from "./gsc-period-presets.mjs";
|
|
15
|
-
import { CanonicalDailyRow, GscDailySummary, GscRowTotals, RawDailyRow, coerceRowMetrics, positionFor, summarizeDailyRows } from "./gsc-rows.mjs";
|
|
16
|
-
import { IndexingIssue, IndexingIssueDetail, IssueGroup, IssueSeverity, issueDetails, issueGroups, severityOrder } from "./indexing-issues.mjs";
|
|
17
|
-
import { LifecycleSiteLike, analyticsStatusToSyncStatus, findLifecycleSite, lifecycleSiteToSyncStatus, lifecycleSiteToUserSite } from "./lifecycle.mjs";
|
|
18
|
-
import { ClassifySearchConsoleStageInput, SearchConsoleStage, SearchConsoleStageEvidence, SearchConsoleStageIssue, SearchConsoleStageKey, SearchConsoleStagePage, SearchConsoleStageSeverity, SearchConsoleStageSitemap, SearchConsoleStageSummary, SearchConsoleStageTrajectory, classifySearchConsoleStage } from "./search-console-stage.mjs";
|
|
19
|
-
import { PeerBaselineInput, PeerConfidence, PeerStanding, SITE_TYPE_BASELINE, SiteBaseline, SiteType, SiteTypeBaseline, derivePeerStanding, deriveSiteBaseline, normalizeSiteType, siteTypeBaseline } from "./site-baseline.mjs";
|
|
20
|
-
import { HealthStage, HealthVerdict, ReachStage, ReachVerdict, SiteTriage, SiteTriageInput, TriageEvidence, classifyHealthStage, classifyReachStage, classifySiteTriage, reachLivenessRatio } from "./site-triage.mjs";
|
|
21
|
-
import { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, parseWebhookPayload, parseWebhookPayloadResult, readWebhookHeaders, verifyWebhookSignature } from "./webhook.mjs";
|
|
22
|
-
export { type AnalysisSourcesOptions, type AnalyticsClient, type AnalyticsClientOptions, type AnalyticsFetch, type AnalyticsFetchOptions, type AnalyticsHeaders, type BuilderStateToArchetypeOptions, CANONICAL_WEBHOOK_EVENTS, COMPARE_OPTIONS, CWV_GOOD_CLS, CWV_GOOD_INP, CWV_GOOD_LCP, CWV_POOR_CLS, CWV_POOR_INP, CWV_POOR_LCP, type CalendarPeriod, type CanonicalDailyRow, type ClassifySearchConsoleStageInput, type CompareMode, type CustomPeriod, type CwvBucket, DEFAULT_SEARCH_TYPE, type DailyAnonInput, type DateRangeResult, GSC_COLUMN_OPTIONS, GSC_PERIOD_OPTIONS, GSC_PERIOD_OPTIONS_LONG, GSC_STABLE_LATENCY_DAYS, type GscAnalyzerAccent, type GscAnalyzerCapabilities, type GscAnalyzerCapability, type GscAnalyzerDefinition, type GscAnalyzerDefinitionWithCapability, type GscAnalyzerInsightCard, type GscAnalyzerKind, type GscAnalyzerPanelResult, type GscAnalyzerPanelSpec, type GscAnalyzerStatTile, type GscClassifiedError, type GscColumn, type GscColumnOption, type GscConsoleUrlOpts, type GscDailySummary, type GscErrorStatus, type GscRowTotals, type HealthStage, type HealthVerdict, type IndexingIssue, type IndexingIssueDetail, type IssueGroup, type IssueSeverity, type LifecycleSiteLike, PERIOD_PRESETS, PartnerApiError, type PartnerClient, type PartnerClientOptions, type PartnerErrorInfo, type PartnerErrorKind, type PartnerFetch, type PartnerFetchOptions, type PartnerHeaders, type PeerBaselineInput, type PeerConfidence, type PeerStanding, type Period, type PeriodOptions, type PeriodPreset, type RawDailyRow, type ReachStage, type ReachVerdict, type RollingPeriod, SITE_TYPE_BASELINE, type SearchConsoleStage, type SearchConsoleStageEvidence, type SearchConsoleStageIssue, type SearchConsoleStageKey, type SearchConsoleStagePage, type SearchConsoleStageSeverity, type SearchConsoleStageSitemap, type SearchConsoleStageSummary, type SearchConsoleStageTrajectory, type SearchTypeOptions, type SiteBaseline, type SiteTriage, type SiteTriageInput, type SiteType, type SiteTypeBaseline, type SourceRangeOptions, type TriageEvidence, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, analyticsStatusToSyncStatus, archetypeSeamSupportsQuery, builderStateToArchetype, classifyGscError, classifyHealthStage, classifyReachStage, classifySearchConsoleStage, classifySiteTriage, coerceRowMetrics, compareRange, countryName, createAnalyticsClient, createPartnerClient, cwvBucket, dateRangeOptionsQuery, defineGscAnalyzer, derivePeerStanding, deriveSiteBaseline, extractWireDateRange, findLifecycleSite, getGscUnstableCutoffDate, gscConsoleUrl, isCustomPeriod, issueDetails, issueGroups, lifecycleSiteToSyncStatus, lifecycleSiteToUserSite, normalizeSiteType, parseCustomPeriod, parseWebhookPayload, parseWebhookPayloadResult, partnerErrorToException, periodToDateRange, periodToDays, positionFor, reachLivenessRatio, readWebhookHeaders, searchTypeQuery, severityOrder, siteTypeBaseline, siteUrlToHostname, sourceInfoQuery, summarizeDailyRows, tablesQuery, toPartnerError, truncateQuery, verifyWebhookSignature, weightedAnonPct, withDefaultSearchType };
|
package/dist/index.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_SEARCH_TYPE, dateRangeOptionsQuery, searchTypeQuery, sourceInfoQuery, tablesQuery, withDefaultSearchType } from "./hosted-query.mjs";
|
|
2
|
-
import { PartnerApiError, partnerErrorToException, toPartnerError } from "./errors.mjs";
|
|
3
|
-
import { createAnalyticsClient } from "./analytics-client.mjs";
|
|
4
|
-
import { defineGscAnalyzer } from "./analyzer-defs.mjs";
|
|
5
|
-
import { weightedAnonPct } from "./anonymization.mjs";
|
|
6
|
-
import { archetypeSeamSupportsQuery, builderStateToArchetype, extractWireDateRange } from "./archetype-compile.mjs";
|
|
7
|
-
import { analyticsStatusToSyncStatus, findLifecycleSite, lifecycleSiteToSyncStatus, lifecycleSiteToUserSite } from "./lifecycle.mjs";
|
|
8
|
-
import { createPartnerClient } from "./client.mjs";
|
|
9
|
-
import { countryName } from "./country-names.mjs";
|
|
10
|
-
import { CWV_GOOD_CLS, CWV_GOOD_INP, CWV_GOOD_LCP, CWV_POOR_CLS, CWV_POOR_INP, CWV_POOR_LCP, cwvBucket, siteUrlToHostname, truncateQuery } from "./cwv-thresholds.mjs";
|
|
11
|
-
import { gscConsoleUrl } from "./gsc-console-url.mjs";
|
|
12
|
-
import { GSC_STABLE_LATENCY_DAYS } from "./gsc-constants.mjs";
|
|
13
|
-
import { classifyGscError } from "./gsc-error.mjs";
|
|
14
|
-
import { COMPARE_OPTIONS, GSC_COLUMN_OPTIONS, GSC_PERIOD_OPTIONS, GSC_PERIOD_OPTIONS_LONG, PERIOD_PRESETS } from "./gsc-period-presets.mjs";
|
|
15
|
-
import { coerceRowMetrics, positionFor, summarizeDailyRows } from "./gsc-rows.mjs";
|
|
16
|
-
import { issueDetails, issueGroups, severityOrder } from "./indexing-issues.mjs";
|
|
17
|
-
import { compareRange, getGscUnstableCutoffDate, isCustomPeriod, parseCustomPeriod, periodToDateRange, periodToDays } from "./period.mjs";
|
|
18
|
-
import { SITE_TYPE_BASELINE, derivePeerStanding, deriveSiteBaseline, normalizeSiteType, siteTypeBaseline } from "./site-baseline.mjs";
|
|
19
|
-
import { classifySearchConsoleStage } from "./search-console-stage.mjs";
|
|
20
|
-
import { classifyHealthStage, classifyReachStage, classifySiteTriage, reachLivenessRatio } from "./site-triage.mjs";
|
|
21
|
-
import { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, parseWebhookPayload, parseWebhookPayloadResult, readWebhookHeaders, verifyWebhookSignature } from "./webhook.mjs";
|
|
22
|
-
export { CANONICAL_WEBHOOK_EVENTS, COMPARE_OPTIONS, CWV_GOOD_CLS, CWV_GOOD_INP, CWV_GOOD_LCP, CWV_POOR_CLS, CWV_POOR_INP, CWV_POOR_LCP, DEFAULT_SEARCH_TYPE, GSC_COLUMN_OPTIONS, GSC_PERIOD_OPTIONS, GSC_PERIOD_OPTIONS_LONG, GSC_STABLE_LATENCY_DAYS, PERIOD_PRESETS, PartnerApiError, SITE_TYPE_BASELINE, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, analyticsStatusToSyncStatus, archetypeSeamSupportsQuery, builderStateToArchetype, classifyGscError, classifyHealthStage, classifyReachStage, classifySearchConsoleStage, classifySiteTriage, coerceRowMetrics, compareRange, countryName, createAnalyticsClient, createPartnerClient, cwvBucket, dateRangeOptionsQuery, defineGscAnalyzer, derivePeerStanding, deriveSiteBaseline, extractWireDateRange, findLifecycleSite, getGscUnstableCutoffDate, gscConsoleUrl, isCustomPeriod, issueDetails, issueGroups, lifecycleSiteToSyncStatus, lifecycleSiteToUserSite, normalizeSiteType, parseCustomPeriod, parseWebhookPayload, parseWebhookPayloadResult, partnerErrorToException, periodToDateRange, periodToDays, positionFor, reachLivenessRatio, readWebhookHeaders, searchTypeQuery, severityOrder, siteTypeBaseline, siteUrlToHostname, sourceInfoQuery, summarizeDailyRows, tablesQuery, toPartnerError, truncateQuery, verifyWebhookSignature, weightedAnonPct, withDefaultSearchType };
|