@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20240401 → 0.0.20240403

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 +237 -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: 20240401
12
+ // Revision: 20240403
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -903,6 +903,28 @@ declare namespace gapi.client {
903
903
  /** Required. The Filter Expression that defines the Grouping Rule. */
904
904
  expression?: GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression;
905
905
  }
906
+ interface GoogleAnalyticsAdminV1alphaKeyEvent {
907
+ /** Required. The method by which Key Events will be counted across multiple events within a session. */
908
+ countingMethod?: string;
909
+ /** Output only. Time when this key event was created in the property. */
910
+ createTime?: string;
911
+ /** Output only. If set to true, this key event refers to a custom event. If set to false, this key event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom key events that may be created per property. */
912
+ custom?: boolean;
913
+ /** Optional. Defines a default value/currency for a key event. */
914
+ defaultValue?: GoogleAnalyticsAdminV1alphaKeyEventDefaultValue;
915
+ /** Output only. If set to true, this event can be deleted. */
916
+ deletable?: boolean;
917
+ /** Immutable. The event name for this key event. Examples: 'click', 'purchase' */
918
+ eventName?: string;
919
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
920
+ name?: string;
921
+ }
922
+ interface GoogleAnalyticsAdminV1alphaKeyEventDefaultValue {
923
+ /** Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information. */
924
+ currencyCode?: string;
925
+ /** Required. This will be used to populate the "value" parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset. */
926
+ numericValue?: number;
927
+ }
906
928
  interface GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails {
907
929
  /** Output only. The source of this proposal. */
908
930
  linkProposalInitiatingProduct?: string;
@@ -1027,6 +1049,12 @@ declare namespace gapi.client {
1027
1049
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1028
1050
  nextPageToken?: string;
1029
1051
  }
1052
+ interface GoogleAnalyticsAdminV1alphaListKeyEventsResponse {
1053
+ /** The requested Key Events */
1054
+ keyEvents?: GoogleAnalyticsAdminV1alphaKeyEvent[];
1055
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1056
+ nextPageToken?: string;
1057
+ }
1030
1058
  interface GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse {
1031
1059
  /** A list of secrets for the parent stream specified in the request. */
1032
1060
  measurementProtocolSecrets?: GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret[];
@@ -6040,6 +6068,213 @@ declare namespace gapi.client {
6040
6068
  body: GoogleAnalyticsAdminV1alphaGoogleAdsLink
6041
6069
  ): Request<GoogleAnalyticsAdminV1alphaGoogleAdsLink>;
6042
6070
  }
6071
+ interface KeyEventsResource {
6072
+ /** Creates a Key Event. */
6073
+ create(request: {
6074
+ /** V1 error format. */
6075
+ '$.xgafv'?: string;
6076
+ /** OAuth access token. */
6077
+ access_token?: string;
6078
+ /** Data format for response. */
6079
+ alt?: string;
6080
+ /** JSONP */
6081
+ callback?: string;
6082
+ /** Selector specifying which fields to include in a partial response. */
6083
+ fields?: string;
6084
+ /** 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. */
6085
+ key?: string;
6086
+ /** OAuth 2.0 token for the current user. */
6087
+ oauth_token?: string;
6088
+ /** Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 */
6089
+ parent: string;
6090
+ /** Returns response with indentations and line breaks. */
6091
+ prettyPrint?: boolean;
6092
+ /** 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. */
6093
+ quotaUser?: string;
6094
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6095
+ upload_protocol?: string;
6096
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6097
+ uploadType?: string;
6098
+ /** Request body */
6099
+ resource: GoogleAnalyticsAdminV1alphaKeyEvent;
6100
+ }): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6101
+ create(
6102
+ request: {
6103
+ /** V1 error format. */
6104
+ '$.xgafv'?: string;
6105
+ /** OAuth access token. */
6106
+ access_token?: string;
6107
+ /** Data format for response. */
6108
+ alt?: string;
6109
+ /** JSONP */
6110
+ callback?: string;
6111
+ /** Selector specifying which fields to include in a partial response. */
6112
+ fields?: string;
6113
+ /** 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. */
6114
+ key?: string;
6115
+ /** OAuth 2.0 token for the current user. */
6116
+ oauth_token?: string;
6117
+ /** Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 */
6118
+ parent: string;
6119
+ /** Returns response with indentations and line breaks. */
6120
+ prettyPrint?: boolean;
6121
+ /** 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. */
6122
+ quotaUser?: string;
6123
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6124
+ upload_protocol?: string;
6125
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6126
+ uploadType?: string;
6127
+ },
6128
+ body: GoogleAnalyticsAdminV1alphaKeyEvent
6129
+ ): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6130
+ /** Deletes a Key Event. */
6131
+ delete(request?: {
6132
+ /** V1 error format. */
6133
+ '$.xgafv'?: string;
6134
+ /** OAuth access token. */
6135
+ access_token?: string;
6136
+ /** Data format for response. */
6137
+ alt?: string;
6138
+ /** JSONP */
6139
+ callback?: string;
6140
+ /** Selector specifying which fields to include in a partial response. */
6141
+ fields?: string;
6142
+ /** 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. */
6143
+ key?: string;
6144
+ /** Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" */
6145
+ name: string;
6146
+ /** OAuth 2.0 token for the current user. */
6147
+ oauth_token?: string;
6148
+ /** Returns response with indentations and line breaks. */
6149
+ prettyPrint?: boolean;
6150
+ /** 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. */
6151
+ quotaUser?: string;
6152
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6153
+ upload_protocol?: string;
6154
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6155
+ uploadType?: string;
6156
+ }): Request<{}>;
6157
+ /** Retrieve a single Key Event. */
6158
+ get(request?: {
6159
+ /** V1 error format. */
6160
+ '$.xgafv'?: string;
6161
+ /** OAuth access token. */
6162
+ access_token?: string;
6163
+ /** Data format for response. */
6164
+ alt?: string;
6165
+ /** JSONP */
6166
+ callback?: string;
6167
+ /** Selector specifying which fields to include in a partial response. */
6168
+ fields?: string;
6169
+ /** 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. */
6170
+ key?: string;
6171
+ /** Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" */
6172
+ name: string;
6173
+ /** OAuth 2.0 token for the current user. */
6174
+ oauth_token?: string;
6175
+ /** Returns response with indentations and line breaks. */
6176
+ prettyPrint?: boolean;
6177
+ /** 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. */
6178
+ quotaUser?: string;
6179
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6180
+ upload_protocol?: string;
6181
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6182
+ uploadType?: string;
6183
+ }): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6184
+ /** Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found. */
6185
+ list(request?: {
6186
+ /** V1 error format. */
6187
+ '$.xgafv'?: string;
6188
+ /** OAuth access token. */
6189
+ access_token?: string;
6190
+ /** Data format for response. */
6191
+ alt?: string;
6192
+ /** JSONP */
6193
+ callback?: string;
6194
+ /** Selector specifying which fields to include in a partial response. */
6195
+ fields?: string;
6196
+ /** 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. */
6197
+ key?: string;
6198
+ /** OAuth 2.0 token for the current user. */
6199
+ oauth_token?: string;
6200
+ /** 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) */
6201
+ pageSize?: number;
6202
+ /** A page token, received from a previous `ListKeyEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListKeyEvents` must match the call that provided the page token. */
6203
+ pageToken?: string;
6204
+ /** Required. The resource name of the parent property. Example: 'properties/123' */
6205
+ parent: string;
6206
+ /** Returns response with indentations and line breaks. */
6207
+ prettyPrint?: boolean;
6208
+ /** 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. */
6209
+ quotaUser?: string;
6210
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6211
+ upload_protocol?: string;
6212
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6213
+ uploadType?: string;
6214
+ }): Request<GoogleAnalyticsAdminV1alphaListKeyEventsResponse>;
6215
+ /** Updates a Key Event. */
6216
+ patch(request: {
6217
+ /** V1 error format. */
6218
+ '$.xgafv'?: string;
6219
+ /** OAuth access token. */
6220
+ access_token?: string;
6221
+ /** Data format for response. */
6222
+ alt?: string;
6223
+ /** JSONP */
6224
+ callback?: string;
6225
+ /** Selector specifying which fields to include in a partial response. */
6226
+ fields?: string;
6227
+ /** 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. */
6228
+ key?: string;
6229
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
6230
+ name: string;
6231
+ /** OAuth 2.0 token for the current user. */
6232
+ oauth_token?: string;
6233
+ /** Returns response with indentations and line breaks. */
6234
+ prettyPrint?: boolean;
6235
+ /** 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. */
6236
+ quotaUser?: string;
6237
+ /** Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
6238
+ updateMask?: string;
6239
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6240
+ upload_protocol?: string;
6241
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6242
+ uploadType?: string;
6243
+ /** Request body */
6244
+ resource: GoogleAnalyticsAdminV1alphaKeyEvent;
6245
+ }): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6246
+ patch(
6247
+ request: {
6248
+ /** V1 error format. */
6249
+ '$.xgafv'?: string;
6250
+ /** OAuth access token. */
6251
+ access_token?: string;
6252
+ /** Data format for response. */
6253
+ alt?: string;
6254
+ /** JSONP */
6255
+ callback?: string;
6256
+ /** Selector specifying which fields to include in a partial response. */
6257
+ fields?: string;
6258
+ /** 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. */
6259
+ key?: string;
6260
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
6261
+ name: string;
6262
+ /** OAuth 2.0 token for the current user. */
6263
+ oauth_token?: string;
6264
+ /** Returns response with indentations and line breaks. */
6265
+ prettyPrint?: boolean;
6266
+ /** 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. */
6267
+ quotaUser?: string;
6268
+ /** Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
6269
+ updateMask?: string;
6270
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6271
+ upload_protocol?: string;
6272
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6273
+ uploadType?: string;
6274
+ },
6275
+ body: GoogleAnalyticsAdminV1alphaKeyEvent
6276
+ ): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6277
+ }
6043
6278
  interface RollupPropertySourceLinksResource {
6044
6279
  /** Creates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties. */
6045
6280
  create(request: {
@@ -7606,6 +7841,7 @@ declare namespace gapi.client {
7606
7841
  expandedDataSets: ExpandedDataSetsResource;
7607
7842
  firebaseLinks: FirebaseLinksResource;
7608
7843
  googleAdsLinks: GoogleAdsLinksResource;
7844
+ keyEvents: KeyEventsResource;
7609
7845
  rollupPropertySourceLinks: RollupPropertySourceLinksResource;
7610
7846
  searchAds360Links: SearchAds360LinksResource;
7611
7847
  subpropertyEventFilters: SubpropertyEventFiltersResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20240401",
3
+ "version": "0.0.20240403",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",