@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20240110 → 0.0.20240115

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 +239 -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://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20240110
12
+ // Revision: 20240115
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -385,6 +385,24 @@ declare namespace gapi.client {
385
385
  /** If set true, enables streaming export to the linked Google Cloud project. */
386
386
  streamingExportEnabled?: boolean;
387
387
  }
388
+ interface GoogleAnalyticsAdminV1alphaCalculatedMetric {
389
+ /** Output only. The ID to use for the calculated metric. In the UI, this is referred to as the "API name." The calculated_metric_id is used when referencing this calculated metric from external APIs. For example, "calcMetric:{calculated_metric_id}". */
390
+ calculatedMetricId?: string;
391
+ /** Optional. Description for this calculated metric. Max length of 4096 characters. */
392
+ description?: string;
393
+ /** Required. Display name for this calculated metric as shown in the Google Analytics UI. Max length 82 characters. */
394
+ displayName?: string;
395
+ /** Required. The calculated metric's definition. Maximum number of unique referenced custom metrics is 5. Formulas supports the following operations: + (addition), - (subtraction), - (negative), * (multiplication), / (division), () (parenthesis). Any valid real numbers are acceptable that fit in a Long (64bit integer) or a Double (64 bit floating point number). Example formula: "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" */
396
+ formula?: string;
397
+ /** Output only. If true, this calculated metric has a invalid metric reference. Anything using a calculated metric with invalid_metric_reference set to true may fail, produce warnings, or produce unexpected results. */
398
+ invalidMetricReference?: boolean;
399
+ /** Required. The type for the calculated metric's value. */
400
+ metricUnit?: string;
401
+ /** Output only. Resource name for this CalculatedMetric. Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' */
402
+ name?: string;
403
+ /** Output only. Types of restricted data that this metric contains. */
404
+ restrictedMetricType?: string[];
405
+ }
388
406
  interface GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest {}
