@gscdump/contracts 4.2.3 → 4.3.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.
@@ -1986,8 +1986,8 @@ export declare const gscdumpSyncProgressResponseSchema: z.ZodObject<{
1986
1986
  authFailureCount: z.ZodNumber;
1987
1987
  currentPhase: z.ZodEnum<{
1988
1988
  complete: "complete";
1989
- initial: "initial";
1990
1989
  backfill: "backfill";
1990
+ initial: "initial";
1991
1991
  }>;
1992
1992
  isStalled: z.ZodBoolean;
1993
1993
  stallDays: z.ZodNumber;
@@ -3453,8 +3453,8 @@ export declare const partnerControlEndpointSchemas: {
3453
3453
  authFailureCount: z.ZodNumber;
3454
3454
  currentPhase: z.ZodEnum<{
3455
3455
  complete: "complete";
3456
- initial: "initial";
3457
3456
  backfill: "backfill";
3457
+ initial: "initial";
3458
3458
  }>;
3459
3459
  isStalled: z.ZodBoolean;
3460
3460
  stallDays: z.ZodNumber;
@@ -5152,8 +5152,8 @@ export declare const partnerEndpointSchemas: {
5152
5152
  authFailureCount: z.ZodNumber;
5153
5153
  currentPhase: z.ZodEnum<{
5154
5154
  complete: "complete";
5155
- initial: "initial";
5156
5155
  backfill: "backfill";
5156
+ initial: "initial";
5157
5157
  }>;
5158
5158
  isStalled: z.ZodBoolean;
5159
5159
  stallDays: z.ZodNumber;
@@ -10,6 +10,8 @@ export interface NormalizedFilterV1 {
10
10
  }>;
11
11
  _nestedGroups?: NormalizedFilterV1[];
12
12
  _groupType?: 'and' | 'or';
13
+ /** Type-level marker the `gscdump/query` operators emit; `{}` at runtime and ignored. */
14
+ _constraints?: object;
13
15
  }
14
16
  export declare const GSCDUMP_V1_ANALYTICS_DIMENSIONS: readonly ["page", "query", "queryCanonical", "country", "device", "date", "searchAppearance", "hour"];
15
17
  export declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schemas): {
@@ -30,8 +32,8 @@ export declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: Realtime
30
32
  ctr: "ctr";
31
33
  position: "position";
32
34
  }>>>;
33
- filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
34
- prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
35
+ filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
36
+ prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
35
37
  orderBy: z.ZodOptional<z.ZodObject<{
36
38
  column: z.ZodEnum<{
37
39
  date: "date";
@@ -163,14 +163,17 @@ function createGscdumpV1BrowserSchemas(realtimeSchemas = createRealtimeV1Schemas
163
163
  expression: z.string(),
164
164
  expression2: z.string()
165
165
  })]);
166
+ const filterConstraints = z.strictObject({}).optional();
166
167
  const normalizedFilter = z.lazy(() => z.union([z.strictObject({
167
168
  _filters: z.array(normalizedFilterLeaf).min(1),
168
169
  _nestedGroups: z.array(normalizedFilter).optional(),
169
- _groupType: z.enum(["and", "or"]).optional()
170
+ _groupType: z.enum(["and", "or"]).optional(),
171
+ _constraints: filterConstraints
170
172
  }), z.strictObject({
171
173
  _filters: z.array(normalizedFilterLeaf).max(0),
172
174
  _nestedGroups: z.array(normalizedFilter).min(1),
173
- _groupType: z.enum(["and", "or"]).optional()
175
+ _groupType: z.enum(["and", "or"]).optional(),
176
+ _constraints: filterConstraints
174
177
  })]));
175
178
  const analyticsRowsRequest = z.strictObject({
176
179
  dimensions: z.array(z.enum(dimensions)).min(1),