@getlatedev/node 0.2.1709 → 0.2.1710

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.d.mts CHANGED
@@ -33099,29 +33099,39 @@ type QueryGoogleSearchConsoleSearchAnalyticsData = {
33099
33099
  accountId: string;
33100
33100
  fromDate?: string;
33101
33101
  toDate?: string;
33102
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
33102
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
33103
33103
  /**
33104
- * Which Google surface to read. Defaults to `web`.
33104
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
33105
33105
  */
33106
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
33106
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
33107
33107
  dimensionFilterGroups?: Array<{
33108
33108
  groupType?: 'and';
33109
- filters: Array<{
33109
+ filters?: Array<{
33110
33110
  /**
33111
- * Narrow dates with startDate and endDate instead.
33111
+ * Narrow dates with fromDate and toDate instead.
33112
33112
  */
33113
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
33113
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
33114
33114
  /**
33115
33115
  * Defaults to `equals`.
33116
33116
  */
33117
33117
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
33118
33118
  /**
33119
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
33119
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
33120
33120
  */
33121
33121
  expression: string;
33122
33122
  }>;
33123
+ /**
33124
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
33125
+ */
33126
+ filterLists?: Array<{
33127
+ dimension: 'country' | 'device';
33128
+ expressions: Array<(string)>;
33129
+ }>;
33123
33130
  }>;
33124
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
33131
+ /**
33132
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
33133
+ */
33134
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
33125
33135
  /**
33126
33136
  * Defaults to 1000.
33127
33137
  */
@@ -33169,6 +33179,14 @@ type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
33169
33179
  fromDate?: string;
33170
33180
  toDate?: string;
33171
33181
  aggregationType?: (string) | null;
33182
+ /**
33183
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
33184
+ */
33185
+ firstIncompleteDate?: (string) | null;
33186
+ /**
33187
+ * The same for hours, with dataState hourly_all when grouped by hour.
33188
+ */
33189
+ firstIncompleteHour?: (string) | null;
33172
33190
  };
33173
33191
  });
