@google-analytics/data 6.1.0 → 7.1.0

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.
@@ -1,11 +1,11 @@
1
- import * as v1alpha from './v1alpha';
2
1
  import * as v1beta from './v1beta';
2
+ import * as v1alpha from './v1alpha';
3
3
  declare const BetaAnalyticsDataClient: typeof v1beta.BetaAnalyticsDataClient;
4
4
  type BetaAnalyticsDataClient = v1beta.BetaAnalyticsDataClient;
5
- export { v1alpha, v1beta, BetaAnalyticsDataClient };
5
+ export { v1beta, v1alpha, BetaAnalyticsDataClient };
6
6
  declare const _default: {
7
- v1alpha: typeof v1alpha;
8
7
  v1beta: typeof v1beta;
8
+ v1alpha: typeof v1alpha;
9
9
  BetaAnalyticsDataClient: typeof v1beta.BetaAnalyticsDataClient;
10
10
  };
11
11
  export default _default;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -17,14 +17,14 @@
17
17
  // ** https://github.com/googleapis/synthtool **
18
18
  // ** All changes to this file may be overwritten. **
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.protos = exports.BetaAnalyticsDataClient = exports.v1beta = exports.v1alpha = void 0;
21
- const v1alpha = require("./v1alpha");
22
- exports.v1alpha = v1alpha;
20
+ exports.protos = exports.BetaAnalyticsDataClient = exports.v1alpha = exports.v1beta = void 0;
23
21
  const v1beta = require("./v1beta");
24
22
  exports.v1beta = v1beta;
23
+ const v1alpha = require("./v1alpha");
24
+ exports.v1alpha = v1alpha;
25
25
  const BetaAnalyticsDataClient = v1beta.BetaAnalyticsDataClient;
26
26
  exports.BetaAnalyticsDataClient = BetaAnalyticsDataClient;
27
- exports.default = { v1alpha, v1beta, BetaAnalyticsDataClient };
27
+ exports.default = { v1beta, v1alpha, BetaAnalyticsDataClient };
28
28
  const protos = require("../protos/protos");
29
29
  exports.protos = protos;
30
30
  //# sourceMappingURL=index.js.map
