@maxim_mazurok/gapi.client.analyticsdata-v1beta 0.0.20240507 → 0.0.20240512

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.
Files changed (2) hide show
  1. package/index.d.ts +23 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://analyticsdata.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20240507
12
+ // Revision: 20240512
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -133,6 +133,22 @@ declare namespace gapi.client {
133
133
  /** `startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward. If `granularity` is `DAILY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset` days. If `granularity` is `WEEKLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 7` days. If `granularity` is `MONTHLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 30` days. */
134
134
  startOffset?: number;
135
135
  }
136
+ interface Comparison {
137
+ /** A saved comparison identified by the comparison's resource name. For example, 'comparisons/1234'. */
138
+ comparison?: string;
139
+ /** A basic comparison. */
140
+ dimensionFilter?: FilterExpression;
141
+ /** Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name. */
142
+ name?: string;
143
+ }
144
+ interface ComparisonMetadata {
145
+ /** This comparison's resource name. Useable in [Comparison](#Comparison)'s `comparison` field. For example, 'comparisons/1234'. */
146
+ apiName?: string;
147
+ /** This comparison's description. */
148
+ description?: string;
149
+ /** This comparison's name within the Google Analytics user interface. */
150
+ uiName?: string;
151
+ }
136
152
  interface ConcatenateExpression {
137
153
  /** The delimiter placed between dimension names. Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP". */
138
154
  delimiter?: string;
@@ -234,6 +250,8 @@ declare namespace gapi.client {
234
250
  nextPageToken?: string;
235
251
  }
236
252
  interface Metadata {
253
+ /** The comparison descriptions. */
254
+ comparisons?: ComparisonMetadata[];
237
255
  /** The dimension descriptions. */
238
256
  dimensions?: DimensionMetadata[];
239
257
  /** The metric descriptions. */
@@ -424,6 +442,8 @@ declare namespace gapi.client {
424
442
  interface RunPivotReportRequest {
425
443
  /** Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. */
426
444
  cohortSpec?: CohortSpec;
445
+ /** Optional. The configuration of comparisons requested and displayed. The request requires both a comparisons field and a comparisons dimension to receive a comparison column in the response. */
446
+ comparisons?: Comparison[];
427
447
  /** A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the property's default currency. */
428
448
  currencyCode?: string;
429
449
  /** The date range to retrieve event data for the report. If multiple date ranges are specified, event data from each date range is used in the report. A special dimension with field name "dateRange" can be included in a Pivot's field names; if included, the report compares between date ranges. In a cohort request, this `dateRanges` must be unspecified. */
@@ -506,6 +526,8 @@ declare namespace gapi.client {
506
526
  interface RunReportRequest {
507
527
  /** Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. */
508
528
  cohortSpec?: CohortSpec;
529
+ /** Optional. The configuration of comparisons requested and displayed. The request only requires a comparisons field in order to receive a comparison column in the response. */
530
+ comparisons?: Comparison[];
509
531
  /** A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the property's default currency. */
510
532
  currencyCode?: string;
511
533
  /** Date ranges of data to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the event data for the overlapping days is included in the response rows for both date ranges. In a cohort request, this `dateRanges` must be unspecified. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsdata-v1beta",
3
- "version": "0.0.20240507",
3
+ "version": "0.0.20240512",
4
4
  "description": "TypeScript typings for Google Analytics Data API v1beta",
5
5
  "repository": {
6
6
  "type": "git",