389
407
  interface GoogleAnalyticsAdminV1alphaChangeHistoryChange {
390
408
  /** The type of action that changed this resource. */
@@ -407,6 +425,8 @@ declare namespace gapi.client {
407
425
  audience?: GoogleAnalyticsAdminV1alphaAudience;
408
426
  /** A snapshot of a BigQuery link resource in change history. */
409
427
  bigqueryLink?: GoogleAnalyticsAdminV1alphaBigQueryLink;
428
+ /** A snapshot of a CalculatedMetric resource in change history. */
429
+ calculatedMetric?: GoogleAnalyticsAdminV1alphaCalculatedMetric;
410
430
  /** A snapshot of a ChannelGroup resource in change history. */
411
431
  channelGroup?: GoogleAnalyticsAdminV1alphaChannelGroup;
412
432
  /** A snapshot of a ConversionEvent resource in change history. */
@@ -923,6 +943,12 @@ declare namespace gapi.client {
923
943
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
924
944
  nextPageToken?: string;
925
945
  }
946
+ interface GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse {
947
+ /** List of CalculatedMetrics. */
948
+ calculatedMetrics?: GoogleAnalyticsAdminV1alphaCalculatedMetric[];
949
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
950
+ nextPageToken?: string;
951
+ }
926
952
  interface GoogleAnalyticsAdminV1alphaListChannelGroupsResponse {
927
953
  /** List of ChannelGroup. These will be ordered stably, but in an arbitrary order. */
928
954
  channelGroups?: GoogleAnalyticsAdminV1alphaChannelGroup[];
@@ -2900,6 +2926,217 @@ declare namespace gapi.client {
2900
2926
  uploadType?: string;
2901
2927
  }): Request<GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse>;
2902
2928
  }
2929
+ interface CalculatedMetricsResource {
2930
+ /** Creates a CalculatedMetric. */
2931
+ create(request: {
2932
+ /** V1 error format. */
2933
+ '$.xgafv'?: string;
2934
+ /** OAuth access token. */
2935
+ access_token?: string;
2936
+ /** Data format for response. */
2937
+ alt?: string;
2938
+ /** Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name. This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}". */
2939
+ calculatedMetricId?: string;
2940
+ /** JSONP */
2941
+ callback?: string;
2942
+ /** Selector specifying which fields to include in a partial response. */
2943
+ fields?: string;
2944
+ /** 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. */
2945
+ key?: string;
2946
+ /** OAuth 2.0 token for the current user. */
2947
+ oauth_token?: string;
2948
+ /** Required. Format: properties/{property_id} Example: properties/1234 */
2949
+ parent: string;
2950
+ /** Returns response with indentations and line breaks. */
2951
+ prettyPrint?: boolean;
2952
+ /** 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. */
2953
+ quotaUser?: string;
2954
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2955
+ upload_protocol?: string;
2956
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2957
+ uploadType?: string;
2958
+ /** Request body */
2959
+ resource: GoogleAnalyticsAdminV1alphaCalculatedMetric;
2960
+ }): Request<GoogleAnalyticsAdminV1alphaCalculatedMetric>;
2961
+ create(
2962
+ request: {
2963
+ /** V1 error format. */
2964
+ '$.xgafv'?: string;
2965
+ /** OAuth access token. */
2966
+ access_token?: string;
2967
+ /** Data format for response. */
2968
+ alt?: string;
2969
+ /** Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name. This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}". */
2970
+ calculatedMetricId?: string;
2971
+ /** JSONP */
2972
+ callback?: string;
2973
+ /** Selector specifying which fields to include in a partial response. */
2974
+ fields?: string;
2975
+ /** 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. */
2976
+ key?: string;
2977
+ /** OAuth 2.0 token for the current user. */
2978
+ oauth_token?: string;
2979
+ /** Required. Format: properties/{property_id} Example: properties/1234 */
2980
+ parent: string;
2981
+ /** Returns response with indentations and line breaks. */
2982
+ prettyPrint?: boolean;
2983
+ /** 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. */
2984
+ quotaUser?: string;
2985
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2986
+ upload_protocol?: string;
2987
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2988
+ uploadType?: string;
2989
+ },
2990
+ body: GoogleAnalyticsAdminV1alphaCalculatedMetric
2991
+ ): Request<GoogleAnalyticsAdminV1alphaCalculatedMetric>;
2992
+ /** Deletes a CalculatedMetric on a property. */
2993
+ delete(request?: {
2994
+ /** V1 error format. */
2995
+ '$.xgafv'?: string;
2996
+ /** OAuth access token. */
2997
+ access_token?: string;
2998
+ /** Data format for response. */
2999
+ alt?: string;
3000
+ /** JSONP */
3001
+ callback?: string;
3002
+ /** Selector specifying which fields to include in a partial response. */
3003
+ fields?: string;
3004
+ /** 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. */
3005
+ key?: string;
3006
+ /** Required. The name of the CalculatedMetric to delete. Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} Example: properties/1234/calculatedMetrics/Metric01 */
3007
+ name: string;
3008
+ /** OAuth 2.0 token for the current user. */
3009
+ oauth_token?: string;
3010
+ /** Returns response with indentations and line breaks. */
3011
+ prettyPrint?: boolean;
3012
+ /** 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. */
3013
+ quotaUser?: string;
3014
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3015
+ upload_protocol?: string;
3016
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3017
+ uploadType?: string;
3018
+ }): Request<{}>;
3019
+ /** Lookup for a single CalculatedMetric. */
3020
+ get(request?: {
3021
+ /** V1 error format. */
3022
+ '$.xgafv'?: string;
3023
+ /** OAuth access token. */
3024
+ access_token?: string;
3025
+ /** Data format for response. */
3026
+ alt?: string;
3027
+ /** JSONP */
3028
+ callback?: string;
3029
+ /** Selector specifying which fields to include in a partial response. */
3030
+ fields?: string;
3031
+ /** 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. */
3032
+ key?: string;
3033
+ /** Required. The name of the CalculatedMetric to get. Format: properties/{property_id}/calculatedMetrics/{calculated_metric_id} Example: properties/1234/calculatedMetrics/Metric01 */
3034
+ name: string;
3035
+ /** OAuth 2.0 token for the current user. */
3036
+ oauth_token?: string;
3037
+ /** Returns response with indentations and line breaks. */
3038
+ prettyPrint?: boolean;
3039
+ /** 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. */
3040
+ quotaUser?: string;
3041
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3042
+ upload_protocol?: string;
3043
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3044
+ uploadType?: string;
3045
+ }): Request<GoogleAnalyticsAdminV1alphaCalculatedMetric>;
3046
+ /** Lists CalculatedMetrics on a property. */
3047
+ list(request?: {
3048
+ /** V1 error format. */
3049
+ '$.xgafv'?: string;
3050
+ /** OAuth access token. */
3051
+ access_token?: string;
3052
+ /** Data format for response. */
3053
+ alt?: string;
3054
+ /** JSONP */
3055
+ callback?: string;
3056
+ /** Selector specifying which fields to include in a partial response. */
3057
+ fields?: string;
3058
+ /** 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. */
3059
+ key?: string;
3060
+ /** OAuth 2.0 token for the current user. */
3061
+ oauth_token?: string;
3062
+ /** Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
3063
+ pageSize?: number;
3064
+ /** Optional. A page token, received from a previous `ListCalculatedMetrics` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCalculatedMetrics` must match the call that provided the page token. */
3065
+ pageToken?: string;
3066
+ /** Required. Example format: properties/1234 */
3067
+ parent: string;
3068
+ /** Returns response with indentations and line breaks. */
3069
+ prettyPrint?: boolean;
3070
+ /** 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. */
3071
+ quotaUser?: string;
3072
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3073
+ upload_protocol?: string;
3074
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3075
+ uploadType?: string;
3076
+ }): Request<GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse>;
3077
+ /** Updates a CalculatedMetric on a property. */
3078
+ patch(request: {
3079
+ /** V1 error format. */
3080
+ '$.xgafv'?: string;
3081
+ /** OAuth access token. */
3082
+ access_token?: string;
3083
+ /** Data format for response. */
3084
+ alt?: string;
3085
+ /** JSONP */
3086
+ callback?: string;
3087
+ /** Selector specifying which fields to include in a partial response. */
3088
+ fields?: string;
3089
+ /** 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. */
3090
+ key?: string;
3091
+ /** Output only. Resource name for this CalculatedMetric. Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' */
3092
+ name: string;
3093
+ /** OAuth 2.0 token for the current user. */
3094
+ oauth_token?: string;
3095
+ /** Returns response with indentations and line breaks. */
3096
+ prettyPrint?: boolean;
3097
+ /** 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. */
3098
+ quotaUser?: string;
3099
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
3100
+ updateMask?: string;
3101
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3102
+ upload_protocol?: string;
3103
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3104
+ uploadType?: string;
3105
+ /** Request body */
3106
+ resource: GoogleAnalyticsAdminV1alphaCalculatedMetric;
3107
+ }): Request<GoogleAnalyticsAdminV1alphaCalculatedMetric>;
3108
+ patch(
3109
+ request: {
3110
+ /** V1 error format. */
3111
+ '$.xgafv'?: string;
3112
+ /** OAuth access token. */
3113
+ access_token?: string;
3114
+ /** Data format for response. */
3115
+ alt?: string;
3116
+ /** JSONP */
3117
+ callback?: string;
3118
+ /** Selector specifying which fields to include in a partial response. */
3119
+ fields?: string;
3120
+ /** 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. */
3121
+ key?: string;
3122
+ /** Output only. Resource name for this CalculatedMetric. Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' */
3123
+ name: string;
3124
+ /** OAuth 2.0 token for the current user. */
3125
+ oauth_token?: string;
3126
+ /** Returns response with indentations and line breaks. */
3127
+ prettyPrint?: boolean;
3128
+ /** 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. */
3129
+ quotaUser?: string;
3130
+ /** Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
3131
+ updateMask?: string;
3132
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3133
+ upload_protocol?: string;
3134
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3135
+ uploadType?: string;
3136
+ },
3137
+ body: GoogleAnalyticsAdminV1alphaCalculatedMetric
3138
+ ): Request<GoogleAnalyticsAdminV1alphaCalculatedMetric>;
3139
+ }
2903
3140
  interface ChannelGroupsResource {
2904
3141
  /** Creates a ChannelGroup. */
2905
3142
  create(request: {
@@ -7354,6 +7591,7 @@ declare namespace gapi.client {
7354
7591
  adSenseLinks: AdSenseLinksResource;
7355
7592
  audiences: AudiencesResource;
7356
7593
  bigQueryLinks: BigQueryLinksResource;
7594
+ calculatedMetrics: CalculatedMetricsResource;
7357
7595
  channelGroups: ChannelGroupsResource;
7358
7596
  conversionEvents: ConversionEventsResource;
7359
7597
  customDimensions: CustomDimensionsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20240110",
3
+ "version": "0.0.20240115",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",