@google-analytics/data 4.11.0 → 4.12.1
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.
- package/CHANGELOG.md +14 -0
- package/build/protos/google/analytics/data/v1alpha/data.proto +18 -2
- package/build/protos/protos.d.ts +105 -2
- package/build/protos/protos.js +258 -3
- package/build/protos/protos.json +14 -1
- package/build/src/index.js +1 -1
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +6 -6
- package/build/src/v1alpha/alpha_analytics_data_client.js +63 -7
- package/build/src/v1alpha/index.js +1 -1
- package/build/src/v1beta/beta_analytics_data_client.d.ts +4 -4
- package/build/src/v1beta/beta_analytics_data_client.js +61 -5
- package/build/src/v1beta/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.12.1](https://github.com/googleapis/google-cloud-node/compare/data-v4.12.0...data-v4.12.1) (2025-02-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* [Many APIs] finalize fixing typings for headers in generator ([#6011](https://github.com/googleapis/google-cloud-node/issues/6011)) ([ee865ff](https://github.com/googleapis/google-cloud-node/commit/ee865ff34a696fbd657e4cfb6cc4be2f6651f77a))
|
|
9
|
+
|
|
10
|
+
## [4.12.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.11.0...data-v4.12.0) (2024-12-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* [analytics-data] add the `EmptyFilter` type to the Data API v1alpha ([#5845](https://github.com/googleapis/google-cloud-node/issues/5845)) ([1bcd241](https://github.com/googleapis/google-cloud-node/commit/1bcd2412bd72ce3c3d9b03128c44138964c8a0e6))
|
|
16
|
+
|
|
3
17
|
## [4.11.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.10.0...data-v4.11.0) (2024-11-21)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -201,6 +201,9 @@ message Filter {
|
|
|
201
201
|
|
|
202
202
|
// A filter for between two values.
|
|
203
203
|
BetweenFilter between_filter = 5;
|
|
204
|
+
|
|
205
|
+
// A filter for empty values such as "(not set)" and "" values.
|
|
206
|
+
EmptyFilter empty_filter = 6;
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
|
|
@@ -341,6 +344,9 @@ message BetweenFilter {
|
|
|
341
344
|
NumericValue to_value = 2;
|
|
342
345
|
}
|
|
343
346
|
|
|
347
|
+
// Filter for empty values.
|
|
348
|
+
message EmptyFilter {}
|
|
349
|
+
|
|
344
350
|
// To represent a number.
|
|
345
351
|
message NumericValue {
|
|
346
352
|
// One of a numeric value
|
|
@@ -554,6 +560,16 @@ message ResponseMetaData {
|
|
|
554
560
|
// Demographics and
|
|
555
561
|
// Interests](https://support.google.com/analytics/answer/2799357).
|
|
556
562
|
optional bool subject_to_thresholding = 8;
|
|
563
|
+
|
|
564
|
+
// If this report's results are
|
|
565
|
+
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
566
|
+
// describes the percentage of events used in this report. One
|
|
567
|
+
// `samplingMetadatas` is populated for each date range. Each
|
|
568
|
+
// `samplingMetadatas` corresponds to a date range in the order that date
|
|
569
|
+
// ranges were specified in the request.
|
|
570
|
+
//
|
|
571
|
+
// However if the results are not sampled, this field will not be defined.
|
|
572
|
+
repeated SamplingMetadata sampling_metadatas = 9;
|
|
557
573
|
}
|
|
558
574
|
|
|
559
575
|
// Describes a dimension column in the report. Dimensions requested in a report
|
|
@@ -1472,8 +1488,8 @@ message FunnelResponseMetadata {
|
|
|
1472
1488
|
// [sampled](https://support.google.com/analytics/answer/13331292), this
|
|
1473
1489
|
// describes what percentage of events were used in this funnel report. One
|
|
1474
1490
|
// `samplingMetadatas` is populated for each date range. Each
|
|
1475
|
-
// `samplingMetadatas` corresponds to a date range in order that date
|
|
1476
|
-
// were specified in the request.
|
|
1491
|
+
// `samplingMetadatas` corresponds to a date range in the order that date
|
|
1492
|
+
// ranges were specified in the request.
|
|
1477
1493
|
//
|
|
1478
1494
|
// However if the results are not sampled, this field will not be defined.
|
|
1479
1495
|
repeated SamplingMetadata sampling_metadatas = 1;
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -9518,6 +9518,9 @@ export namespace google {
|
|
|
9518
9518
|
|
|
9519
9519
|
/** Filter betweenFilter */
|
|
9520
9520
|
betweenFilter?: (google.analytics.data.v1alpha.IBetweenFilter|null);
|
|
9521
|
+
|
|
9522
|
+
/** Filter emptyFilter */
|
|
9523
|
+
emptyFilter?: (google.analytics.data.v1alpha.IEmptyFilter|null);
|
|
9521
9524
|
}
|
|
9522
9525
|
|
|
9523
9526
|
/** Represents a Filter. */
|
|
@@ -9544,8 +9547,11 @@ export namespace google {
|
|
|
9544
9547
|
/** Filter betweenFilter. */
|
|
9545
9548
|
public betweenFilter?: (google.analytics.data.v1alpha.IBetweenFilter|null);
|
|
9546
9549
|
|
|
9550
|
+
/** Filter emptyFilter. */
|
|
9551
|
+
public emptyFilter?: (google.analytics.data.v1alpha.IEmptyFilter|null);
|
|
9552
|
+
|
|
9547
9553
|
/** Filter oneFilter. */
|
|
9548
|
-
public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter");
|
|
9554
|
+
public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|"emptyFilter");
|
|
9549
9555
|
|
|
9550
9556
|
/**
|
|
9551
9557
|
* Creates a new Filter instance using the specified properties.
|
|
@@ -10396,6 +10402,97 @@ export namespace google {
|
|
|
10396
10402
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10397
10403
|
}
|
|
10398
10404
|
|
|
10405
|
+
/** Properties of an EmptyFilter. */
|
|
10406
|
+
interface IEmptyFilter {
|
|
10407
|
+
}
|
|
10408
|
+
|
|
10409
|
+
/** Represents an EmptyFilter. */
|
|
10410
|
+
class EmptyFilter implements IEmptyFilter {
|
|
10411
|
+
|
|
10412
|
+
/**
|
|
10413
|
+
* Constructs a new EmptyFilter.
|
|
10414
|
+
* @param [properties] Properties to set
|
|
10415
|
+
*/
|
|
10416
|
+
constructor(properties?: google.analytics.data.v1alpha.IEmptyFilter);
|
|
10417
|
+
|
|
10418
|
+
/**
|
|
10419
|
+
* Creates a new EmptyFilter instance using the specified properties.
|
|
10420
|
+
* @param [properties] Properties to set
|
|
10421
|
+
* @returns EmptyFilter instance
|
|
10422
|
+
*/
|
|
10423
|
+
public static create(properties?: google.analytics.data.v1alpha.IEmptyFilter): google.analytics.data.v1alpha.EmptyFilter;
|
|
10424
|
+
|
|
10425
|
+
/**
|
|
10426
|
+
* Encodes the specified EmptyFilter message. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
10427
|
+
* @param message EmptyFilter message or plain object to encode
|
|
10428
|
+
* @param [writer] Writer to encode to
|
|
10429
|
+
* @returns Writer
|
|
10430
|
+
*/
|
|
10431
|
+
public static encode(message: google.analytics.data.v1alpha.IEmptyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10432
|
+
|
|
10433
|
+
/**
|
|
10434
|
+
* Encodes the specified EmptyFilter message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
10435
|
+
* @param message EmptyFilter message or plain object to encode
|
|
10436
|
+
* @param [writer] Writer to encode to
|
|
10437
|
+
* @returns Writer
|
|
10438
|
+
*/
|
|
10439
|
+
public static encodeDelimited(message: google.analytics.data.v1alpha.IEmptyFilter, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10440
|
+
|
|
10441
|
+
/**
|
|
10442
|
+
* Decodes an EmptyFilter message from the specified reader or buffer.
|
|
10443
|
+
* @param reader Reader or buffer to decode from
|
|
10444
|
+
* @param [length] Message length if known beforehand
|
|
10445
|
+
* @returns EmptyFilter
|
|
10446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10448
|
+
*/
|
|
10449
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.data.v1alpha.EmptyFilter;
|
|
10450
|
+
|
|
10451
|
+
/**
|
|
10452
|
+
* Decodes an EmptyFilter message from the specified reader or buffer, length delimited.
|
|
10453
|
+
* @param reader Reader or buffer to decode from
|
|
10454
|
+
* @returns EmptyFilter
|
|
10455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10457
|
+
*/
|
|
10458
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.data.v1alpha.EmptyFilter;
|
|
10459
|
+
|
|
10460
|
+
/**
|
|
10461
|
+
* Verifies an EmptyFilter message.
|
|
10462
|
+
* @param message Plain object to verify
|
|
10463
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10464
|
+
*/
|
|
10465
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10466
|
+
|
|
10467
|
+
/**
|
|
10468
|
+
* Creates an EmptyFilter message from a plain object. Also converts values to their respective internal types.
|
|
10469
|
+
* @param object Plain object
|
|
10470
|
+
* @returns EmptyFilter
|
|
10471
|
+
*/
|
|
10472
|
+
public static fromObject(object: { [k: string]: any }): google.analytics.data.v1alpha.EmptyFilter;
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* Creates a plain object from an EmptyFilter message. Also converts values to other types if specified.
|
|
10476
|
+
* @param message EmptyFilter
|
|
10477
|
+
* @param [options] Conversion options
|
|
10478
|
+
* @returns Plain object
|
|
10479
|
+
*/
|
|
10480
|
+
public static toObject(message: google.analytics.data.v1alpha.EmptyFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10481
|
+
|
|
10482
|
+
/**
|
|
10483
|
+
* Converts this EmptyFilter to JSON.
|
|
10484
|
+
* @returns JSON object
|
|
10485
|
+
*/
|
|
10486
|
+
public toJSON(): { [k: string]: any };
|
|
10487
|
+
|
|
10488
|
+
/**
|
|
10489
|
+
* Gets the default type url for EmptyFilter
|
|
10490
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10491
|
+
* @returns The default type url
|
|
10492
|
+
*/
|
|
10493
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10494
|
+
}
|
|
10495
|
+
|
|
10399
10496
|
/** Properties of a NumericValue. */
|
|
10400
10497
|
interface INumericValue {
|
|
10401
10498
|
|
|
@@ -10957,6 +11054,9 @@ export namespace google {
|
|
|
10957
11054
|
|
|
10958
11055
|
/** ResponseMetaData subjectToThresholding */
|
|
10959
11056
|
subjectToThresholding?: (boolean|null);
|
|
11057
|
+
|
|
11058
|
+
/** ResponseMetaData samplingMetadatas */
|
|
11059
|
+
samplingMetadatas?: (google.analytics.data.v1alpha.ISamplingMetadata[]|null);
|
|
10960
11060
|
}
|
|
10961
11061
|
|
|
10962
11062
|
/** Represents a ResponseMetaData. */
|
|
@@ -10986,6 +11086,9 @@ export namespace google {
|
|
|
10986
11086
|
/** ResponseMetaData subjectToThresholding. */
|
|
10987
11087
|
public subjectToThresholding?: (boolean|null);
|
|
10988
11088
|
|
|
11089
|
+
/** ResponseMetaData samplingMetadatas. */
|
|
11090
|
+
public samplingMetadatas: google.analytics.data.v1alpha.ISamplingMetadata[];
|
|
11091
|
+
|
|
10989
11092
|
/** ResponseMetaData _schemaRestrictionResponse. */
|
|
10990
11093
|
public _schemaRestrictionResponse?: "schemaRestrictionResponse";
|
|
10991
11094
|
|
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25420,6 +25420,7 @@
|
|
|
25420
25420
|
* @property {google.analytics.data.v1alpha.IInListFilter|null} [inListFilter] Filter inListFilter
|
|
25421
25421
|
* @property {google.analytics.data.v1alpha.INumericFilter|null} [numericFilter] Filter numericFilter
|
|
25422
25422
|
* @property {google.analytics.data.v1alpha.IBetweenFilter|null} [betweenFilter] Filter betweenFilter
|
|
25423
|
+
* @property {google.analytics.data.v1alpha.IEmptyFilter|null} [emptyFilter] Filter emptyFilter
|
|
25423
25424
|
*/
|
|
25424
25425
|
|
|
25425
25426
|
/**
|
|
@@ -25477,17 +25478,25 @@
|
|
|
25477
25478
|
*/
|
|
25478
25479
|
Filter.prototype.betweenFilter = null;
|
|
25479
25480
|
|
|
25481
|
+
/**
|
|
25482
|
+
* Filter emptyFilter.
|
|
25483
|
+
* @member {google.analytics.data.v1alpha.IEmptyFilter|null|undefined} emptyFilter
|
|
25484
|
+
* @memberof google.analytics.data.v1alpha.Filter
|
|
25485
|
+
* @instance
|
|
25486
|
+
*/
|
|
25487
|
+
Filter.prototype.emptyFilter = null;
|
|
25488
|
+
|
|
25480
25489
|
// OneOf field names bound to virtual getters and setters
|
|
25481
25490
|
var $oneOfFields;
|
|
25482
25491
|
|
|
25483
25492
|
/**
|
|
25484
25493
|
* Filter oneFilter.
|
|
25485
|
-
* @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter
|
|
25494
|
+
* @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|"emptyFilter"|undefined} oneFilter
|
|
25486
25495
|
* @memberof google.analytics.data.v1alpha.Filter
|
|
25487
25496
|
* @instance
|
|
25488
25497
|
*/
|
|
25489
25498
|
Object.defineProperty(Filter.prototype, "oneFilter", {
|
|
25490
|
-
get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]),
|
|
25499
|
+
get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter", "emptyFilter"]),
|
|
25491
25500
|
set: $util.oneOfSetter($oneOfFields)
|
|
25492
25501
|
});
|
|
25493
25502
|
|
|
@@ -25525,6 +25534,8 @@
|
|
|
25525
25534
|
$root.google.analytics.data.v1alpha.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
25526
25535
|
if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter"))
|
|
25527
25536
|
$root.google.analytics.data.v1alpha.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
25537
|
+
if (message.emptyFilter != null && Object.hasOwnProperty.call(message, "emptyFilter"))
|
|
25538
|
+
$root.google.analytics.data.v1alpha.EmptyFilter.encode(message.emptyFilter, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
25528
25539
|
return writer;
|
|
25529
25540
|
};
|
|
25530
25541
|
|
|
@@ -25579,6 +25590,10 @@
|
|
|
25579
25590
|
message.betweenFilter = $root.google.analytics.data.v1alpha.BetweenFilter.decode(reader, reader.uint32());
|
|
25580
25591
|
break;
|
|
25581
25592
|
}
|
|
25593
|
+
case 6: {
|
|
25594
|
+
message.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.decode(reader, reader.uint32());
|
|
25595
|
+
break;
|
|
25596
|
+
}
|
|
25582
25597
|
default:
|
|
25583
25598
|
reader.skipType(tag & 7);
|
|
25584
25599
|
break;
|
|
@@ -25656,6 +25671,16 @@
|
|
|
25656
25671
|
return "betweenFilter." + error;
|
|
25657
25672
|
}
|
|
25658
25673
|
}
|
|
25674
|
+
if (message.emptyFilter != null && message.hasOwnProperty("emptyFilter")) {
|
|
25675
|
+
if (properties.oneFilter === 1)
|
|
25676
|
+
return "oneFilter: multiple values";
|
|
25677
|
+
properties.oneFilter = 1;
|
|
25678
|
+
{
|
|
25679
|
+
var error = $root.google.analytics.data.v1alpha.EmptyFilter.verify(message.emptyFilter);
|
|
25680
|
+
if (error)
|
|
25681
|
+
return "emptyFilter." + error;
|
|
25682
|
+
}
|
|
25683
|
+
}
|
|
25659
25684
|
return null;
|
|
25660
25685
|
};
|
|
25661
25686
|
|
|
@@ -25693,6 +25718,11 @@
|
|
|
25693
25718
|
throw TypeError(".google.analytics.data.v1alpha.Filter.betweenFilter: object expected");
|
|
25694
25719
|
message.betweenFilter = $root.google.analytics.data.v1alpha.BetweenFilter.fromObject(object.betweenFilter);
|
|
25695
25720
|
}
|
|
25721
|
+
if (object.emptyFilter != null) {
|
|
25722
|
+
if (typeof object.emptyFilter !== "object")
|
|
25723
|
+
throw TypeError(".google.analytics.data.v1alpha.Filter.emptyFilter: object expected");
|
|
25724
|
+
message.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.fromObject(object.emptyFilter);
|
|
25725
|
+
}
|
|
25696
25726
|
return message;
|
|
25697
25727
|
};
|
|
25698
25728
|
|
|
@@ -25733,6 +25763,11 @@
|
|
|
25733
25763
|
if (options.oneofs)
|
|
25734
25764
|
object.oneFilter = "betweenFilter";
|
|
25735
25765
|
}
|
|
25766
|
+
if (message.emptyFilter != null && message.hasOwnProperty("emptyFilter")) {
|
|
25767
|
+
object.emptyFilter = $root.google.analytics.data.v1alpha.EmptyFilter.toObject(message.emptyFilter, options);
|
|
25768
|
+
if (options.oneofs)
|
|
25769
|
+
object.oneFilter = "emptyFilter";
|
|
25770
|
+
}
|
|
25736
25771
|
return object;
|
|
25737
25772
|
};
|
|
25738
25773
|
|
|
@@ -27619,6 +27654,181 @@
|
|
|
27619
27654
|
return BetweenFilter;
|
|
27620
27655
|
})();
|
|
27621
27656
|
|
|
27657
|
+
v1alpha.EmptyFilter = (function() {
|
|
27658
|
+
|
|
27659
|
+
/**
|
|
27660
|
+
* Properties of an EmptyFilter.
|
|
27661
|
+
* @memberof google.analytics.data.v1alpha
|
|
27662
|
+
* @interface IEmptyFilter
|
|
27663
|
+
*/
|
|
27664
|
+
|
|
27665
|
+
/**
|
|
27666
|
+
* Constructs a new EmptyFilter.
|
|
27667
|
+
* @memberof google.analytics.data.v1alpha
|
|
27668
|
+
* @classdesc Represents an EmptyFilter.
|
|
27669
|
+
* @implements IEmptyFilter
|
|
27670
|
+
* @constructor
|
|
27671
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter=} [properties] Properties to set
|
|
27672
|
+
*/
|
|
27673
|
+
function EmptyFilter(properties) {
|
|
27674
|
+
if (properties)
|
|
27675
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27676
|
+
if (properties[keys[i]] != null)
|
|
27677
|
+
this[keys[i]] = properties[keys[i]];
|
|
27678
|
+
}
|
|
27679
|
+
|
|
27680
|
+
/**
|
|
27681
|
+
* Creates a new EmptyFilter instance using the specified properties.
|
|
27682
|
+
* @function create
|
|
27683
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27684
|
+
* @static
|
|
27685
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter=} [properties] Properties to set
|
|
27686
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter instance
|
|
27687
|
+
*/
|
|
27688
|
+
EmptyFilter.create = function create(properties) {
|
|
27689
|
+
return new EmptyFilter(properties);
|
|
27690
|
+
};
|
|
27691
|
+
|
|
27692
|
+
/**
|
|
27693
|
+
* Encodes the specified EmptyFilter message. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
27694
|
+
* @function encode
|
|
27695
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27696
|
+
* @static
|
|
27697
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter} message EmptyFilter message or plain object to encode
|
|
27698
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27699
|
+
* @returns {$protobuf.Writer} Writer
|
|
27700
|
+
*/
|
|
27701
|
+
EmptyFilter.encode = function encode(message, writer) {
|
|
27702
|
+
if (!writer)
|
|
27703
|
+
writer = $Writer.create();
|
|
27704
|
+
return writer;
|
|
27705
|
+
};
|
|
27706
|
+
|
|
27707
|
+
/**
|
|
27708
|
+
* Encodes the specified EmptyFilter message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.EmptyFilter.verify|verify} messages.
|
|
27709
|
+
* @function encodeDelimited
|
|
27710
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27711
|
+
* @static
|
|
27712
|
+
* @param {google.analytics.data.v1alpha.IEmptyFilter} message EmptyFilter message or plain object to encode
|
|
27713
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27714
|
+
* @returns {$protobuf.Writer} Writer
|
|
27715
|
+
*/
|
|
27716
|
+
EmptyFilter.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27717
|
+
return this.encode(message, writer).ldelim();
|
|
27718
|
+
};
|
|
27719
|
+
|
|
27720
|
+
/**
|
|
27721
|
+
* Decodes an EmptyFilter message from the specified reader or buffer.
|
|
27722
|
+
* @function decode
|
|
27723
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27724
|
+
* @static
|
|
27725
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27726
|
+
* @param {number} [length] Message length if known beforehand
|
|
27727
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27728
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27729
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27730
|
+
*/
|
|
27731
|
+
EmptyFilter.decode = function decode(reader, length) {
|
|
27732
|
+
if (!(reader instanceof $Reader))
|
|
27733
|
+
reader = $Reader.create(reader);
|
|
27734
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.EmptyFilter();
|
|
27735
|
+
while (reader.pos < end) {
|
|
27736
|
+
var tag = reader.uint32();
|
|
27737
|
+
switch (tag >>> 3) {
|
|
27738
|
+
default:
|
|
27739
|
+
reader.skipType(tag & 7);
|
|
27740
|
+
break;
|
|
27741
|
+
}
|
|
27742
|
+
}
|
|
27743
|
+
return message;
|
|
27744
|
+
};
|
|
27745
|
+
|
|
27746
|
+
/**
|
|
27747
|
+
* Decodes an EmptyFilter message from the specified reader or buffer, length delimited.
|
|
27748
|
+
* @function decodeDelimited
|
|
27749
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27750
|
+
* @static
|
|
27751
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27752
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27755
|
+
*/
|
|
27756
|
+
EmptyFilter.decodeDelimited = function decodeDelimited(reader) {
|
|
27757
|
+
if (!(reader instanceof $Reader))
|
|
27758
|
+
reader = new $Reader(reader);
|
|
27759
|
+
return this.decode(reader, reader.uint32());
|
|
27760
|
+
};
|
|
27761
|
+
|
|
27762
|
+
/**
|
|
27763
|
+
* Verifies an EmptyFilter message.
|
|
27764
|
+
* @function verify
|
|
27765
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27766
|
+
* @static
|
|
27767
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27768
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27769
|
+
*/
|
|
27770
|
+
EmptyFilter.verify = function verify(message) {
|
|
27771
|
+
if (typeof message !== "object" || message === null)
|
|
27772
|
+
return "object expected";
|
|
27773
|
+
return null;
|
|
27774
|
+
};
|
|
27775
|
+
|
|
27776
|
+
/**
|
|
27777
|
+
* Creates an EmptyFilter message from a plain object. Also converts values to their respective internal types.
|
|
27778
|
+
* @function fromObject
|
|
27779
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27780
|
+
* @static
|
|
27781
|
+
* @param {Object.<string,*>} object Plain object
|
|
27782
|
+
* @returns {google.analytics.data.v1alpha.EmptyFilter} EmptyFilter
|
|
27783
|
+
*/
|
|
27784
|
+
EmptyFilter.fromObject = function fromObject(object) {
|
|
27785
|
+
if (object instanceof $root.google.analytics.data.v1alpha.EmptyFilter)
|
|
27786
|
+
return object;
|
|
27787
|
+
return new $root.google.analytics.data.v1alpha.EmptyFilter();
|
|
27788
|
+
};
|
|
27789
|
+
|
|
27790
|
+
/**
|
|
27791
|
+
* Creates a plain object from an EmptyFilter message. Also converts values to other types if specified.
|
|
27792
|
+
* @function toObject
|
|
27793
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27794
|
+
* @static
|
|
27795
|
+
* @param {google.analytics.data.v1alpha.EmptyFilter} message EmptyFilter
|
|
27796
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27797
|
+
* @returns {Object.<string,*>} Plain object
|
|
27798
|
+
*/
|
|
27799
|
+
EmptyFilter.toObject = function toObject() {
|
|
27800
|
+
return {};
|
|
27801
|
+
};
|
|
27802
|
+
|
|
27803
|
+
/**
|
|
27804
|
+
* Converts this EmptyFilter to JSON.
|
|
27805
|
+
* @function toJSON
|
|
27806
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27807
|
+
* @instance
|
|
27808
|
+
* @returns {Object.<string,*>} JSON object
|
|
27809
|
+
*/
|
|
27810
|
+
EmptyFilter.prototype.toJSON = function toJSON() {
|
|
27811
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27812
|
+
};
|
|
27813
|
+
|
|
27814
|
+
/**
|
|
27815
|
+
* Gets the default type url for EmptyFilter
|
|
27816
|
+
* @function getTypeUrl
|
|
27817
|
+
* @memberof google.analytics.data.v1alpha.EmptyFilter
|
|
27818
|
+
* @static
|
|
27819
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27820
|
+
* @returns {string} The default type url
|
|
27821
|
+
*/
|
|
27822
|
+
EmptyFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27823
|
+
if (typeUrlPrefix === undefined) {
|
|
27824
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
27825
|
+
}
|
|
27826
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.EmptyFilter";
|
|
27827
|
+
};
|
|
27828
|
+
|
|
27829
|
+
return EmptyFilter;
|
|
27830
|
+
})();
|
|
27831
|
+
|
|
27622
27832
|
v1alpha.NumericValue = (function() {
|
|
27623
27833
|
|
|
27624
27834
|
/**
|
|
@@ -28928,6 +29138,7 @@
|
|
|
28928
29138
|
* @property {string|null} [timeZone] ResponseMetaData timeZone
|
|
28929
29139
|
* @property {string|null} [emptyReason] ResponseMetaData emptyReason
|
|
28930
29140
|
* @property {boolean|null} [subjectToThresholding] ResponseMetaData subjectToThresholding
|
|
29141
|
+
* @property {Array.<google.analytics.data.v1alpha.ISamplingMetadata>|null} [samplingMetadatas] ResponseMetaData samplingMetadatas
|
|
28931
29142
|
*/
|
|
28932
29143
|
|
|
28933
29144
|
/**
|
|
@@ -28939,6 +29150,7 @@
|
|
|
28939
29150
|
* @param {google.analytics.data.v1alpha.IResponseMetaData=} [properties] Properties to set
|
|
28940
29151
|
*/
|
|
28941
29152
|
function ResponseMetaData(properties) {
|
|
29153
|
+
this.samplingMetadatas = [];
|
|
28942
29154
|
if (properties)
|
|
28943
29155
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28944
29156
|
if (properties[keys[i]] != null)
|
|
@@ -28993,6 +29205,14 @@
|
|
|
28993
29205
|
*/
|
|
28994
29206
|
ResponseMetaData.prototype.subjectToThresholding = null;
|
|
28995
29207
|
|
|
29208
|
+
/**
|
|
29209
|
+
* ResponseMetaData samplingMetadatas.
|
|
29210
|
+
* @member {Array.<google.analytics.data.v1alpha.ISamplingMetadata>} samplingMetadatas
|
|
29211
|
+
* @memberof google.analytics.data.v1alpha.ResponseMetaData
|
|
29212
|
+
* @instance
|
|
29213
|
+
*/
|
|
29214
|
+
ResponseMetaData.prototype.samplingMetadatas = $util.emptyArray;
|
|
29215
|
+
|
|
28996
29216
|
// OneOf field names bound to virtual getters and setters
|
|
28997
29217
|
var $oneOfFields;
|
|
28998
29218
|
|
|
@@ -29087,6 +29307,9 @@
|
|
|
29087
29307
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.emptyReason);
|
|
29088
29308
|
if (message.subjectToThresholding != null && Object.hasOwnProperty.call(message, "subjectToThresholding"))
|
|
29089
29309
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.subjectToThresholding);
|
|
29310
|
+
if (message.samplingMetadatas != null && message.samplingMetadatas.length)
|
|
29311
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i)
|
|
29312
|
+
$root.google.analytics.data.v1alpha.SamplingMetadata.encode(message.samplingMetadatas[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
29090
29313
|
return writer;
|
|
29091
29314
|
};
|
|
29092
29315
|
|
|
@@ -29145,6 +29368,12 @@
|
|
|
29145
29368
|
message.subjectToThresholding = reader.bool();
|
|
29146
29369
|
break;
|
|
29147
29370
|
}
|
|
29371
|
+
case 9: {
|
|
29372
|
+
if (!(message.samplingMetadatas && message.samplingMetadatas.length))
|
|
29373
|
+
message.samplingMetadatas = [];
|
|
29374
|
+
message.samplingMetadatas.push($root.google.analytics.data.v1alpha.SamplingMetadata.decode(reader, reader.uint32()));
|
|
29375
|
+
break;
|
|
29376
|
+
}
|
|
29148
29377
|
default:
|
|
29149
29378
|
reader.skipType(tag & 7);
|
|
29150
29379
|
break;
|
|
@@ -29212,6 +29441,15 @@
|
|
|
29212
29441
|
if (typeof message.subjectToThresholding !== "boolean")
|
|
29213
29442
|
return "subjectToThresholding: boolean expected";
|
|
29214
29443
|
}
|
|
29444
|
+
if (message.samplingMetadatas != null && message.hasOwnProperty("samplingMetadatas")) {
|
|
29445
|
+
if (!Array.isArray(message.samplingMetadatas))
|
|
29446
|
+
return "samplingMetadatas: array expected";
|
|
29447
|
+
for (var i = 0; i < message.samplingMetadatas.length; ++i) {
|
|
29448
|
+
var error = $root.google.analytics.data.v1alpha.SamplingMetadata.verify(message.samplingMetadatas[i]);
|
|
29449
|
+
if (error)
|
|
29450
|
+
return "samplingMetadatas." + error;
|
|
29451
|
+
}
|
|
29452
|
+
}
|
|
29215
29453
|
return null;
|
|
29216
29454
|
};
|
|
29217
29455
|
|
|
@@ -29242,6 +29480,16 @@
|
|
|
29242
29480
|
message.emptyReason = String(object.emptyReason);
|
|
29243
29481
|
if (object.subjectToThresholding != null)
|
|
29244
29482
|
message.subjectToThresholding = Boolean(object.subjectToThresholding);
|
|
29483
|
+
if (object.samplingMetadatas) {
|
|
29484
|
+
if (!Array.isArray(object.samplingMetadatas))
|
|
29485
|
+
throw TypeError(".google.analytics.data.v1alpha.ResponseMetaData.samplingMetadatas: array expected");
|
|
29486
|
+
message.samplingMetadatas = [];
|
|
29487
|
+
for (var i = 0; i < object.samplingMetadatas.length; ++i) {
|
|
29488
|
+
if (typeof object.samplingMetadatas[i] !== "object")
|
|
29489
|
+
throw TypeError(".google.analytics.data.v1alpha.ResponseMetaData.samplingMetadatas: object expected");
|
|
29490
|
+
message.samplingMetadatas[i] = $root.google.analytics.data.v1alpha.SamplingMetadata.fromObject(object.samplingMetadatas[i]);
|
|
29491
|
+
}
|
|
29492
|
+
}
|
|
29245
29493
|
return message;
|
|
29246
29494
|
};
|
|
29247
29495
|
|
|
@@ -29258,6 +29506,8 @@
|
|
|
29258
29506
|
if (!options)
|
|
29259
29507
|
options = {};
|
|
29260
29508
|
var object = {};
|
|
29509
|
+
if (options.arrays || options.defaults)
|
|
29510
|
+
object.samplingMetadatas = [];
|
|
29261
29511
|
if (options.defaults)
|
|
29262
29512
|
object.dataLossFromOtherRow = false;
|
|
29263
29513
|
if (message.dataLossFromOtherRow != null && message.hasOwnProperty("dataLossFromOtherRow"))
|
|
@@ -29287,6 +29537,11 @@
|
|
|
29287
29537
|
if (options.oneofs)
|
|
29288
29538
|
object._subjectToThresholding = "subjectToThresholding";
|
|
29289
29539
|
}
|
|
29540
|
+
if (message.samplingMetadatas && message.samplingMetadatas.length) {
|
|
29541
|
+
object.samplingMetadatas = [];
|
|
29542
|
+
for (var j = 0; j < message.samplingMetadatas.length; ++j)
|
|
29543
|
+
object.samplingMetadatas[j] = $root.google.analytics.data.v1alpha.SamplingMetadata.toObject(message.samplingMetadatas[j], options);
|
|
29544
|
+
}
|
|
29290
29545
|
return object;
|
|
29291
29546
|
};
|
|
29292
29547
|
|
package/build/protos/protos.json
CHANGED
|
@@ -2878,7 +2878,8 @@
|
|
|
2878
2878
|
"stringFilter",
|
|
2879
2879
|
"inListFilter",
|
|
2880
2880
|
"numericFilter",
|
|
2881
|
-
"betweenFilter"
|
|
2881
|
+
"betweenFilter",
|
|
2882
|
+
"emptyFilter"
|
|
2882
2883
|
]
|
|
2883
2884
|
}
|
|
2884
2885
|
},
|
|
@@ -2902,6 +2903,10 @@
|
|
|
2902
2903
|
"betweenFilter": {
|
|
2903
2904
|
"type": "BetweenFilter",
|
|
2904
2905
|
"id": 5
|
|
2906
|
+
},
|
|
2907
|
+
"emptyFilter": {
|
|
2908
|
+
"type": "EmptyFilter",
|
|
2909
|
+
"id": 6
|
|
2905
2910
|
}
|
|
2906
2911
|
}
|
|
2907
2912
|
},
|
|
@@ -3039,6 +3044,9 @@
|
|
|
3039
3044
|
}
|
|
3040
3045
|
}
|
|
3041
3046
|
},
|
|
3047
|
+
"EmptyFilter": {
|
|
3048
|
+
"fields": {}
|
|
3049
|
+
},
|
|
3042
3050
|
"NumericValue": {
|
|
3043
3051
|
"oneofs": {
|
|
3044
3052
|
"oneValue": {
|
|
@@ -3193,6 +3201,11 @@
|
|
|
3193
3201
|
"options": {
|
|
3194
3202
|
"proto3_optional": true
|
|
3195
3203
|
}
|
|
3204
|
+
},
|
|
3205
|
+
"samplingMetadatas": {
|
|
3206
|
+
"rule": "repeated",
|
|
3207
|
+
"type": "SamplingMetadata",
|
|
3208
|
+
"id": 9
|
|
3196
3209
|
}
|
|
3197
3210
|
},
|
|
3198
3211
|
"nested": {
|
package/build/src/index.js
CHANGED
|
@@ -719,7 +719,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
719
719
|
listAudienceLists(request: protos.google.analytics.data.v1alpha.IListAudienceListsRequest, options: CallOptions, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListAudienceListsRequest, protos.google.analytics.data.v1alpha.IListAudienceListsResponse | null | undefined, protos.google.analytics.data.v1alpha.IAudienceList>): void;
|
|
720
720
|
listAudienceLists(request: protos.google.analytics.data.v1alpha.IListAudienceListsRequest, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListAudienceListsRequest, protos.google.analytics.data.v1alpha.IListAudienceListsResponse | null | undefined, protos.google.analytics.data.v1alpha.IAudienceList>): void;
|
|
721
721
|
/**
|
|
722
|
-
* Equivalent to `
|
|
722
|
+
* Equivalent to `listAudienceLists`, but returns a NodeJS Stream object.
|
|
723
723
|
* @param {Object} request
|
|
724
724
|
* The request object that will be sent.
|
|
725
725
|
* @param {string} request.parent
|
|
@@ -833,7 +833,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
833
833
|
listRecurringAudienceLists(request: protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, options: CallOptions, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, protos.google.analytics.data.v1alpha.IListRecurringAudienceListsResponse | null | undefined, protos.google.analytics.data.v1alpha.IRecurringAudienceList>): void;
|
|
834
834
|
listRecurringAudienceLists(request: protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListRecurringAudienceListsRequest, protos.google.analytics.data.v1alpha.IListRecurringAudienceListsResponse | null | undefined, protos.google.analytics.data.v1alpha.IRecurringAudienceList>): void;
|
|
835
835
|
/**
|
|
836
|
-
* Equivalent to `
|
|
836
|
+
* Equivalent to `listRecurringAudienceLists`, but returns a NodeJS Stream object.
|
|
837
837
|
* @param {Object} request
|
|
838
838
|
* The request object that will be sent.
|
|
839
839
|
* @param {string} request.parent
|
|
@@ -932,7 +932,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
932
932
|
listReportTasks(request: protos.google.analytics.data.v1alpha.IListReportTasksRequest, options: CallOptions, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListReportTasksRequest, protos.google.analytics.data.v1alpha.IListReportTasksResponse | null | undefined, protos.google.analytics.data.v1alpha.IReportTask>): void;
|
|
933
933
|
listReportTasks(request: protos.google.analytics.data.v1alpha.IListReportTasksRequest, callback: PaginationCallback<protos.google.analytics.data.v1alpha.IListReportTasksRequest, protos.google.analytics.data.v1alpha.IListReportTasksResponse | null | undefined, protos.google.analytics.data.v1alpha.IReportTask>): void;
|
|
934
934
|
/**
|
|
935
|
-
* Equivalent to `
|
|
935
|
+
* Equivalent to `listReportTasks`, but returns a NodeJS Stream object.
|
|
936
936
|
* @param {Object} request
|
|
937
937
|
* The request object that will be sent.
|
|
938
938
|
* @param {string} request.parent
|
|
@@ -1012,7 +1012,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
1012
1012
|
* // doThingsWith(response)
|
|
1013
1013
|
* ```
|
|
1014
1014
|
*/
|
|
1015
|
-
getOperation(request: protos.google.longrunning.GetOperationRequest,
|
|
1015
|
+
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]>;
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Lists operations that match the specified filter in the request. If the
|
|
1018
1018
|
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
@@ -1075,7 +1075,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
1075
1075
|
* await client.cancelOperation({name: ''});
|
|
1076
1076
|
* ```
|
|
1077
1077
|
*/
|
|
1078
|
-
cancelOperation(request: protos.google.longrunning.CancelOperationRequest,
|
|
1078
|
+
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Deletes a long-running operation. This method indicates that the client is
|
|
1081
1081
|
* no longer interested in the operation result. It does not cancel the
|
|
@@ -1101,7 +1101,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
1101
1101
|
* await client.deleteOperation({name: ''});
|
|
1102
1102
|
* ```
|
|
1103
1103
|
*/
|
|
1104
|
-
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest,
|
|
1104
|
+
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Return a fully-qualified audienceList resource name string.
|
|
1107
1107
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2025 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.
|
|
@@ -606,7 +606,7 @@ class AlphaAnalyticsDataClient {
|
|
|
606
606
|
return this.innerApiCalls.listAudienceLists(request, options, callback);
|
|
607
607
|
}
|
|
608
608
|
/**
|
|
609
|
-
* Equivalent to `
|
|
609
|
+
* Equivalent to `listAudienceLists`, but returns a NodeJS Stream object.
|
|
610
610
|
* @param {Object} request
|
|
611
611
|
* The request object that will be sent.
|
|
612
612
|
* @param {string} request.parent
|
|
@@ -718,7 +718,7 @@ class AlphaAnalyticsDataClient {
|
|
|
718
718
|
return this.innerApiCalls.listRecurringAudienceLists(request, options, callback);
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
721
|
-
* Equivalent to `
|
|
721
|
+
* Equivalent to `listRecurringAudienceLists`, but returns a NodeJS Stream object.
|
|
722
722
|
* @param {Object} request
|
|
723
723
|
* The request object that will be sent.
|
|
724
724
|
* @param {string} request.parent
|
|
@@ -834,7 +834,7 @@ class AlphaAnalyticsDataClient {
|
|
|
834
834
|
return this.innerApiCalls.listReportTasks(request, options, callback);
|
|
835
835
|
}
|
|
836
836
|
/**
|
|
837
|
-
* Equivalent to `
|
|
837
|
+
* Equivalent to `listReportTasks`, but returns a NodeJS Stream object.
|
|
838
838
|
* @param {Object} request
|
|
839
839
|
* The request object that will be sent.
|
|
840
840
|
* @param {string} request.parent
|
|
@@ -942,7 +942,23 @@ class AlphaAnalyticsDataClient {
|
|
|
942
942
|
* // doThingsWith(response)
|
|
943
943
|
* ```
|
|
944
944
|
*/
|
|
945
|
-
getOperation(request,
|
|
945
|
+
getOperation(request, optionsOrCallback, callback) {
|
|
946
|
+
var _a;
|
|
947
|
+
let options;
|
|
948
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
949
|
+
callback = optionsOrCallback;
|
|
950
|
+
options = {};
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
options = optionsOrCallback;
|
|
954
|
+
}
|
|
955
|
+
options = options || {};
|
|
956
|
+
options.otherArgs = options.otherArgs || {};
|
|
957
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
958
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
959
|
+
this._gaxModule.routingHeader.fromParams({
|
|
960
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
961
|
+
});
|
|
946
962
|
return this.operationsClient.getOperation(request, options, callback);
|
|
947
963
|
}
|
|
948
964
|
/**
|
|
@@ -976,6 +992,14 @@ class AlphaAnalyticsDataClient {
|
|
|
976
992
|
* ```
|
|
977
993
|
*/
|
|
978
994
|
listOperationsAsync(request, options) {
|
|
995
|
+
var _a;
|
|
996
|
+
options = options || {};
|
|
997
|
+
options.otherArgs = options.otherArgs || {};
|
|
998
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
999
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1000
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1001
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1002
|
+
});
|
|
979
1003
|
return this.operationsClient.listOperationsAsync(request, options);
|
|
980
1004
|
}
|
|
981
1005
|
/**
|
|
@@ -1009,7 +1033,23 @@ class AlphaAnalyticsDataClient {
|
|
|
1009
1033
|
* await client.cancelOperation({name: ''});
|
|
1010
1034
|
* ```
|
|
1011
1035
|
*/
|
|
1012
|
-
cancelOperation(request,
|
|
1036
|
+
cancelOperation(request, optionsOrCallback, callback) {
|
|
1037
|
+
var _a;
|
|
1038
|
+
let options;
|
|
1039
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1040
|
+
callback = optionsOrCallback;
|
|
1041
|
+
options = {};
|
|
1042
|
+
}
|
|
1043
|
+
else {
|
|
1044
|
+
options = optionsOrCallback;
|
|
1045
|
+
}
|
|
1046
|
+
options = options || {};
|
|
1047
|
+
options.otherArgs = options.otherArgs || {};
|
|
1048
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1049
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1050
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1051
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1052
|
+
});
|
|
1013
1053
|
return this.operationsClient.cancelOperation(request, options, callback);
|
|
1014
1054
|
}
|
|
1015
1055
|
/**
|
|
@@ -1037,7 +1077,23 @@ class AlphaAnalyticsDataClient {
|
|
|
1037
1077
|
* await client.deleteOperation({name: ''});
|
|
1038
1078
|
* ```
|
|
1039
1079
|
*/
|
|
1040
|
-
deleteOperation(request,
|
|
1080
|
+
deleteOperation(request, optionsOrCallback, callback) {
|
|
1081
|
+
var _a;
|
|
1082
|
+
let options;
|
|
1083
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1084
|
+
callback = optionsOrCallback;
|
|
1085
|
+
options = {};
|
|
1086
|
+
}
|
|
1087
|
+
else {
|
|
1088
|
+
options = optionsOrCallback;
|
|
1089
|
+
}
|
|
1090
|
+
options = options || {};
|
|
1091
|
+
options.otherArgs = options.otherArgs || {};
|
|
1092
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1093
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1094
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1095
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1096
|
+
});
|
|
1041
1097
|
return this.operationsClient.deleteOperation(request, options, callback);
|
|
1042
1098
|
}
|
|
1043
1099
|
// --------------------
|
|
@@ -762,7 +762,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
762
762
|
listAudienceExports(request: protos.google.analytics.data.v1beta.IListAudienceExportsRequest, options: CallOptions, callback: PaginationCallback<protos.google.analytics.data.v1beta.IListAudienceExportsRequest, protos.google.analytics.data.v1beta.IListAudienceExportsResponse | null | undefined, protos.google.analytics.data.v1beta.IAudienceExport>): void;
|
|
763
763
|
listAudienceExports(request: protos.google.analytics.data.v1beta.IListAudienceExportsRequest, callback: PaginationCallback<protos.google.analytics.data.v1beta.IListAudienceExportsRequest, protos.google.analytics.data.v1beta.IListAudienceExportsResponse | null | undefined, protos.google.analytics.data.v1beta.IAudienceExport>): void;
|
|
764
764
|
/**
|
|
765
|
-
* Equivalent to `
|
|
765
|
+
* Equivalent to `listAudienceExports`, but returns a NodeJS Stream object.
|
|
766
766
|
* @param {Object} request
|
|
767
767
|
* The request object that will be sent.
|
|
768
768
|
* @param {string} request.parent
|
|
@@ -854,7 +854,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
854
854
|
* // doThingsWith(response)
|
|
855
855
|
* ```
|
|
856
856
|
*/
|
|
857
|
-
getOperation(request: protos.google.longrunning.GetOperationRequest,
|
|
857
|
+
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]>;
|
|
858
858
|
/**
|
|
859
859
|
* Lists operations that match the specified filter in the request. If the
|
|
860
860
|
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
@@ -917,7 +917,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
917
917
|
* await client.cancelOperation({name: ''});
|
|
918
918
|
* ```
|
|
919
919
|
*/
|
|
920
|
-
cancelOperation(request: protos.google.longrunning.CancelOperationRequest,
|
|
920
|
+
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
|
|
921
921
|
/**
|
|
922
922
|
* Deletes a long-running operation. This method indicates that the client is
|
|
923
923
|
* no longer interested in the operation result. It does not cancel the
|
|
@@ -943,7 +943,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
943
943
|
* await client.deleteOperation({name: ''});
|
|
944
944
|
* ```
|
|
945
945
|
*/
|
|
946
|
-
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest,
|
|
946
|
+
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
|
|
947
947
|
/**
|
|
948
948
|
* Return a fully-qualified audienceExport resource name string.
|
|
949
949
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2025 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.
|
|
@@ -554,7 +554,7 @@ class BetaAnalyticsDataClient {
|
|
|
554
554
|
return this.innerApiCalls.listAudienceExports(request, options, callback);
|
|
555
555
|
}
|
|
556
556
|
/**
|
|
557
|
-
* Equivalent to `
|
|
557
|
+
* Equivalent to `listAudienceExports`, but returns a NodeJS Stream object.
|
|
558
558
|
* @param {Object} request
|
|
559
559
|
* The request object that will be sent.
|
|
560
560
|
* @param {string} request.parent
|
|
@@ -674,7 +674,23 @@ class BetaAnalyticsDataClient {
|
|
|
674
674
|
* // doThingsWith(response)
|
|
675
675
|
* ```
|
|
676
676
|
*/
|
|
677
|
-
getOperation(request,
|
|
677
|
+
getOperation(request, optionsOrCallback, callback) {
|
|
678
|
+
var _a;
|
|
679
|
+
let options;
|
|
680
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
681
|
+
callback = optionsOrCallback;
|
|
682
|
+
options = {};
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
options = optionsOrCallback;
|
|
686
|
+
}
|
|
687
|
+
options = options || {};
|
|
688
|
+
options.otherArgs = options.otherArgs || {};
|
|
689
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
690
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
691
|
+
this._gaxModule.routingHeader.fromParams({
|
|
692
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
693
|
+
});
|
|
678
694
|
return this.operationsClient.getOperation(request, options, callback);
|
|
679
695
|
}
|
|
680
696
|
/**
|
|
@@ -708,6 +724,14 @@ class BetaAnalyticsDataClient {
|
|
|
708
724
|
* ```
|
|
709
725
|
*/
|
|
710
726
|
listOperationsAsync(request, options) {
|
|
727
|
+
var _a;
|
|
728
|
+
options = options || {};
|
|
729
|
+
options.otherArgs = options.otherArgs || {};
|
|
730
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
731
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
732
|
+
this._gaxModule.routingHeader.fromParams({
|
|
733
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
734
|
+
});
|
|
711
735
|
return this.operationsClient.listOperationsAsync(request, options);
|
|
712
736
|
}
|
|
713
737
|
/**
|
|
@@ -741,7 +765,23 @@ class BetaAnalyticsDataClient {
|
|
|
741
765
|
* await client.cancelOperation({name: ''});
|
|
742
766
|
* ```
|
|
743
767
|
*/
|
|
744
|
-
cancelOperation(request,
|
|
768
|
+
cancelOperation(request, optionsOrCallback, callback) {
|
|
769
|
+
var _a;
|
|
770
|
+
let options;
|
|
771
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
772
|
+
callback = optionsOrCallback;
|
|
773
|
+
options = {};
|
|
774
|
+
}
|
|
775
|
+
else {
|
|
776
|
+
options = optionsOrCallback;
|
|
777
|
+
}
|
|
778
|
+
options = options || {};
|
|
779
|
+
options.otherArgs = options.otherArgs || {};
|
|
780
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
781
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
782
|
+
this._gaxModule.routingHeader.fromParams({
|
|
783
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
784
|
+
});
|
|
745
785
|
return this.operationsClient.cancelOperation(request, options, callback);
|
|
746
786
|
}
|
|
747
787
|
/**
|
|
@@ -769,7 +809,23 @@ class BetaAnalyticsDataClient {
|
|
|
769
809
|
* await client.deleteOperation({name: ''});
|
|
770
810
|
* ```
|
|
771
811
|
*/
|
|
772
|
-
deleteOperation(request,
|
|
812
|
+
deleteOperation(request, optionsOrCallback, callback) {
|
|
813
|
+
var _a;
|
|
814
|
+
let options;
|
|
815
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
816
|
+
callback = optionsOrCallback;
|
|
817
|
+
options = {};
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
options = optionsOrCallback;
|
|
821
|
+
}
|
|
822
|
+
options = options || {};
|
|
823
|
+
options.otherArgs = options.otherArgs || {};
|
|
824
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
825
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
826
|
+
this._gaxModule.routingHeader.fromParams({
|
|
827
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
828
|
+
});
|
|
773
829
|
return this.operationsClient.deleteOperation(request, options, callback);
|
|
774
830
|
}
|
|
775
831
|
// --------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-analytics/data",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Data client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/mocha": "^9.0.0",
|
|
52
|
-
"@types/node": "^
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
53
|
"@types/sinon": "^17.0.0",
|
|
54
54
|
"c8": "^9.0.0",
|
|
55
55
|
"gapic-tools": "^0.4.0",
|