@google-analytics/data 4.6.0 → 4.8.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/CHANGELOG.md +15 -0
- package/build/protos/google/analytics/data/v1beta/analytics_data_api.proto +13 -0
- package/build/protos/google/analytics/data/v1beta/data.proto +37 -1
- package/build/protos/protos.d.ts +242 -0
- package/build/protos/protos.js +676 -0
- package/build/protos/protos.json +69 -0
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +0 -1
- package/build/src/v1beta/beta_analytics_data_client.d.ts +8 -1
- package/package.json +2 -2
package/build/protos/protos.json
CHANGED
|
@@ -4373,6 +4373,11 @@
|
|
|
4373
4373
|
"rule": "repeated",
|
|
4374
4374
|
"type": "MetricMetadata",
|
|
4375
4375
|
"id": 2
|
|
4376
|
+
},
|
|
4377
|
+
"comparisons": {
|
|
4378
|
+
"rule": "repeated",
|
|
4379
|
+
"type": "ComparisonMetadata",
|
|
4380
|
+
"id": 4
|
|
4376
4381
|
}
|
|
4377
4382
|
}
|
|
4378
4383
|
},
|
|
@@ -4438,6 +4443,14 @@
|
|
|
4438
4443
|
"returnPropertyQuota": {
|
|
4439
4444
|
"type": "bool",
|
|
4440
4445
|
"id": 14
|
|
4446
|
+
},
|
|
4447
|
+
"comparisons": {
|
|
4448
|
+
"rule": "repeated",
|
|
4449
|
+
"type": "Comparison",
|
|
4450
|
+
"id": 15,
|
|
4451
|
+
"options": {
|
|
4452
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4453
|
+
}
|
|
4441
4454
|
}
|
|
4442
4455
|
}
|
|
4443
4456
|
},
|
|
@@ -4540,6 +4553,14 @@
|
|
|
4540
4553
|
"returnPropertyQuota": {
|
|
4541
4554
|
"type": "bool",
|
|
4542
4555
|
"id": 11
|
|
4556
|
+
},
|
|
4557
|
+
"comparisons": {
|
|
4558
|
+
"rule": "repeated",
|
|
4559
|
+
"type": "Comparison",
|
|
4560
|
+
"id": 12,
|
|
4561
|
+
"options": {
|
|
4562
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
4563
|
+
}
|
|
4543
4564
|
}
|
|
4544
4565
|
}
|
|
4545
4566
|
},
|
|
@@ -5170,6 +5191,38 @@
|
|
|
5170
5191
|
}
|
|
5171
5192
|
}
|
|
5172
5193
|
},
|
|
5194
|
+
"Comparison": {
|
|
5195
|
+
"oneofs": {
|
|
5196
|
+
"_name": {
|
|
5197
|
+
"oneof": [
|
|
5198
|
+
"name"
|
|
5199
|
+
]
|
|
5200
|
+
},
|
|
5201
|
+
"oneComparison": {
|
|
5202
|
+
"oneof": [
|
|
5203
|
+
"dimensionFilter",
|
|
5204
|
+
"comparison"
|
|
5205
|
+
]
|
|
5206
|
+
}
|
|
5207
|
+
},
|
|
5208
|
+
"fields": {
|
|
5209
|
+
"name": {
|
|
5210
|
+
"type": "string",
|
|
5211
|
+
"id": 1,
|
|
5212
|
+
"options": {
|
|
5213
|
+
"proto3_optional": true
|
|
5214
|
+
}
|
|
5215
|
+
},
|
|
5216
|
+
"dimensionFilter": {
|
|
5217
|
+
"type": "FilterExpression",
|
|
5218
|
+
"id": 2
|
|
5219
|
+
},
|
|
5220
|
+
"comparison": {
|
|
5221
|
+
"type": "string",
|
|
5222
|
+
"id": 3
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
},
|
|
5173
5226
|
"FilterExpression": {
|
|
5174
5227
|
"oneofs": {
|
|
5175
5228
|
"expr": {
|
|
@@ -5872,6 +5925,22 @@
|
|
|
5872
5925
|
}
|
|
5873
5926
|
}
|
|
5874
5927
|
},
|
|
5928
|
+
"ComparisonMetadata": {
|
|
5929
|
+
"fields": {
|
|
5930
|
+
"apiName": {
|
|
5931
|
+
"type": "string",
|
|
5932
|
+
"id": 1
|
|
5933
|
+
},
|
|
5934
|
+
"uiName": {
|
|
5935
|
+
"type": "string",
|
|
5936
|
+
"id": 2
|
|
5937
|
+
},
|
|
5938
|
+
"description": {
|
|
5939
|
+
"type": "string",
|
|
5940
|
+
"id": 3
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
},
|
|
5875
5944
|
"DimensionCompatibility": {
|
|
5876
5945
|
"oneofs": {
|
|
5877
5946
|
"_dimensionMetadata": {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type * as gax from 'google-gax';
|
|
3
2
|
import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
|
|
4
3
|
import { Transform } from 'stream';
|
|
@@ -206,6 +205,10 @@ export declare class BetaAnalyticsDataClient {
|
|
|
206
205
|
* @param {boolean} request.returnPropertyQuota
|
|
207
206
|
* Toggles whether to return the current state of this Analytics Property's
|
|
208
207
|
* quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
|
208
|
+
* @param {number[]} [request.comparisons]
|
|
209
|
+
* Optional. The configuration of comparisons requested and displayed. The
|
|
210
|
+
* request only requires a comparisons field in order to receive a comparison
|
|
211
|
+
* column in the response.
|
|
209
212
|
* @param {object} [options]
|
|
210
213
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
211
214
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -285,6 +288,10 @@ export declare class BetaAnalyticsDataClient {
|
|
|
285
288
|
* @param {boolean} request.returnPropertyQuota
|
|
286
289
|
* Toggles whether to return the current state of this Analytics Property's
|
|
287
290
|
* quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
|
291
|
+
* @param {number[]} [request.comparisons]
|
|
292
|
+
* Optional. The configuration of comparisons requested and displayed. The
|
|
293
|
+
* request requires both a comparisons field and a comparisons dimension to
|
|
294
|
+
* receive a comparison column in the response.
|
|
288
295
|
* @param {object} [options]
|
|
289
296
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
290
297
|
* @returns {Promise} - The promise which resolves to an array.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-analytics/data",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Data client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"long": "^5.2.3",
|
|
62
62
|
"mocha": "^9.2.2",
|
|
63
63
|
"pack-n-play": "^2.0.0",
|
|
64
|
-
"sinon": "^
|
|
64
|
+
"sinon": "^18.0.0",
|
|
65
65
|
"typescript": "^5.1.6"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|