@@ -270,7 +270,7 @@ export declare class AlphaAnalyticsDataClient {
270
270
  */
271
271
  queryAudienceList(request?: protos.google.analytics.data.v1alpha.IQueryAudienceListRequest, options?: CallOptions): Promise<[
272
272
  protos.google.analytics.data.v1alpha.IQueryAudienceListResponse,
273
- protos.google.analytics.data.v1alpha.IQueryAudienceListRequest | undefined,
273
+ (protos.google.analytics.data.v1alpha.IQueryAudienceListRequest | undefined),
274
274
  {} | undefined
275
275
  ]>;
276
276
  queryAudienceList(request: protos.google.analytics.data.v1alpha.IQueryAudienceListRequest, options: CallOptions, callback: Callback<protos.google.analytics.data.v1alpha.IQueryAudienceListResponse, protos.google.analytics.data.v1alpha.IQueryAudienceListRequest | null | undefined, {} | null | undefined>): void;
@@ -348,7 +348,7 @@ export declare class AlphaAnalyticsDataClient {
348
348
  */
349
349
  createRecurringAudienceList(request?: protos.google.analytics.data.v1alpha.ICreateRecurringAudienceListRequest, options?: CallOptions): Promise<[
350
350
  protos.google.analytics.data.v1alpha.IRecurringAudienceList,
351
- protos.google.analytics.data.v1alpha.ICreateRecurringAudienceListRequest | undefined,
351
+ (protos.google.analytics.data.v1alpha.ICreateRecurringAudienceListRequest | undefined),
352
352
  {} | undefined
353
353
  ]>;
354
354
  createRecurringAudienceList(request: protos.google.analytics.data.v1alpha.ICreateRecurringAudienceListRequest, options: CallOptions, callback: Callback<protos.google.analytics.data.v1alpha.IRecurringAudienceList, protos.google.analytics.data.v1alpha.ICreateRecurringAudienceListRequest | null | undefined, {} | null | undefined>): void;
@@ -383,7 +383,7 @@ export declare class AlphaAnalyticsDataClient {
383
383
  */
384
384
  getRecurringAudienceList(request?: protos.google.analytics.data.v1alpha.IGetRecurringAudienceListRequest, options?: CallOptions): Promise<[
385
385
  protos.google.analytics.data.v1alpha.IRecurringAudienceList,
386
- protos.google.analytics.data.v1alpha.IGetRecurringAudienceListRequest | undefined,
386
+ (protos.google.analytics.data.v1alpha.IGetRecurringAudienceListRequest | undefined),
387
387
  {} | undefined
388
388
  ]>;
389
389
  getRecurringAudienceList(request: protos.google.analytics.data.v1alpha.IGetRecurringAudienceListRequest, options: CallOptions, callback: Callback<protos.google.analytics.data.v1alpha.IRecurringAudienceList, protos.google.analytics.data.v1alpha.IGetRecurringAudienceListRequest | null | undefined, {} | null | undefined>): void;
@@ -408,7 +408,7 @@ export declare class AlphaAnalyticsDataClient {
408
408
  */
409
409
  getPropertyQuotasSnapshot(request?: protos.google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest, options?: CallOptions): Promise<[
410
410
  protos.google.analytics.data.v1alpha.IPropertyQuotasSnapshot,
411
- protos.google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest | undefined,
411
+ (protos.google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest | undefined),
412
412
  {} | undefined
413
413
  ]>;
414
414
  getPropertyQuotasSnapshot(request: protos.google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest, options: CallOptions, callback: Callback<protos.google.analytics.data.v1alpha.IPropertyQuotasSnapshot, protos.google.analytics.data.v1alpha.IGetPropertyQuotasSnapshotRequest | null | undefined, {} | null | undefined>): void;
@@ -765,49 +765,49 @@ export declare class AlphaAnalyticsDataClient {
765
765
  */
766
766
  checkCreateReportTaskProgress(name: string): Promise<LROperation<protos.google.analytics.data.v1alpha.ReportTask, protos.google.analytics.data.v1alpha.ReportTaskMetadata>>;
767
767
  /**
768
- * Lists all audience lists for a property. This method can be used for you to
769
- * find and reuse existing audience lists rather than creating unnecessary new
770
- * audience lists. The same audience can have multiple audience lists that
771
- * represent the list of users that were in an audience on different days.
772
- *
773
- * See [Creating an Audience
774
- * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
775
- * for an introduction to Audience Lists with examples.
776
- *
777
- * This method is available at beta stability at
778
- * [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list).
779
- * To give your feedback on this API, complete the
780
- * [Google Analytics Audience Export API
781
- * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
782
- *
783
- * @param {Object} request
784
- * The request object that will be sent.
785
- * @param {string} request.parent
786
- * Required. All audience lists for this property will be listed in the
787
- * response. Format: `properties/{property}`
788
- * @param {number} [request.pageSize]
789
- * Optional. The maximum number of audience lists to return. The service may
790
- * return fewer than this value. If unspecified, at most 200 audience lists
791
- * will be returned. The maximum value is 1000 (higher values will be coerced
792
- * to the maximum).
793
- * @param {string} [request.pageToken]
794
- * Optional. A page token, received from a previous `ListAudienceLists` call.
795
- * Provide this to retrieve the subsequent page.
796
- *
797
- * When paginating, all other parameters provided to `ListAudienceLists` must
798
- * match the call that provided the page token.
799
- * @param {object} [options]
800
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
801
- * @returns {Promise} - The promise which resolves to an array.
802
- * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.AudienceList|AudienceList}.
803
- * The client library will perform auto-pagination by default: it will call the API as many
804
- * times as needed and will merge results from all the pages into this array.
805
- * Note that it can affect your quota.
806
- * We recommend using `listAudienceListsAsync()`
807
- * method described below for async iteration which you can stop as needed.
808
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
809
- * for more details and examples.
810
- */
768
+ * Lists all audience lists for a property. This method can be used for you to
769
+ * find and reuse existing audience lists rather than creating unnecessary new
770
+ * audience lists. The same audience can have multiple audience lists that
771
+ * represent the list of users that were in an audience on different days.
772
+ *
773
+ * See [Creating an Audience
774
+ * List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
775
+ * for an introduction to Audience Lists with examples.
776
+ *
777
+ * This method is available at beta stability at
778
+ * [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list).
779
+ * To give your feedback on this API, complete the
780
+ * [Google Analytics Audience Export API
781
+ * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
782
+ *
783
+ * @param {Object} request
784
+ * The request object that will be sent.
785
+ * @param {string} request.parent
786
+ * Required. All audience lists for this property will be listed in the
787
+ * response. Format: `properties/{property}`
788
+ * @param {number} [request.pageSize]
789
+ * Optional. The maximum number of audience lists to return. The service may
790
+ * return fewer than this value. If unspecified, at most 200 audience lists
791
+ * will be returned. The maximum value is 1000 (higher values will be coerced
792
+ * to the maximum).
793
+ * @param {string} [request.pageToken]
794
+ * Optional. A page token, received from a previous `ListAudienceLists` call.
795
+ * Provide this to retrieve the subsequent page.
796
+ *
797
+ * When paginating, all other parameters provided to `ListAudienceLists` must
798
+ * match the call that provided the page token.
799
+ * @param {object} [options]
800
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
801
+ * @returns {Promise} - The promise which resolves to an array.
802
+ * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.AudienceList|AudienceList}.
803
+ * The client library will perform auto-pagination by default: it will call the API as many
804
+ * times as needed and will merge results from all the pages into this array.
805
+ * Note that it can affect your quota.
806
+ * We recommend using `listAudienceListsAsync()`
807
+ * method described below for async iteration which you can stop as needed.
808
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
809
+ * for more details and examples.
810
+ */
811
811
  listAudienceLists(request?: protos.google.analytics.data.v1alpha.IListAudienceListsRequest, options?: CallOptions): Promise<[
812
812
  protos.google.analytics.data.v1alpha.IAudienceList[],
813
813
  protos.google.analytics.data.v1alpha.IListAudienceListsRequest | null,
@@ -879,49 +879,49 @@ export declare class AlphaAnalyticsDataClient {
879
879
  */
880
880
  listAudienceListsAsync(request?: protos.google.analytics.data.v1alpha.IListAudienceListsRequest, options?: CallOptions): AsyncIterable<protos.google.analytics.data.v1alpha.IAudienceList>;
881
881
  /**
882
- * Lists all recurring audience lists for a property. This method can be used
883
- * for you to find and reuse existing recurring audience lists rather than
884
- * creating unnecessary new recurring audience lists. The same audience can
885
- * have multiple recurring audience lists that represent different dimension
886
- * combinations; for example, just the dimension `deviceId` or both the
887
- * dimensions `deviceId` and `userId`.
888
- *
889
- * This method is introduced at alpha stability with the intention of
890
- * gathering feedback on syntax and capabilities before entering beta. To give
891
- * your feedback on this API, complete the
892
- * [Google Analytics Audience Export API
893
- * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
894
- *
895
- * @param {Object} request
896
- * The request object that will be sent.
897
- * @param {string} request.parent
898
- * Required. All recurring audience lists for this property will be listed in
899
- * the response. Format: `properties/{property}`
900
- * @param {number} [request.pageSize]
901
- * Optional. The maximum number of recurring audience lists to return. The
902
- * service may return fewer than this value. If unspecified, at most 200
903
- * recurring audience lists will be returned. The maximum value is 1000
904
- * (higher values will be coerced to the maximum).
905
- * @param {string} [request.pageToken]
906
- * Optional. A page token, received from a previous
907
- * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent
908
- * page.
909
- *
910
- * When paginating, all other parameters provided to
911
- * `ListRecurringAudienceLists` must match the call that provided the page
912
- * token.
913
- * @param {object} [options]
914
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
915
- * @returns {Promise} - The promise which resolves to an array.
916
- * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.RecurringAudienceList|RecurringAudienceList}.
917
- * The client library will perform auto-pagination by default: it will call the API as many
918
- * times as needed and will merge results from all the pages into this array.
919
- * Note that it can affect your quota.
920
- * We recommend using `listRecurringAudienceListsAsync()`
921
- * method described below for async iteration which you can stop as needed.
922
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
923
- * for more details and examples.
924
- */
882
+ * Lists all recurring audience lists for a property. This method can be used
883
+ * for you to find and reuse existing recurring audience lists rather than
884
+ * creating unnecessary new recurring audience lists. The same audience can
885
+ * have multiple recurring audience lists that represent different dimension
886
+ * combinations; for example, just the dimension `deviceId` or both the
887
+ * dimensions `deviceId` and `userId`.
888
+ *
889
+ * This method is introduced at alpha stability with the intention of
890
+ * gathering feedback on syntax and capabilities before entering beta. To give
891
+ * your feedback on this API, complete the
892
+ * [Google Analytics Audience Export API
893
+ * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
894
+ *
895
+ * @param {Object} request
896
+ * The request object that will be sent.
897
+ * @param {string} request.parent
898
+ * Required. All recurring audience lists for this property will be listed in
899
+ * the response. Format: `properties/{property}`
900
+ * @param {number} [request.pageSize]
901
+ * Optional. The maximum number of recurring audience lists to return. The
902
+ * service may return fewer than this value. If unspecified, at most 200
903
+ * recurring audience lists will be returned. The maximum value is 1000
904
+ * (higher values will be coerced to the maximum).
905
+ * @param {string} [request.pageToken]
906
+ * Optional. A page token, received from a previous
907
+ * `ListRecurringAudienceLists` call. Provide this to retrieve the subsequent
908
+ * page.
909
+ *
910
+ * When paginating, all other parameters provided to
911
+ * `ListRecurringAudienceLists` must match the call that provided the page
912
+ * token.
913
+ * @param {object} [options]
914
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
915
+ * @returns {Promise} - The promise which resolves to an array.
916
+ * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.RecurringAudienceList|RecurringAudienceList}.
917
+ * The client library will perform auto-pagination by default: it will call the API as many
918
+ * times as needed and will merge results from all the pages into this array.
919
+ * Note that it can affect your quota.
920
+ * We recommend using `listRecurringAudienceListsAsync()`
921
+ * method described below for async iteration which you can stop as needed.
922
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
923
+ * for more details and examples.
924
+ */
925
925
  listRecurringAudienceLists(request?: protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, options?: CallOptions): Promise<[
926
926
  protos.google.analytics.data.v1alpha.IRecurringAudienceList[],
927
927
  protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest | null,
@@ -997,30 +997,30 @@ export declare class AlphaAnalyticsDataClient {
997
997
  */
998
998
  listRecurringAudienceListsAsync(request?: protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, options?: CallOptions): AsyncIterable<protos.google.analytics.data.v1alpha.IRecurringAudienceList>;
999
999
  /**
1000
- * Lists all report tasks for a property.
1001
- *
1002
- * @param {Object} request
1003
- * The request object that will be sent.
1004
- * @param {string} request.parent
1005
- * Required. All report tasks for this property will be listed in the
1006
- * response. Format: `properties/{property}`
1007
- * @param {number} [request.pageSize]
1008
- * Optional. The maximum number of report tasks to return.
1009
- * @param {string} [request.pageToken]
1010
- * Optional. A page token, received from a previous `ListReportTasks` call.
1011
- * Provide this to retrieve the subsequent page.
1012
- * @param {object} [options]
1013
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1014
- * @returns {Promise} - The promise which resolves to an array.
1015
- * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.ReportTask|ReportTask}.
1016
- * The client library will perform auto-pagination by default: it will call the API as many
1017
- * times as needed and will merge results from all the pages into this array.
1018
- * Note that it can affect your quota.
1019
- * We recommend using `listReportTasksAsync()`
1020
- * method described below for async iteration which you can stop as needed.
1021
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1022
- * for more details and examples.
1023
- */
1000
+ * Lists all report tasks for a property.
1001
+ *
1002
+ * @param {Object} request
1003
+ * The request object that will be sent.
1004
+ * @param {string} request.parent
1005
+ * Required. All report tasks for this property will be listed in the
1006
+ * response. Format: `properties/{property}`
1007
+ * @param {number} [request.pageSize]
1008
+ * Optional. The maximum number of report tasks to return.
1009
+ * @param {string} [request.pageToken]
1010
+ * Optional. A page token, received from a previous `ListReportTasks` call.
1011
+ * Provide this to retrieve the subsequent page.
1012
+ * @param {object} [options]
1013
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1014
+ * @returns {Promise} - The promise which resolves to an array.
1015
+ * The first element of the array is Array of {@link protos.google.analytics.data.v1alpha.ReportTask|ReportTask}.
1016
+ * The client library will perform auto-pagination by default: it will call the API as many
1017
+ * times as needed and will merge results from all the pages into this array.
1018
+ * Note that it can affect your quota.
1019
+ * We recommend using `listReportTasksAsync()`
1020
+ * method described below for async iteration which you can stop as needed.
1021
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1022
+ * for more details and examples.
1023
+ */
1024
1024
  listReportTasks(request?: protos.google.analytics.data.v1alpha.IListReportTasksRequest, options?: CallOptions): Promise<[
1025
1025
  protos.google.analytics.data.v1alpha.IReportTask[],
1026
1026
  protos.google.analytics.data.v1alpha.IListReportTasksRequest | null,
@@ -1080,35 +1080,35 @@ export declare class AlphaAnalyticsDataClient {
1080
1080
  */
1081
1081
  listReportTasksAsync(request?: protos.google.analytics.data.v1alpha.IListReportTasksRequest, options?: CallOptions): AsyncIterable<protos.google.analytics.data.v1alpha.IReportTask>;
1082
1082
  /**
1083
- * Gets the latest state of a long-running operation. Clients can use this
1084
- * method to poll the operation result at intervals as recommended by the API
1085
- * service.
1086
- *
1087
- * @param {Object} request - The request object that will be sent.
1088
- * @param {string} request.name - The name of the operation resource.
1089
- * @param {Object=} options
1090
- * Optional parameters. You can override the default settings for this call,
1091
- * e.g, timeout, retries, paginations, etc. See {@link
1092
- * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
1093
- * for the details.
1094
- * @param {function(?Error, ?Object)=} callback
1095
- * The function which will be called with the result of the API call.
1096
- *
1097
- * The second parameter to the callback is an object representing
1098
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
1099
- * @return {Promise} - The promise which resolves to an array.
1100
- * The first element of the array is an object representing
1101
- * {@link google.longrunning.Operation | google.longrunning.Operation}.
1102
- * The promise has a method named "cancel" which cancels the ongoing API call.
1103
- *
1104
- * @example
1105
- * ```
1106
- * const client = longrunning.operationsClient();
1107
- * const name = '';
1108
- * const [response] = await client.getOperation({name});
1109
- * // doThingsWith(response)
1110
- * ```
1111
- */
1083
+ * Gets the latest state of a long-running operation. Clients can use this
1084
+ * method to poll the operation result at intervals as recommended by the API
1085
+ * service.
1086
+ *
1087
+ * @param {Object} request - The request object that will be sent.
1088
+ * @param {string} request.name - The name of the operation resource.
1089
+ * @param {Object=} options
1090
+ * Optional parameters. You can override the default settings for this call,
1091
+ * e.g, timeout, retries, paginations, etc. See {@link
1092
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
1093
+ * for the details.
1094
+ * @param {function(?Error, ?Object)=} callback
1095
+ * The function which will be called with the result of the API call.
1096
+ *
1097
+ * The second parameter to the callback is an object representing
1098
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
1099
+ * @return {Promise} - The promise which resolves to an array.
1100
+ * The first element of the array is an object representing
1101
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
1102
+ * The promise has a method named "cancel" which cancels the ongoing API call.
1103
+ *
1104
+ * @example
1105
+ * ```
1106
+ * const client = longrunning.operationsClient();
1107
+ * const name = '';
1108
+ * const [response] = await client.getOperation({name});
1109
+ * // doThingsWith(response)
1110
+ * ```
1111
+ */
1112
1112
  getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
1113
1113
  /**
1114
1114
  * Lists operations that match the specified filter in the request. If the