@maxim_mazurok/gapi.client.analyticsadmin-v1beta 0.0.20240401 → 0.0.20240402

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=v1beta
12
- // Revision: 20240401
12
+ // Revision: 20240402
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -363,6 +363,28 @@ declare namespace gapi.client {
363
363
  /** Output only. Time when this link was last updated. */
364
364
  updateTime?: string;
365
365
  }
366
+ interface GoogleAnalyticsAdminV1betaKeyEvent {
367
+ /** Required. The method by which Key Events will be counted across multiple events within a session. */
368
+ countingMethod?: string;
369
+ /** Output only. Time when this key event was created in the property. */
370
+ createTime?: string;
371
+ /** 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. */
372
+ custom?: boolean;
373
+ /** Optional. Defines a default value/currency for a key event. */
374
+ defaultValue?: GoogleAnalyticsAdminV1betaKeyEventDefaultValue;
375
+ /** Output only. If set to true, this event can be deleted. */
376
+ deletable?: boolean;
377
+ /** Immutable. The event name for this key event. Examples: 'click', 'purchase' */
378
+ eventName?: string;
379
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
380
+ name?: string;
381
+ }
382
+ interface GoogleAnalyticsAdminV1betaKeyEventDefaultValue {
383
+ /** 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. */
384
+ currencyCode?: string;
385
+ /** 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. */
386
+ numericValue?: number;
387
+ }
366
388
  interface GoogleAnalyticsAdminV1betaListAccountsResponse {
367
389
  /** Results that were accessible to the caller. */
368
390
  accounts?: GoogleAnalyticsAdminV1betaAccount[];
@@ -411,6 +433,12 @@ declare namespace gapi.client {
411
433
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
412
434
  nextPageToken?: string;
413
435
  }
436
+ interface GoogleAnalyticsAdminV1betaListKeyEventsResponse {
437
+ /** The requested Key Events */
438
+ keyEvents?: GoogleAnalyticsAdminV1betaKeyEvent[];
439
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
440
+ nextPageToken?: string;
441
+ }
414
442
  interface GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse {
415
443
  /** A list of secrets for the parent stream specified in the request. */
416
444
  measurementProtocolSecrets?: GoogleAnalyticsAdminV1betaMeasurementProtocolSecret[];
@@ -2321,6 +2349,213 @@ declare namespace gapi.client {
2321
2349
  body: GoogleAnalyticsAdminV1betaGoogleAdsLink
2322
2350
  ): Request<GoogleAnalyticsAdminV1betaGoogleAdsLink>;
2323
2351
  }
2352
+ interface KeyEventsResource {
2353
+ /** Creates a Key Event. */
2354
+ create(request: {
2355
+ /** V1 error format. */
2356
+ '$.xgafv'?: string;
2357
+ /** OAuth access token. */
2358
+ access_token?: string;
2359
+ /** Data format for response. */
2360
+ alt?: string;
2361
+ /** JSONP */
2362
+ callback?: string;
2363
+ /** Selector specifying which fields to include in a partial response. */
2364
+ fields?: string;
2365
+ /** 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. */
2366
+ key?: string;
2367
+ /** OAuth 2.0 token for the current user. */
2368
+ oauth_token?: string;
2369
+ /** Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 */
2370
+ parent: string;
2371
+ /** Returns response with indentations and line breaks. */
2372
+ prettyPrint?: boolean;
2373
+ /** 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. */
2374
+ quotaUser?: string;
2375
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2376
+ upload_protocol?: string;
2377
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2378
+ uploadType?: string;
2379
+ /** Request body */
2380
+ resource: GoogleAnalyticsAdminV1betaKeyEvent;
2381
+ }): Request<GoogleAnalyticsAdminV1betaKeyEvent>;
2382
+ create(
2383
+ request: {
2384
+ /** V1 error format. */
2385
+ '$.xgafv'?: string;
2386
+ /** OAuth access token. */
2387
+ access_token?: string;
2388
+ /** Data format for response. */
2389
+ alt?: string;
2390
+ /** JSONP */
2391
+ callback?: string;
2392
+ /** Selector specifying which fields to include in a partial response. */
2393
+ fields?: string;
2394
+ /** 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. */
2395
+ key?: string;
2396
+ /** OAuth 2.0 token for the current user. */
2397
+ oauth_token?: string;
2398
+ /** Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 */
2399
+ parent: string;
2400
+ /** Returns response with indentations and line breaks. */
2401
+ prettyPrint?: boolean;
2402
+ /** 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. */
2403
+ quotaUser?: string;
2404
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2405
+ upload_protocol?: string;
2406
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2407
+ uploadType?: string;
2408
+ },
2409
+ body: GoogleAnalyticsAdminV1betaKeyEvent
2410
+ ): Request<GoogleAnalyticsAdminV1betaKeyEvent>;
2411
+ /** Deletes a Key Event. */
2412
+ delete(request?: {
2413
+ /** V1 error format. */
2414
+ '$.xgafv'?: string;
2415
+ /** OAuth access token. */
2416
+ access_token?: string;
2417
+ /** Data format for response. */
2418
+ alt?: string;
2419
+ /** JSONP */
2420
+ callback?: string;
2421
+ /** Selector specifying which fields to include in a partial response. */
2422
+ fields?: string;
2423
+ /** 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. */
2424
+ key?: string;
2425
+ /** Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" */
2426
+ name: string;
2427
+ /** OAuth 2.0 token for the current user. */
2428
+ oauth_token?: string;
2429
+ /** Returns response with indentations and line breaks. */
2430
+ prettyPrint?: boolean;
2431
+ /** 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. */
2432
+ quotaUser?: string;
2433
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2434
+ upload_protocol?: string;
2435
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2436
+ uploadType?: string;
2437
+ }): Request<{}>;
2438
+ /** Retrieve a single Key Event. */
2439
+ get(request?: {
2440
+ /** V1 error format. */
2441
+ '$.xgafv'?: string;
2442
+ /** OAuth access token. */
2443
+ access_token?: string;
2444
+ /** Data format for response. */
2445
+ alt?: string;
2446
+ /** JSONP */
2447
+ callback?: string;
2448
+ /** Selector specifying which fields to include in a partial response. */
2449
+ fields?: string;
2450
+ /** 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. */
2451
+ key?: string;
2452
+ /** Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" */
2453
+ name: string;
2454
+ /** OAuth 2.0 token for the current user. */
2455
+ oauth_token?: string;
2456
+ /** Returns response with indentations and line breaks. */
2457
+ prettyPrint?: boolean;
2458
+ /** 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. */
2459
+ quotaUser?: string;
2460
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2461
+ upload_protocol?: string;
2462
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2463
+ uploadType?: string;
2464
+ }): Request<GoogleAnalyticsAdminV1betaKeyEvent>;
2465
+ /** Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found. */
2466
+ list(request?: {
2467
+ /** V1 error format. */
2468
+ '$.xgafv'?: string;
2469
+ /** OAuth access token. */
2470
+ access_token?: string;
2471
+ /** Data format for response. */
2472
+ alt?: string;
2473
+ /** JSONP */
2474
+ callback?: string;
2475
+ /** Selector specifying which fields to include in a partial response. */
2476
+ fields?: string;
2477
+ /** 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. */
2478
+ key?: string;
2479
+ /** OAuth 2.0 token for the current user. */
2480
+ oauth_token?: string;
2481
+ /** 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) */
2482
+ pageSize?: number;
2483
+ /** 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. */
2484
+ pageToken?: string;
2485
+ /** Required. The resource name of the parent property. Example: 'properties/123' */
2486
+ parent: string;
2487
+ /** Returns response with indentations and line breaks. */
2488
+ prettyPrint?: boolean;
2489
+ /** 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. */
2490
+ quotaUser?: string;
2491
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2492
+ upload_protocol?: string;
2493
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2494
+ uploadType?: string;
2495
+ }): Request<GoogleAnalyticsAdminV1betaListKeyEventsResponse>;
2496
+ /** Updates a Key Event. */
2497
+ patch(request: {
2498
+ /** V1 error format. */
2499
+ '$.xgafv'?: string;
2500
+ /** OAuth access token. */
2501
+ access_token?: string;
2502
+ /** Data format for response. */
2503
+ alt?: string;
2504
+ /** JSONP */
2505
+ callback?: string;
2506
+ /** Selector specifying which fields to include in a partial response. */
2507
+ fields?: string;
2508
+ /** 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. */
2509
+ key?: string;
2510
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
2511
+ name: string;
2512
+ /** OAuth 2.0 token for the current user. */
2513
+ oauth_token?: string;
2514
+ /** Returns response with indentations and line breaks. */
2515
+ prettyPrint?: boolean;
2516
+ /** 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. */
2517
+ quotaUser?: string;
2518
+ /** 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. */
2519
+ updateMask?: string;
2520
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2521
+ upload_protocol?: string;
2522
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2523
+ uploadType?: string;
2524
+ /** Request body */
2525
+ resource: GoogleAnalyticsAdminV1betaKeyEvent;
2526
+ }): Request<GoogleAnalyticsAdminV1betaKeyEvent>;
2527
+ patch(
2528
+ request: {
2529
+ /** V1 error format. */
2530
+ '$.xgafv'?: string;
2531
+ /** OAuth access token. */
2532
+ access_token?: string;
2533
+ /** Data format for response. */
2534
+ alt?: string;
2535
+ /** JSONP */
2536
+ callback?: string;
2537
+ /** Selector specifying which fields to include in a partial response. */
2538
+ fields?: string;
2539
+ /** 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. */
2540
+ key?: string;
2541
+ /** Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event} */
2542
+ name: string;
2543
+ /** OAuth 2.0 token for the current user. */
2544
+ oauth_token?: string;
2545
+ /** Returns response with indentations and line breaks. */
2546
+ prettyPrint?: boolean;
2547
+ /** 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. */
2548
+ quotaUser?: string;
2549
+ /** 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. */
2550
+ updateMask?: string;
2551
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2552
+ upload_protocol?: string;
2553
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2554
+ uploadType?: string;
2555
+ },
2556
+ body: GoogleAnalyticsAdminV1betaKeyEvent
2557
+ ): Request<GoogleAnalyticsAdminV1betaKeyEvent>;
2558
+ }
2324
2559
  interface PropertiesResource {
2325
2560
  /** Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created. */
2326
2561
  acknowledgeUserDataCollection(request: {
@@ -2736,6 +2971,7 @@ declare namespace gapi.client {
2736
2971
  dataStreams: DataStreamsResource;
2737
2972
  firebaseLinks: FirebaseLinksResource;
2738
2973
  googleAdsLinks: GoogleAdsLinksResource;
2974
+ keyEvents: KeyEventsResource;
2739
2975
  }
2740
2976
 
2741
2977
  const accountSummaries: AccountSummariesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1beta",
3
- "version": "0.0.20240401",
3
+ "version": "0.0.20240402",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1beta",
5
5
  "repository": {
6
6
  "type": "git",