@gscdump/contracts 4.2.3 → 4.4.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,17 +10,19 @@ 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): {
16
18
  analyticsRowsRequest: z.ZodObject<{
17
19
  dimensions: z.ZodArray<z.ZodEnum<{
20
+ date: "date";
18
21
  page: "page";
19
22
  query: "query";
20
23
  queryCanonical: "queryCanonical";
21
24
  country: "country";
22
25
  device: "device";
23
- date: "date";
24
26
  searchAppearance: "searchAppearance";
25
27
  hour: "hour";
26
28
  }>>;
@@ -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),
@@ -740,12 +740,12 @@ export declare function createGscdumpV1Protocol(): {
740
740
  readonly GOOGLE_NEWS: "googleNews";
741
741
  }>>;
742
742
  dimensions: z.ZodArray<z.ZodEnum<{
743
+ date: "date";
743
744
  page: "page";
744
745
  query: "query";
745
746
  queryCanonical: "queryCanonical";
746
747
  country: "country";
747
748
  device: "device";
748
- date: "date";
749
749
  searchAppearance: "searchAppearance";
750
750
  hour: "hour";
751
751
  }>>;
@@ -760,12 +760,12 @@ export declare function createGscdumpV1Protocol(): {
760
760
  readonly GOOGLE_NEWS: "googleNews";
761
761
  }>>;
762
762
  dimensions: z.ZodArray<z.ZodEnum<{
763
+ date: "date";
763
764
  page: "page";
764
765
  query: "query";
765
766
  queryCanonical: "queryCanonical";
766
767
  country: "country";
767
768
  device: "device";
768
- date: "date";
769
769
  searchAppearance: "searchAppearance";
770
770
  hour: "hour";
771
771
  }>>;
@@ -897,12 +897,12 @@ export declare function createGscdumpV1Protocol(): {
897
897
  readonly GOOGLE_NEWS: "googleNews";
898
898
  }>>;
899
899
  dimensions: z.ZodArray<z.ZodEnum<{
900
+ date: "date";
900
901
  page: "page";
901
902
  query: "query";
902
903
  queryCanonical: "queryCanonical";
903
904
  country: "country";
904
905
  device: "device";
905
- date: "date";
906
906
  searchAppearance: "searchAppearance";
907
907
  hour: "hour";
908
908
  }>>;
@@ -917,12 +917,12 @@ export declare function createGscdumpV1Protocol(): {
917
917
  readonly GOOGLE_NEWS: "googleNews";
918
918
  }>>;
919
919
  dimensions: z.ZodArray<z.ZodEnum<{
920
+ date: "date";
920
921
  page: "page";
921
922
  query: "query";
922
923
  queryCanonical: "queryCanonical";
923
924
  country: "country";
924
925
  device: "device";
925
- date: "date";
926
926
  searchAppearance: "searchAppearance";
927
927
  hour: "hour";
928
928
  }>>;
@@ -1025,12 +1025,12 @@ export declare function createGscdumpV1Protocol(): {
1025
1025
  }, z.core.$strip>>;
1026
1026
  analyticsRowsRequest: z.ZodObject<{
1027
1027
  dimensions: z.ZodArray<z.ZodEnum<{
1028
+ date: "date";
1028
1029
  page: "page";
1029
1030
  query: "query";
1030
1031
  queryCanonical: "queryCanonical";
1031
1032
  country: "country";
1032
1033
  device: "device";
1033
- date: "date";
1034
1034
  searchAppearance: "searchAppearance";
1035
1035
  hour: "hour";
1036
1036
  }>>;
@@ -1040,8 +1040,8 @@ export declare function createGscdumpV1Protocol(): {
1040
1040
  ctr: "ctr";
1041
1041
  position: "position";
1042
1042
  }>>>;
1043
- filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
1044
- prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
1043
+ filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
1044
+ prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
1045
1045
  orderBy: z.ZodOptional<z.ZodObject<{
1046
1046
  column: z.ZodEnum<{
1047
1047
  date: "date";
@@ -13264,12 +13264,12 @@ export declare function createGscdumpV1Protocol(): {
13264
13264
  }, z.core.$strict>;
13265
13265
  readonly body: z.ZodObject<{
13266
13266
  dimensions: z.ZodArray<z.ZodEnum<{
13267
+ date: "date";
13267
13268
  page: "page";
13268
13269
  query: "query";
13269
13270
  queryCanonical: "queryCanonical";
13270
13271
  country: "country";
13271
13272
  device: "device";
13272
- date: "date";
13273
13273
  searchAppearance: "searchAppearance";
13274
13274
  hour: "hour";
13275
13275
  }>>;
@@ -13279,8 +13279,8 @@ export declare function createGscdumpV1Protocol(): {
13279
13279
  ctr: "ctr";
13280
13280
  position: "position";
13281
13281
  }>>>;
13282
- filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
13283
- prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
13282
+ filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
13283
+ prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, NormalizedFilterV1, z.core.$ZodTypeInternals<NormalizedFilterV1, NormalizedFilterV1>>>;
13284
13284
  orderBy: z.ZodOptional<z.ZodObject<{
13285
13285
  column: z.ZodEnum<{
13286
13286
  date: "date";
@@ -13467,12 +13467,12 @@ export declare function createGscdumpV1Protocol(): {
13467
13467
  readonly GOOGLE_NEWS: "googleNews";
13468
13468
  }>>;
13469
13469
  dimensions: z.ZodArray<z.ZodEnum<{
13470
+ date: "date";
13470
13471
  page: "page";
13471
13472
  query: "query";
13472
13473
  queryCanonical: "queryCanonical";
13473
13474
  country: "country";
13474
13475
  device: "device";
13475
- date: "date";
13476
13476
  searchAppearance: "searchAppearance";
13477
13477
  hour: "hour";
13478
13478
  }>>;
@@ -13487,12 +13487,12 @@ export declare function createGscdumpV1Protocol(): {
13487
13487
  readonly GOOGLE_NEWS: "googleNews";
13488
13488
  }>>;
13489
13489
  dimensions: z.ZodArray<z.ZodEnum<{
13490
+ date: "date";
13490
13491
  page: "page";
13491
13492
  query: "query";
13492
13493
  queryCanonical: "queryCanonical";
13493
13494
  country: "country";
13494
13495
  device: "device";
13495
- date: "date";
13496
13496
  searchAppearance: "searchAppearance";
13497
13497
  hour: "hour";
13498
13498
  }>>;
@@ -13728,12 +13728,12 @@ export declare function createGscdumpV1Protocol(): {
13728
13728
  readonly GOOGLE_NEWS: "googleNews";
13729
13729
  }>>;
13730
13730
  dimensions: z.ZodArray<z.ZodEnum<{
13731
+ date: "date";
13731
13732
  page: "page";
13732
13733
  query: "query";
13733
13734
  queryCanonical: "queryCanonical";
13734
13735
  country: "country";
13735
13736
  device: "device";
13736
- date: "date";
13737
13737
  searchAppearance: "searchAppearance";
13738
13738
  hour: "hour";
13739
13739
  }>>;
@@ -13748,12 +13748,12 @@ export declare function createGscdumpV1Protocol(): {
13748
13748
  readonly GOOGLE_NEWS: "googleNews";
13749
13749
  }>>;
13750
13750
  dimensions: z.ZodArray<z.ZodEnum<{
13751
+ date: "date";
13751
13752
  page: "page";
13752
13753
  query: "query";
13753
13754
  queryCanonical: "queryCanonical";
13754
13755
  country: "country";
13755
13756
  device: "device";
13756
- date: "date";
13757
13757
  searchAppearance: "searchAppearance";
13758
13758
  hour: "hour";
13759
13759
  }>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "4.2.3",
4
+ "version": "4.4.0",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",