@gscdump/sdk 1.0.1 → 1.0.2

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/dist/index.mjs CHANGED
@@ -5,7 +5,13 @@ import { entityDailyTimeseries, multiSeriesStackedDaily, siteDailyTimeseries, to
5
5
  import { extractDateRange, normalizeFilter } from "gscdump/query";
6
6
  import { partnerEndpoints } from "@gscdump/contracts/partner";
7
7
  import { resolveWindow } from "@gscdump/engine/period";
8
- import { endOfMonth, format, startOfMonth, startOfQuarter, startOfWeek, subDays, subMonths } from "date-fns";
8
+ import { endOfMonth } from "date-fns/endOfMonth";
9
+ import { format } from "date-fns/format";
10
+ import { startOfMonth } from "date-fns/startOfMonth";
11
+ import { startOfQuarter } from "date-fns/startOfQuarter";
12
+ import { startOfWeek } from "date-fns/startOfWeek";
13
+ import { subDays } from "date-fns/subDays";
14
+ import { subMonths } from "date-fns/subMonths";
9
15
  import { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_CONTRACT_VERSION_HEADER as WEBHOOK_CONTRACT_VERSION_HEADER$1, WEBHOOK_DELIVERY_HEADER, WEBHOOK_DELIVERY_HEADER as WEBHOOK_DELIVERY_HEADER$1, WEBHOOK_EVENT_HEADER, WEBHOOK_EVENT_HEADER as WEBHOOK_EVENT_HEADER$1, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_HEADER as WEBHOOK_SIGNATURE_HEADER$1, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TIMESTAMP_HEADER as WEBHOOK_TIMESTAMP_HEADER$1, partnerWebhookEnvelopeSchema } from "@gscdump/contracts";
10
16
  const DEFAULT_SEARCH_TYPE = "web";
11
17
  function isAnalysisSourcesOptions(value) {
@@ -92,7 +92,7 @@ interface GscdumpV1Client {
92
92
  /** Create one framework-neutral client whose behavior is driven by the v1 registry. */
93
93
  declare function createGscdumpV1Client(options: CreateGscdumpV1ClientOptions): GscdumpV1Client;
94
94
  type MaybePromise<T> = T | Promise<T>;
95
- declare const GSCDUMP_REALTIME_V1_SDK_VERSION: "1.0.0";
95
+ declare const GSCDUMP_REALTIME_V1_SDK_VERSION: "1.0.2";
96
96
  type GscdumpRealtimeV1TransportState = 'idle' | 'ticketing' | 'connecting' | 'handshaking' | 'replaying' | 'live' | 'waiting' | 'stopped' | 'terminal';
97
97
  type GscdumpRealtimeV1Freshness = 'unknown' | 'stale' | 'applying' | 'fresh' | 'resyncing' | 'degraded';
98
98
  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/index.mjs CHANGED
@@ -395,7 +395,7 @@ function utf8Size(value) {
395
395
  }
396
396
  return bytes;
397
397
  }
398
- const GSCDUMP_REALTIME_V1_SDK_VERSION = "1.0.0";
398
+ const GSCDUMP_REALTIME_V1_SDK_VERSION = "1.0.2";
399
399
  var GscdumpRealtimeV1Error = class extends Error {
400
400
  tag = "GscdumpRealtimeV1Error";
401
401
  code;
@@ -482,7 +482,7 @@ function createGscdumpRealtimeV1Client(options) {
482
482
  const protocol = createGscdumpV1Protocol();
483
483
  const runtime = options.runtime ?? defaultRuntime();
484
484
  const cursorStore = options.cursorStore ?? createMemoryCursorStore();
485
- const sdkVersion = options.sdkVersion ?? "1.0.0";
485
+ const sdkVersion = options.sdkVersion ?? "1.0.2";
486
486
  if (!sdkVersion) throw new TypeError("sdkVersion cannot be empty.");
487
487
  let running = false;
488
488
  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.0.1",
4
+ "version": "1.0.2",
5
5
  "description": "Consumer SDK for hosted gscdump.com integrations.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -44,10 +44,10 @@
44
44
  "date-fns": "^4.4.0",
45
45
  "ofetch": "^1.5.1",
46
46
  "zod": "^4.4.3",
47
- "@gscdump/contracts": "^1.0.1",
48
- "@gscdump/engine": "^1.0.1",
49
- "gscdump": "^1.0.1",
50
- "@gscdump/analysis": "^1.0.1"
47
+ "@gscdump/contracts": "^1.0.2",
48
+ "@gscdump/analysis": "^1.0.2",
49
+ "gscdump": "^1.0.2",
50
+ "@gscdump/engine": "^1.0.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "typescript": "^6.0.3",