33174
33192
  type QueryGoogleSearchConsoleSearchAnalyticsError = (ErrorResponse | unknown | {
package/dist/index.d.ts CHANGED
@@ -33099,29 +33099,39 @@ type QueryGoogleSearchConsoleSearchAnalyticsData = {
33099
33099
  accountId: string;
33100
33100
  fromDate?: string;
33101
33101
  toDate?: string;
33102
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
33102
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
33103
33103
  /**
33104
- * Which Google surface to read. Defaults to `web`.
33104
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
33105
33105
  */
33106
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
33106
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
33107
33107
  dimensionFilterGroups?: Array<{
33108
33108
  groupType?: 'and';
33109
- filters: Array<{
33109
+ filters?: Array<{
33110
33110
  /**
33111
- * Narrow dates with startDate and endDate instead.
33111
+ * Narrow dates with fromDate and toDate instead.
33112
33112
  */
33113
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
33113
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
33114
33114
  /**
33115
33115
  * Defaults to `equals`.
33116
33116
  */
33117
33117
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
33118
33118
  /**
33119
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
33119
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
33120
33120
  */
33121
33121
  expression: string;
33122
33122
  }>;
33123
+ /**
33124
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
33125
+ */
33126
+ filterLists?: Array<{
33127
+ dimension: 'country' | 'device';
33128
+ expressions: Array<(string)>;
33129
+ }>;
33123
33130
  }>;
33124
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
33131
+ /**
33132
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
33133
+ */
33134
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
33125
33135
  /**
33126
33136
  * Defaults to 1000.
33127
33137
  */
@@ -33169,6 +33179,14 @@ type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
33169
33179
  fromDate?: string;
33170
33180
  toDate?: string;
33171
33181
  aggregationType?: (string) | null;
33182
+ /**
33183
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
33184
+ */
33185
+ firstIncompleteDate?: (string) | null;
33186
+ /**
33187
+ * The same for hours, with dataState hourly_all when grouped by hour.
33188
+ */
33189
+ firstIncompleteHour?: (string) | null;
33172
33190
  };
33173
33191
  });
33174
33192
  type QueryGoogleSearchConsoleSearchAnalyticsError = (ErrorResponse | unknown | {
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1709",
39
+ version: "0.2.1710",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1709",
8
+ version: "0.2.1710",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1709",
3
+ "version": "0.2.1710",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1321,7 +1321,11 @@ export const getGoogleAnalyticsMetadata = <ThrowOnError extends boolean = false>
1321
1321
  * Query Google Search Console search analytics
1322
1322
  * Clicks, impressions, CTR and average position from Google Search for a connected Search Console site, through Google's `searchAnalytics.query`.
1323
1323
  *
1324
- * Group by any of `date`, `hour`, `query`, `page`, `country`, `device` and `searchAppearance`, and filter with Google's own filter groups. With no dimensions you get one row with the site's totals.
1324
+ * Group by any of `date`, `hour`, `query`, `page`, `country`, `device`, `searchAppearance` and `brandedClassification`, and filter with Google's own filter groups. With no dimensions you get one row with the site's totals.
1325
+ *
1326
+ * ### Branded queries
1327
+ *
1328
+ * `brandedClassification` splits searches into `BRANDED` and `NON_BRANDED`. Google has it from February 21, 2026, and only for sites with enough search volume. As a filter it takes `equals` only and cannot be combined with a `query` filter.
1325
1329
  *
1326
1330
  * ### Dates
1327
1331
  *
@@ -32002,29 +32002,39 @@ export type QueryGoogleSearchConsoleSearchAnalyticsData = {
32002
32002
  accountId: string;
32003
32003
  fromDate?: string;
32004
32004
  toDate?: string;
32005
- dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance')>;
32005
+ dimensions?: Array<('date' | 'hour' | 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification')>;
32006
32006
  /**
32007
- * Which Google surface to read. Defaults to `web`.
32007
+ * Which Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
32008
32008
  */
32009
- type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
32009
+ type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews' | 'webMultimodal';
32010
32010
  dimensionFilterGroups?: Array<{
32011
32011
  groupType?: 'and';
32012
- filters: Array<{
32012
+ filters?: Array<{
32013
32013
  /**
32014
- * Narrow dates with startDate and endDate instead.
32014
+ * Narrow dates with fromDate and toDate instead.
32015
32015
  */
32016
- dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance';
32016
+ dimension: 'query' | 'page' | 'country' | 'device' | 'searchAppearance' | 'brandedClassification';
32017
32017
  /**
32018
32018
  * Defaults to `equals`.
32019
32019
  */
32020
32020
  operator?: 'equals' | 'notEquals' | 'contains' | 'notContains' | 'includingRegex' | 'excludingRegex';
32021
32021
  /**
32022
- * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`.
32022
+ * The value to match. Countries are ISO 3166-1 alpha-3 codes (`usa`), devices `DESKTOP`, `MOBILE` or `TABLET`, brandedClassification `BRANDED` or `NON_BRANDED`.
32023
32023
  */
32024
32024
  expression: string;
32025
32025
  }>;
32026
+ /**
32027
+ * Matches a row whose value is any of the expressions. A dimension goes in filters or in filterLists, not both.
32028
+ */
32029
+ filterLists?: Array<{
32030
+ dimension: 'country' | 'device';
32031
+ expressions: Array<(string)>;
32032
+ }>;
32026
32033
  }>;
32027
- aggregationType?: 'auto' | 'byPage' | 'byProperty';
32034
+ /**
32035
+ * byNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
32036
+ */
32037
+ aggregationType?: 'auto' | 'byPage' | 'byProperty' | 'byNewsShowcasePanel';
32028
32038
  /**
32029
32039
  * Defaults to 1000.
32030
32040
  */
@@ -32073,6 +32083,14 @@ export type QueryGoogleSearchConsoleSearchAnalyticsResponse = ({
32073
32083
  fromDate?: string;
32074
32084
  toDate?: string;
32075
32085
  aggregationType?: (string) | null;
32086
+ /**
32087
+ * From this Pacific day on the numbers can still change. Sent with dataState all when grouped by date.
32088
+ */
32089
+ firstIncompleteDate?: (string) | null;
32090
+ /**
32091
+ * The same for hours, with dataState hourly_all when grouped by hour.
32092
+ */
32093
+ firstIncompleteHour?: (string) | null;
32076
32094
  };
32077
32095
  });
32078
32096