@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20250326 → 0.0.20250331

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 +249 -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: 20250326
12
+ // Revision: 20250331
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -469,6 +469,8 @@ declare namespace gapi.client {
469
469
  measurementProtocolSecret?: GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret;
470
470
  /** A snapshot of a Property resource in change history. */
471
471
  property?: GoogleAnalyticsAdminV1alphaProperty;
472
+ /** A snapshot of a ReportingDataAnnotation resource in change history. */
473
+ reportingDataAnnotation?: GoogleAnalyticsAdminV1alphaReportingDataAnnotation;
472
474
  /** A snapshot of a SearchAds360Link resource in change history. */
473
475
  searchAds360Link?: GoogleAnalyticsAdminV1alphaSearchAds360Link;
474
476
  /** A snapshot of SKAdNetworkConversionValueSchema resource in change history. */
@@ -1079,6 +1081,12 @@ declare namespace gapi.client {
1079
1081
  /** Results that matched the filter criteria and were accessible to the caller. */
1080
1082
  properties?: GoogleAnalyticsAdminV1alphaProperty[];
1081
1083
  }
1084
+ interface GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse {
1085
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1086
+ nextPageToken?: string;
1087
+ /** List of Reporting Data Annotations. */
1088
+ reportingDataAnnotations?: GoogleAnalyticsAdminV1alphaReportingDataAnnotation[];
1089
+ }
1082
1090
  interface GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse {
1083
1091
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1084
1092
  nextPageToken?: string;
@@ -1203,6 +1211,28 @@ declare namespace gapi.client {
1203
1211
  /** Required. EventEditRule resource names for the specified data stream, in the needed processing order. All EventEditRules for the stream must be present in the list. */
1204
1212
  eventEditRules?: string[];
1205
1213
  }
1214
+ interface GoogleAnalyticsAdminV1alphaReportingDataAnnotation {
1215
+ /** If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future. */
1216
+ annotationDate?: GoogleTypeDate;
1217
+ /** If set, the Reporting Data Annotation is for a range of dates represented by this field. */
1218
+ annotationDateRange?: GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange;
1219
+ /** Required. The color used for display of this Reporting Data Annotation. */
1220
+ color?: string;
1221
+ /** Optional. Description for this Reporting Data Annotation. */
1222
+ description?: string;
1223
+ /** Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456' */
1224
+ name?: string;
1225
+ /** Output only. If true, this annotation was generated by the Google Analytics system. System-generated annotations cannot be updated or deleted. */
1226
+ systemGenerated?: boolean;
1227
+ /** Required. Human-readable title for this Reporting Data Annotation. */
1228
+ title?: string;
1229
+ }
1230
+ interface GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange {
1231
+ /** Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date. */
1232
+ endDate?: GoogleTypeDate;
1233
+ /** Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future. */
1234
+ startDate?: GoogleTypeDate;
1235
+ }
1206
1236
  interface GoogleAnalyticsAdminV1alphaRollupPropertySourceLink {
1207
1237
  /** Output only. Resource name of this RollupPropertySourceLink. Format: 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' Format: 'properties/123/rollupPropertySourceLinks/456' */
1208
1238
  name?: string;
@@ -1353,6 +1383,14 @@ declare namespace gapi.client {
1353
1383
  accessBinding?: GoogleAnalyticsAdminV1alphaAccessBinding;
1354
1384
  }
1355
1385
  interface GoogleProtobufEmpty {}
1386
+ interface GoogleTypeDate {
1387
+ /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
1388
+ day?: number;
1389
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
1390
+ month?: number;
1391
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
1392
+ year?: number;
1393
+ }
1356
1394
  interface AccessBindingsResource {
1357
1395
  /** Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created. */
1358
1396
  batchCreate(request: {
@@ -6716,6 +6754,215 @@ declare namespace gapi.client {
6716
6754
  body: GoogleAnalyticsAdminV1alphaKeyEvent,
6717
6755
  ): Request<GoogleAnalyticsAdminV1alphaKeyEvent>;
6718
6756
  }
6757
+ interface ReportingDataAnnotationsResource {
6758
+ /** Creates a Reporting Data Annotation. */
6759
+ create(request: {
6760
+ /** V1 error format. */
6761
+ '$.xgafv'?: string;
6762
+ /** OAuth access token. */
6763
+ access_token?: string;
6764
+ /** Data format for response. */
6765
+ alt?: string;
6766
+ /** JSONP */
6767
+ callback?: string;
6768
+ /** Selector specifying which fields to include in a partial response. */
6769
+ fields?: string;
6770
+ /** 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. */
6771
+ key?: string;
6772
+ /** OAuth 2.0 token for the current user. */
6773
+ oauth_token?: string;
6774
+ /** Required. The property for which to create a Reporting Data Annotation. Format: properties/property_id Example: properties/123 */
6775
+ parent: string;
6776
+ /** Returns response with indentations and line breaks. */
6777
+ prettyPrint?: boolean;
6778
+ /** 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. */
6779
+ quotaUser?: string;
6780
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6781
+ upload_protocol?: string;
6782
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6783
+ uploadType?: string;
6784
+ /** Request body */
6785
+ resource: GoogleAnalyticsAdminV1alphaReportingDataAnnotation;
6786
+ }): Request<GoogleAnalyticsAdminV1alphaReportingDataAnnotation>;
6787
+ create(
6788
+ request: {
6789
+ /** V1 error format. */
6790
+ '$.xgafv'?: string;
6791
+ /** OAuth access token. */
6792
+ access_token?: string;
6793
+ /** Data format for response. */
6794
+ alt?: string;
6795
+ /** JSONP */
6796
+ callback?: string;
6797
+ /** Selector specifying which fields to include in a partial response. */
6798
+ fields?: string;
6799
+ /** 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. */
6800
+ key?: string;
6801
+ /** OAuth 2.0 token for the current user. */
6802
+ oauth_token?: string;
6803
+ /** Required. The property for which to create a Reporting Data Annotation. Format: properties/property_id Example: properties/123 */
6804
+ parent: string;
6805
+ /** Returns response with indentations and line breaks. */
6806
+ prettyPrint?: boolean;
6807
+ /** 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. */
6808
+ quotaUser?: string;
6809
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6810
+ upload_protocol?: string;
6811
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6812
+ uploadType?: string;
6813
+ },
6814
+ body: GoogleAnalyticsAdminV1alphaReportingDataAnnotation,
6815
+ ): Request<GoogleAnalyticsAdminV1alphaReportingDataAnnotation>;
6816
+ /** Deletes a Reporting Data Annotation. */
6817
+ delete(request?: {
6818
+ /** V1 error format. */
6819
+ '$.xgafv'?: string;
6820
+ /** OAuth access token. */
6821
+ access_token?: string;
6822
+ /** Data format for response. */
6823
+ alt?: string;
6824
+ /** JSONP */
6825
+ callback?: string;
6826
+ /** Selector specifying which fields to include in a partial response. */
6827
+ fields?: string;
6828
+ /** 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. */
6829
+ key?: string;
6830
+ /** Required. Resource name of the Reporting Data Annotation to delete. Format: properties/property_id/reportingDataAnnotations/reporting_data_annotation Example: properties/123/reportingDataAnnotations/456 */
6831
+ name: 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
+ /** 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. */
6837
+ quotaUser?: string;
6838
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6839
+ upload_protocol?: string;
6840
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6841
+ uploadType?: string;
6842
+ }): Request<{}>;
6843
+ /** Lookup a single Reporting Data Annotation. */
6844
+ get(request?: {
6845
+ /** V1 error format. */
6846
+ '$.xgafv'?: string;
6847
+ /** OAuth access token. */
6848
+ access_token?: string;
6849
+ /** Data format for response. */
6850
+ alt?: string;
6851
+ /** JSONP */
6852
+ callback?: string;
6853
+ /** Selector specifying which fields to include in a partial response. */
6854
+ fields?: string;
6855
+ /** 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. */
6856
+ key?: string;
6857
+ /** Required. Resource name of the Reporting Data Annotation to lookup. Format: properties/property_id/reportingDataAnnotations/reportingDataAnnotation Example: properties/123/reportingDataAnnotations/456 */
6858
+ name: string;
6859
+ /** OAuth 2.0 token for the current user. */
6860
+ oauth_token?: string;
6861
+ /** Returns response with indentations and line breaks. */
6862
+ prettyPrint?: boolean;
6863
+ /** 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. */
6864
+ quotaUser?: string;
6865
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6866
+ upload_protocol?: string;
6867
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6868
+ uploadType?: string;
6869
+ }): Request<GoogleAnalyticsAdminV1alphaReportingDataAnnotation>;
6870
+ /** List all Reporting Data Annotations on a property. */
6871
+ list(request?: {
6872
+ /** V1 error format. */
6873
+ '$.xgafv'?: string;
6874
+ /** OAuth access token. */
6875
+ access_token?: string;
6876
+ /** Data format for response. */
6877
+ alt?: string;
6878
+ /** JSONP */
6879
+ callback?: string;
6880
+ /** Selector specifying which fields to include in a partial response. */
6881
+ fields?: string;
6882
+ /** Optional. Filter that restricts which reporting data annotations under the parent property are listed. Supported fields are: * 'name' * `title` * `description` * `annotation_date` * `annotation_date_range` * `color` Additionally, this API provides the following helper functions: * annotation_duration() : the duration that this annotation marks, [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). expect a numeric representation of seconds followed by an `s` suffix. * is_annotation_in_range(start_date, end_date) : if the annotation is in the range specified by the `start_date` and `end_date`. The dates are in ISO-8601 format, for example `2031-06-28`. Supported operations: * `=` : equals * `!=` : not equals * `<` : less than * `>` : greater than * `<=` : less than or equals * `>=` : greater than or equals * `:` : has operator * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) match * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) does not match * `NOT` : Logical not * `AND` : Logical and * `OR` : Logical or Examples: 1. `title="Holiday Sale"` 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` 4. `annotation_duration() >= 172800s AND title:BOGO` */
6883
+ filter?: string;
6884
+ /** 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. */
6885
+ key?: string;
6886
+ /** OAuth 2.0 token for the current user. */
6887
+ oauth_token?: string;
6888
+ /** Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum) */
6889
+ pageSize?: number;
6890
+ /** Optional. A page token, received from a previous `ListReportingDataAnnotations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReportingDataAnnotations` must match the call that provided the page token. */
6891
+ pageToken?: string;
6892
+ /** Required. Resource name of the property. Format: properties/property_id Example: properties/123 */
6893
+ parent: string;
6894
+ /** Returns response with indentations and line breaks. */
6895
+ prettyPrint?: boolean;
6896
+ /** 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. */
6897
+ quotaUser?: string;
6898
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6899
+ upload_protocol?: string;
6900
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6901
+ uploadType?: string;
6902
+ }): Request<GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse>;
6903
+ /** Updates a Reporting Data Annotation. */
6904
+ patch(request: {
6905
+ /** V1 error format. */
6906
+ '$.xgafv'?: string;
6907
+ /** OAuth access token. */
6908
+ access_token?: string;
6909
+ /** Data format for response. */
6910
+ alt?: string;
6911
+ /** JSONP */
6912
+ callback?: string;
6913
+ /** Selector specifying which fields to include in a partial response. */
6914
+ fields?: string;
6915
+ /** 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. */
6916
+ key?: string;
6917
+ /** Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456' */
6918
+ name: string;
6919
+ /** OAuth 2.0 token for the current user. */
6920
+ oauth_token?: string;
6921
+ /** Returns response with indentations and line breaks. */
6922
+ prettyPrint?: boolean;
6923
+ /** 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. */
6924
+ quotaUser?: string;
6925
+ /** Optional. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
6926
+ updateMask?: string;
6927
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6928
+ upload_protocol?: string;
6929
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6930
+ uploadType?: string;
6931
+ /** Request body */
6932
+ resource: GoogleAnalyticsAdminV1alphaReportingDataAnnotation;
6933
+ }): Request<GoogleAnalyticsAdminV1alphaReportingDataAnnotation>;
6934
+ patch(
6935
+ request: {
6936
+ /** V1 error format. */
6937
+ '$.xgafv'?: string;
6938
+ /** OAuth access token. */
6939
+ access_token?: string;
6940
+ /** Data format for response. */
6941
+ alt?: string;
6942
+ /** JSONP */
6943
+ callback?: string;
6944
+ /** Selector specifying which fields to include in a partial response. */
6945
+ fields?: string;
6946
+ /** 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. */
6947
+ key?: string;
6948
+ /** Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456' */
6949
+ name: string;
6950
+ /** OAuth 2.0 token for the current user. */
6951
+ oauth_token?: string;
6952
+ /** Returns response with indentations and line breaks. */
6953
+ prettyPrint?: boolean;
6954
+ /** 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. */
6955
+ quotaUser?: string;
6956
+ /** Optional. The list of fields to update. Field names must be in snake case (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. */
6957
+ updateMask?: string;
6958
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6959
+ upload_protocol?: string;
6960
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6961
+ uploadType?: string;
6962
+ },
6963
+ body: GoogleAnalyticsAdminV1alphaReportingDataAnnotation,
6964
+ ): Request<GoogleAnalyticsAdminV1alphaReportingDataAnnotation>;
6965
+ }
6719
6966
  interface RollupPropertySourceLinksResource {
6720
6967
  /** 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. */
6721
6968
  create(request: {
@@ -8283,6 +8530,7 @@ declare namespace gapi.client {
8283
8530
  firebaseLinks: FirebaseLinksResource;
8284
8531
  googleAdsLinks: GoogleAdsLinksResource;
8285
8532
  keyEvents: KeyEventsResource;
8533
+ reportingDataAnnotations: ReportingDataAnnotationsResource;
8286
8534
  rollupPropertySourceLinks: RollupPropertySourceLinksResource;
8287
8535
  searchAds360Links: SearchAds360LinksResource;
8288
8536
  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.20250326",
3
+ "version": "0.0.20250331",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",