@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230413 → 0.0.20230416

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/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://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20230413
12
+ // Revision: 20230416
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -938,6 +938,10 @@ declare namespace gapi.client {
938
938
  /** The opt out status for the UA property. */
939
939
  optOut?: boolean;
940
940
  }
941
+ interface GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse {
942
+ /** The GA4 property connected to the UA property. An empty string is returned when there is no connected GA4 property. Format: properties/{property_id} Example: properties/1234 */
943
+ property?: string;
944
+ }
941
945
  interface GoogleAnalyticsAdminV1alphaFirebaseLink {
942
946
  /** Output only. Time when this FirebaseLink was originally created. */
943
947
  createTime?: string;
@@ -6811,6 +6815,36 @@ declare namespace gapi.client {
6811
6815
  uploadType?: string;
6812
6816
  },
6813
6817
  body: GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest): Request<GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse>;
6818
+ /** Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties. */
6819
+ fetchConnectedGa4Property(request?: {
6820
+ /** V1 error format. */
6821
+ "$.xgafv"?: string;
6822
+ /** OAuth access token. */
6823
+ access_token?: string;
6824
+ /** Data format for response. */
6825
+ alt?: string;
6826
+ /** JSONP */
6827
+ callback?: string;
6828
+ /** Selector specifying which fields to include in a partial response. */
6829
+ fields?: string;
6830
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6831
+ key?: string;
6832
+ /** OAuth 2.0 token for the current user. */
6833
+ oauth_token?: string;
6834
+ /** Returns response with indentations and line breaks. */
6835
+ prettyPrint?: boolean;
6836
+ /**
6837
+ * Required. The UA property for which to look up the connected GA4 property. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format:
6838
+ * properties/{internal_web_property_id} Example: properties/1234
6839
+ */
6840
+ property?: string;
6841
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6842
+ quotaUser?: string;
6843
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6844
+ upload_protocol?: string;
6845
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6846
+ uploadType?: string;
6847
+ }): Request<GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse>;
6814
6848
  /** Lookup for a single "GA4" Property. */
6815
6849
  get(request?: {
6816
6850
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20230413",
3
+ "version": "0.0.20230416",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -150,6 +150,11 @@ Fetches the opt out status for the automated GA4 setup process for a UA property
150
150
  */
151
151
  await gapi.client.analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut({ });
152
152
 
153
+ /*
154
+ Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties.
155
+ */
156
+ await gapi.client.analyticsadmin.properties.fetchConnectedGa4Property({ });
157
+
153
158
  /*
154
159
  Lookup for a single "GA4" Property.
155
160
  */
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230413
6
+ // Revision: 20230416
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -470,6 +470,10 @@ gapi.load('client', async () => {
470
470
  }, {
471
471
  property: "Test string",
472
472
  });
473
+ /** Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties. */
474
+ await gapi.client.analyticsadmin.properties.fetchConnectedGa4Property({
475
+ property: "Test string",
476
+ });
473
477
  /** Lookup for a single "GA4" Property. */
474
478
  await gapi.client.analyticsadmin.properties.get({
475
479
  name: "Test string",