@google-analytics/data 4.3.0 → 4.4.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.
- package/CHANGELOG.md +7 -0
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +101 -16
- package/build/protos/protos.d.ts +128 -1
- package/build/protos/protos.js +348 -1
- package/build/protos/protos.json +58 -0
- package/build/src/index.js +1 -1
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +145 -18
- package/build/src/v1alpha/alpha_analytics_data_client.js +165 -10
- package/build/src/v1alpha/index.js +1 -1
- package/build/src/v1beta/beta_analytics_data_client.d.ts +11 -2
- package/build/src/v1beta/beta_analytics_data_client.js +37 -10
- package/build/src/v1beta/index.js +1 -1
- package/package.json +2 -2
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 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.
|
|
@@ -11191,6 +11191,7 @@
|
|
|
11191
11191
|
* @property {Array.<google.analytics.data.v1alpha.IAudienceDimension>|null} [dimensions] RecurringAudienceList dimensions
|
|
11192
11192
|
* @property {number|null} [activeDaysRemaining] RecurringAudienceList activeDaysRemaining
|
|
11193
11193
|
* @property {Array.<string>|null} [audienceLists] RecurringAudienceList audienceLists
|
|
11194
|
+
* @property {google.analytics.data.v1alpha.IWebhookNotification|null} [webhookNotification] RecurringAudienceList webhookNotification
|
|
11194
11195
|
*/
|
|
11195
11196
|
|
|
11196
11197
|
/**
|
|
@@ -11258,6 +11259,14 @@
|
|
|
11258
11259
|
*/
|
|
11259
11260
|
RecurringAudienceList.prototype.audienceLists = $util.emptyArray;
|
|
11260
11261
|
|
|
11262
|
+
/**
|
|
11263
|
+
* RecurringAudienceList webhookNotification.
|
|
11264
|
+
* @member {google.analytics.data.v1alpha.IWebhookNotification|null|undefined} webhookNotification
|
|
11265
|
+
* @memberof google.analytics.data.v1alpha.RecurringAudienceList
|
|
11266
|
+
* @instance
|
|
11267
|
+
*/
|
|
11268
|
+
RecurringAudienceList.prototype.webhookNotification = null;
|
|
11269
|
+
|
|
11261
11270
|
// OneOf field names bound to virtual getters and setters
|
|
11262
11271
|
var $oneOfFields;
|
|
11263
11272
|
|
|
@@ -11272,6 +11281,17 @@
|
|
|
11272
11281
|
set: $util.oneOfSetter($oneOfFields)
|
|
11273
11282
|
});
|
|
11274
11283
|
|
|
11284
|
+
/**
|
|
11285
|
+
* RecurringAudienceList _webhookNotification.
|
|
11286
|
+
* @member {"webhookNotification"|undefined} _webhookNotification
|
|
11287
|
+
* @memberof google.analytics.data.v1alpha.RecurringAudienceList
|
|
11288
|
+
* @instance
|
|
11289
|
+
*/
|
|
11290
|
+
Object.defineProperty(RecurringAudienceList.prototype, "_webhookNotification", {
|
|
11291
|
+
get: $util.oneOfGetter($oneOfFields = ["webhookNotification"]),
|
|
11292
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11293
|
+
});
|
|
11294
|
+
|
|
11275
11295
|
/**
|
|
11276
11296
|
* Creates a new RecurringAudienceList instance using the specified properties.
|
|
11277
11297
|
* @function create
|
|
@@ -11310,6 +11330,8 @@
|
|
|
11310
11330
|
if (message.audienceLists != null && message.audienceLists.length)
|
|
11311
11331
|
for (var i = 0; i < message.audienceLists.length; ++i)
|
|
11312
11332
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.audienceLists[i]);
|
|
11333
|
+
if (message.webhookNotification != null && Object.hasOwnProperty.call(message, "webhookNotification"))
|
|
11334
|
+
$root.google.analytics.data.v1alpha.WebhookNotification.encode(message.webhookNotification, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
11313
11335
|
return writer;
|
|
11314
11336
|
};
|
|
11315
11337
|
|
|
@@ -11372,6 +11394,10 @@
|
|
|
11372
11394
|
message.audienceLists.push(reader.string());
|
|
11373
11395
|
break;
|
|
11374
11396
|
}
|
|
11397
|
+
case 8: {
|
|
11398
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.decode(reader, reader.uint32());
|
|
11399
|
+
break;
|
|
11400
|
+
}
|
|
11375
11401
|
default:
|
|
11376
11402
|
reader.skipType(tag & 7);
|
|
11377
11403
|
break;
|
|
@@ -11438,6 +11464,14 @@
|
|
|
11438
11464
|
if (!$util.isString(message.audienceLists[i]))
|
|
11439
11465
|
return "audienceLists: string[] expected";
|
|
11440
11466
|
}
|
|
11467
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
11468
|
+
properties._webhookNotification = 1;
|
|
11469
|
+
{
|
|
11470
|
+
var error = $root.google.analytics.data.v1alpha.WebhookNotification.verify(message.webhookNotification);
|
|
11471
|
+
if (error)
|
|
11472
|
+
return "webhookNotification." + error;
|
|
11473
|
+
}
|
|
11474
|
+
}
|
|
11441
11475
|
return null;
|
|
11442
11476
|
};
|
|
11443
11477
|
|
|
@@ -11478,6 +11512,11 @@
|
|
|
11478
11512
|
for (var i = 0; i < object.audienceLists.length; ++i)
|
|
11479
11513
|
message.audienceLists[i] = String(object.audienceLists[i]);
|
|
11480
11514
|
}
|
|
11515
|
+
if (object.webhookNotification != null) {
|
|
11516
|
+
if (typeof object.webhookNotification !== "object")
|
|
11517
|
+
throw TypeError(".google.analytics.data.v1alpha.RecurringAudienceList.webhookNotification: object expected");
|
|
11518
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.fromObject(object.webhookNotification);
|
|
11519
|
+
}
|
|
11481
11520
|
return message;
|
|
11482
11521
|
};
|
|
11483
11522
|
|
|
@@ -11524,6 +11563,11 @@
|
|
|
11524
11563
|
for (var j = 0; j < message.audienceLists.length; ++j)
|
|
11525
11564
|
object.audienceLists[j] = message.audienceLists[j];
|
|
11526
11565
|
}
|
|
11566
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
11567
|
+
object.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.toObject(message.webhookNotification, options);
|
|
11568
|
+
if (options.oneofs)
|
|
11569
|
+
object._webhookNotification = "webhookNotification";
|
|
11570
|
+
}
|
|
11527
11571
|
return object;
|
|
11528
11572
|
};
|
|
11529
11573
|
|
|
@@ -11556,6 +11600,265 @@
|
|
|
11556
11600
|
return RecurringAudienceList;
|
|
11557
11601
|
})();
|
|
11558
11602
|
|
|
11603
|
+
v1alpha.WebhookNotification = (function() {
|
|
11604
|
+
|
|
11605
|
+
/**
|
|
11606
|
+
* Properties of a WebhookNotification.
|
|
11607
|
+
* @memberof google.analytics.data.v1alpha
|
|
11608
|
+
* @interface IWebhookNotification
|
|
11609
|
+
* @property {string|null} [uri] WebhookNotification uri
|
|
11610
|
+
* @property {string|null} [channelToken] WebhookNotification channelToken
|
|
11611
|
+
*/
|
|
11612
|
+
|
|
11613
|
+
/**
|
|
11614
|
+
* Constructs a new WebhookNotification.
|
|
11615
|
+
* @memberof google.analytics.data.v1alpha
|
|
11616
|
+
* @classdesc Represents a WebhookNotification.
|
|
11617
|
+
* @implements IWebhookNotification
|
|
11618
|
+
* @constructor
|
|
11619
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification=} [properties] Properties to set
|
|
11620
|
+
*/
|
|
11621
|
+
function WebhookNotification(properties) {
|
|
11622
|
+
if (properties)
|
|
11623
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11624
|
+
if (properties[keys[i]] != null)
|
|
11625
|
+
this[keys[i]] = properties[keys[i]];
|
|
11626
|
+
}
|
|
11627
|
+
|
|
11628
|
+
/**
|
|
11629
|
+
* WebhookNotification uri.
|
|
11630
|
+
* @member {string|null|undefined} uri
|
|
11631
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11632
|
+
* @instance
|
|
11633
|
+
*/
|
|
11634
|
+
WebhookNotification.prototype.uri = null;
|
|
11635
|
+
|
|
11636
|
+
/**
|
|
11637
|
+
* WebhookNotification channelToken.
|
|
11638
|
+
* @member {string|null|undefined} channelToken
|
|
11639
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11640
|
+
* @instance
|
|
11641
|
+
*/
|
|
11642
|
+
WebhookNotification.prototype.channelToken = null;
|
|
11643
|
+
|
|
11644
|
+
// OneOf field names bound to virtual getters and setters
|
|
11645
|
+
var $oneOfFields;
|
|
11646
|
+
|
|
11647
|
+
/**
|
|
11648
|
+
* WebhookNotification _uri.
|
|
11649
|
+
* @member {"uri"|undefined} _uri
|
|
11650
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11651
|
+
* @instance
|
|
11652
|
+
*/
|
|
11653
|
+
Object.defineProperty(WebhookNotification.prototype, "_uri", {
|
|
11654
|
+
get: $util.oneOfGetter($oneOfFields = ["uri"]),
|
|
11655
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11656
|
+
});
|
|
11657
|
+
|
|
11658
|
+
/**
|
|
11659
|
+
* WebhookNotification _channelToken.
|
|
11660
|
+
* @member {"channelToken"|undefined} _channelToken
|
|
11661
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11662
|
+
* @instance
|
|
11663
|
+
*/
|
|
11664
|
+
Object.defineProperty(WebhookNotification.prototype, "_channelToken", {
|
|
11665
|
+
get: $util.oneOfGetter($oneOfFields = ["channelToken"]),
|
|
11666
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11667
|
+
});
|
|
11668
|
+
|
|
11669
|
+
/**
|
|
11670
|
+
* Creates a new WebhookNotification instance using the specified properties.
|
|
11671
|
+
* @function create
|
|
11672
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11673
|
+
* @static
|
|
11674
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification=} [properties] Properties to set
|
|
11675
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification instance
|
|
11676
|
+
*/
|
|
11677
|
+
WebhookNotification.create = function create(properties) {
|
|
11678
|
+
return new WebhookNotification(properties);
|
|
11679
|
+
};
|
|
11680
|
+
|
|
11681
|
+
/**
|
|
11682
|
+
* Encodes the specified WebhookNotification message. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
11683
|
+
* @function encode
|
|
11684
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11685
|
+
* @static
|
|
11686
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification} message WebhookNotification message or plain object to encode
|
|
11687
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11688
|
+
* @returns {$protobuf.Writer} Writer
|
|
11689
|
+
*/
|
|
11690
|
+
WebhookNotification.encode = function encode(message, writer) {
|
|
11691
|
+
if (!writer)
|
|
11692
|
+
writer = $Writer.create();
|
|
11693
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
11694
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
|
|
11695
|
+
if (message.channelToken != null && Object.hasOwnProperty.call(message, "channelToken"))
|
|
11696
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.channelToken);
|
|
11697
|
+
return writer;
|
|
11698
|
+
};
|
|
11699
|
+
|
|
11700
|
+
/**
|
|
11701
|
+
* Encodes the specified WebhookNotification message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
11702
|
+
* @function encodeDelimited
|
|
11703
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11704
|
+
* @static
|
|
11705
|
+
* @param {google.analytics.data.v1alpha.IWebhookNotification} message WebhookNotification message or plain object to encode
|
|
11706
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11707
|
+
* @returns {$protobuf.Writer} Writer
|
|
11708
|
+
*/
|
|
11709
|
+
WebhookNotification.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11710
|
+
return this.encode(message, writer).ldelim();
|
|
11711
|
+
};
|
|
11712
|
+
|
|
11713
|
+
/**
|
|
11714
|
+
* Decodes a WebhookNotification message from the specified reader or buffer.
|
|
11715
|
+
* @function decode
|
|
11716
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11717
|
+
* @static
|
|
11718
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11719
|
+
* @param {number} [length] Message length if known beforehand
|
|
11720
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11721
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11722
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11723
|
+
*/
|
|
11724
|
+
WebhookNotification.decode = function decode(reader, length) {
|
|
11725
|
+
if (!(reader instanceof $Reader))
|
|
11726
|
+
reader = $Reader.create(reader);
|
|
11727
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.data.v1alpha.WebhookNotification();
|
|
11728
|
+
while (reader.pos < end) {
|
|
11729
|
+
var tag = reader.uint32();
|
|
11730
|
+
switch (tag >>> 3) {
|
|
11731
|
+
case 1: {
|
|
11732
|
+
message.uri = reader.string();
|
|
11733
|
+
break;
|
|
11734
|
+
}
|
|
11735
|
+
case 2: {
|
|
11736
|
+
message.channelToken = reader.string();
|
|
11737
|
+
break;
|
|
11738
|
+
}
|
|
11739
|
+
default:
|
|
11740
|
+
reader.skipType(tag & 7);
|
|
11741
|
+
break;
|
|
11742
|
+
}
|
|
11743
|
+
}
|
|
11744
|
+
return message;
|
|
11745
|
+
};
|
|
11746
|
+
|
|
11747
|
+
/**
|
|
11748
|
+
* Decodes a WebhookNotification message from the specified reader or buffer, length delimited.
|
|
11749
|
+
* @function decodeDelimited
|
|
11750
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11751
|
+
* @static
|
|
11752
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11753
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11754
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11755
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11756
|
+
*/
|
|
11757
|
+
WebhookNotification.decodeDelimited = function decodeDelimited(reader) {
|
|
11758
|
+
if (!(reader instanceof $Reader))
|
|
11759
|
+
reader = new $Reader(reader);
|
|
11760
|
+
return this.decode(reader, reader.uint32());
|
|
11761
|
+
};
|
|
11762
|
+
|
|
11763
|
+
/**
|
|
11764
|
+
* Verifies a WebhookNotification message.
|
|
11765
|
+
* @function verify
|
|
11766
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11767
|
+
* @static
|
|
11768
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11769
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11770
|
+
*/
|
|
11771
|
+
WebhookNotification.verify = function verify(message) {
|
|
11772
|
+
if (typeof message !== "object" || message === null)
|
|
11773
|
+
return "object expected";
|
|
11774
|
+
var properties = {};
|
|
11775
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
11776
|
+
properties._uri = 1;
|
|
11777
|
+
if (!$util.isString(message.uri))
|
|
11778
|
+
return "uri: string expected";
|
|
11779
|
+
}
|
|
11780
|
+
if (message.channelToken != null && message.hasOwnProperty("channelToken")) {
|
|
11781
|
+
properties._channelToken = 1;
|
|
11782
|
+
if (!$util.isString(message.channelToken))
|
|
11783
|
+
return "channelToken: string expected";
|
|
11784
|
+
}
|
|
11785
|
+
return null;
|
|
11786
|
+
};
|
|
11787
|
+
|
|
11788
|
+
/**
|
|
11789
|
+
* Creates a WebhookNotification message from a plain object. Also converts values to their respective internal types.
|
|
11790
|
+
* @function fromObject
|
|
11791
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11792
|
+
* @static
|
|
11793
|
+
* @param {Object.<string,*>} object Plain object
|
|
11794
|
+
* @returns {google.analytics.data.v1alpha.WebhookNotification} WebhookNotification
|
|
11795
|
+
*/
|
|
11796
|
+
WebhookNotification.fromObject = function fromObject(object) {
|
|
11797
|
+
if (object instanceof $root.google.analytics.data.v1alpha.WebhookNotification)
|
|
11798
|
+
return object;
|
|
11799
|
+
var message = new $root.google.analytics.data.v1alpha.WebhookNotification();
|
|
11800
|
+
if (object.uri != null)
|
|
11801
|
+
message.uri = String(object.uri);
|
|
11802
|
+
if (object.channelToken != null)
|
|
11803
|
+
message.channelToken = String(object.channelToken);
|
|
11804
|
+
return message;
|
|
11805
|
+
};
|
|
11806
|
+
|
|
11807
|
+
/**
|
|
11808
|
+
* Creates a plain object from a WebhookNotification message. Also converts values to other types if specified.
|
|
11809
|
+
* @function toObject
|
|
11810
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11811
|
+
* @static
|
|
11812
|
+
* @param {google.analytics.data.v1alpha.WebhookNotification} message WebhookNotification
|
|
11813
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11814
|
+
* @returns {Object.<string,*>} Plain object
|
|
11815
|
+
*/
|
|
11816
|
+
WebhookNotification.toObject = function toObject(message, options) {
|
|
11817
|
+
if (!options)
|
|
11818
|
+
options = {};
|
|
11819
|
+
var object = {};
|
|
11820
|
+
if (message.uri != null && message.hasOwnProperty("uri")) {
|
|
11821
|
+
object.uri = message.uri;
|
|
11822
|
+
if (options.oneofs)
|
|
11823
|
+
object._uri = "uri";
|
|
11824
|
+
}
|
|
11825
|
+
if (message.channelToken != null && message.hasOwnProperty("channelToken")) {
|
|
11826
|
+
object.channelToken = message.channelToken;
|
|
11827
|
+
if (options.oneofs)
|
|
11828
|
+
object._channelToken = "channelToken";
|
|
11829
|
+
}
|
|
11830
|
+
return object;
|
|
11831
|
+
};
|
|
11832
|
+
|
|
11833
|
+
/**
|
|
11834
|
+
* Converts this WebhookNotification to JSON.
|
|
11835
|
+
* @function toJSON
|
|
11836
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11837
|
+
* @instance
|
|
11838
|
+
* @returns {Object.<string,*>} JSON object
|
|
11839
|
+
*/
|
|
11840
|
+
WebhookNotification.prototype.toJSON = function toJSON() {
|
|
11841
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11842
|
+
};
|
|
11843
|
+
|
|
11844
|
+
/**
|
|
11845
|
+
* Gets the default type url for WebhookNotification
|
|
11846
|
+
* @function getTypeUrl
|
|
11847
|
+
* @memberof google.analytics.data.v1alpha.WebhookNotification
|
|
11848
|
+
* @static
|
|
11849
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11850
|
+
* @returns {string} The default type url
|
|
11851
|
+
*/
|
|
11852
|
+
WebhookNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
11853
|
+
if (typeUrlPrefix === undefined) {
|
|
11854
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
11855
|
+
}
|
|
11856
|
+
return typeUrlPrefix + "/google.analytics.data.v1alpha.WebhookNotification";
|
|
11857
|
+
};
|
|
11858
|
+
|
|
11859
|
+
return WebhookNotification;
|
|
11860
|
+
})();
|
|
11861
|
+
|
|
11559
11862
|
v1alpha.GetRecurringAudienceListRequest = (function() {
|
|
11560
11863
|
|
|
11561
11864
|
/**
|
|
@@ -13243,6 +13546,7 @@
|
|
|
13243
13546
|
* @property {string|null} [errorMessage] AudienceList errorMessage
|
|
13244
13547
|
* @property {number|null} [percentageCompleted] AudienceList percentageCompleted
|
|
13245
13548
|
* @property {string|null} [recurringAudienceList] AudienceList recurringAudienceList
|
|
13549
|
+
* @property {google.analytics.data.v1alpha.IWebhookNotification|null} [webhookNotification] AudienceList webhookNotification
|
|
13246
13550
|
*/
|
|
13247
13551
|
|
|
13248
13552
|
/**
|
|
@@ -13349,6 +13653,14 @@
|
|
|
13349
13653
|
*/
|
|
13350
13654
|
AudienceList.prototype.recurringAudienceList = null;
|
|
13351
13655
|
|
|
13656
|
+
/**
|
|
13657
|
+
* AudienceList webhookNotification.
|
|
13658
|
+
* @member {google.analytics.data.v1alpha.IWebhookNotification|null|undefined} webhookNotification
|
|
13659
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13660
|
+
* @instance
|
|
13661
|
+
*/
|
|
13662
|
+
AudienceList.prototype.webhookNotification = null;
|
|
13663
|
+
|
|
13352
13664
|
// OneOf field names bound to virtual getters and setters
|
|
13353
13665
|
var $oneOfFields;
|
|
13354
13666
|
|
|
@@ -13418,6 +13730,17 @@
|
|
|
13418
13730
|
set: $util.oneOfSetter($oneOfFields)
|
|
13419
13731
|
});
|
|
13420
13732
|
|
|
13733
|
+
/**
|
|
13734
|
+
* AudienceList _webhookNotification.
|
|
13735
|
+
* @member {"webhookNotification"|undefined} _webhookNotification
|
|
13736
|
+
* @memberof google.analytics.data.v1alpha.AudienceList
|
|
13737
|
+
* @instance
|
|
13738
|
+
*/
|
|
13739
|
+
Object.defineProperty(AudienceList.prototype, "_webhookNotification", {
|
|
13740
|
+
get: $util.oneOfGetter($oneOfFields = ["webhookNotification"]),
|
|
13741
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13742
|
+
});
|
|
13743
|
+
|
|
13421
13744
|
/**
|
|
13422
13745
|
* Creates a new AudienceList instance using the specified properties.
|
|
13423
13746
|
* @function create
|
|
@@ -13465,6 +13788,8 @@
|
|
|
13465
13788
|
writer.uint32(/* id 11, wireType 1 =*/89).double(message.percentageCompleted);
|
|
13466
13789
|
if (message.recurringAudienceList != null && Object.hasOwnProperty.call(message, "recurringAudienceList"))
|
|
13467
13790
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.recurringAudienceList);
|
|
13791
|
+
if (message.webhookNotification != null && Object.hasOwnProperty.call(message, "webhookNotification"))
|
|
13792
|
+
$root.google.analytics.data.v1alpha.WebhookNotification.encode(message.webhookNotification, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
13468
13793
|
return writer;
|
|
13469
13794
|
};
|
|
13470
13795
|
|
|
@@ -13545,6 +13870,10 @@
|
|
|
13545
13870
|
message.recurringAudienceList = reader.string();
|
|
13546
13871
|
break;
|
|
13547
13872
|
}
|
|
13873
|
+
case 13: {
|
|
13874
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.decode(reader, reader.uint32());
|
|
13875
|
+
break;
|
|
13876
|
+
}
|
|
13548
13877
|
default:
|
|
13549
13878
|
reader.skipType(tag & 7);
|
|
13550
13879
|
break;
|
|
@@ -13642,6 +13971,14 @@
|
|
|
13642
13971
|
if (!$util.isString(message.recurringAudienceList))
|
|
13643
13972
|
return "recurringAudienceList: string expected";
|
|
13644
13973
|
}
|
|
13974
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
13975
|
+
properties._webhookNotification = 1;
|
|
13976
|
+
{
|
|
13977
|
+
var error = $root.google.analytics.data.v1alpha.WebhookNotification.verify(message.webhookNotification);
|
|
13978
|
+
if (error)
|
|
13979
|
+
return "webhookNotification." + error;
|
|
13980
|
+
}
|
|
13981
|
+
}
|
|
13645
13982
|
return null;
|
|
13646
13983
|
};
|
|
13647
13984
|
|
|
@@ -13712,6 +14049,11 @@
|
|
|
13712
14049
|
message.percentageCompleted = Number(object.percentageCompleted);
|
|
13713
14050
|
if (object.recurringAudienceList != null)
|
|
13714
14051
|
message.recurringAudienceList = String(object.recurringAudienceList);
|
|
14052
|
+
if (object.webhookNotification != null) {
|
|
14053
|
+
if (typeof object.webhookNotification !== "object")
|
|
14054
|
+
throw TypeError(".google.analytics.data.v1alpha.AudienceList.webhookNotification: object expected");
|
|
14055
|
+
message.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.fromObject(object.webhookNotification);
|
|
14056
|
+
}
|
|
13715
14057
|
return message;
|
|
13716
14058
|
};
|
|
13717
14059
|
|
|
@@ -13779,6 +14121,11 @@
|
|
|
13779
14121
|
if (options.oneofs)
|
|
13780
14122
|
object._recurringAudienceList = "recurringAudienceList";
|
|
13781
14123
|
}
|
|
14124
|
+
if (message.webhookNotification != null && message.hasOwnProperty("webhookNotification")) {
|
|
14125
|
+
object.webhookNotification = $root.google.analytics.data.v1alpha.WebhookNotification.toObject(message.webhookNotification, options);
|
|
14126
|
+
if (options.oneofs)
|
|
14127
|
+
object._webhookNotification = "webhookNotification";
|
|
14128
|
+
}
|
|
13782
14129
|
return object;
|
|
13783
14130
|
};
|
|
13784
14131
|
|
package/build/protos/protos.json
CHANGED
|
@@ -1253,6 +1253,11 @@
|
|
|
1253
1253
|
"oneof": [
|
|
1254
1254
|
"activeDaysRemaining"
|
|
1255
1255
|
]
|
|
1256
|
+
},
|
|
1257
|
+
"_webhookNotification": {
|
|
1258
|
+
"oneof": [
|
|
1259
|
+
"webhookNotification"
|
|
1260
|
+
]
|
|
1256
1261
|
}
|
|
1257
1262
|
},
|
|
1258
1263
|
"fields": {
|
|
@@ -1300,6 +1305,46 @@
|
|
|
1300
1305
|
"options": {
|
|
1301
1306
|
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
1302
1307
|
}
|
|
1308
|
+
},
|
|
1309
|
+
"webhookNotification": {
|
|
1310
|
+
"type": "WebhookNotification",
|
|
1311
|
+
"id": 8,
|
|
1312
|
+
"options": {
|
|
1313
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1314
|
+
"proto3_optional": true
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
"WebhookNotification": {
|
|
1320
|
+
"oneofs": {
|
|
1321
|
+
"_uri": {
|
|
1322
|
+
"oneof": [
|
|
1323
|
+
"uri"
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
"_channelToken": {
|
|
1327
|
+
"oneof": [
|
|
1328
|
+
"channelToken"
|
|
1329
|
+
]
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
"fields": {
|
|
1333
|
+
"uri": {
|
|
1334
|
+
"type": "string",
|
|
1335
|
+
"id": 1,
|
|
1336
|
+
"options": {
|
|
1337
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1338
|
+
"proto3_optional": true
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"channelToken": {
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"id": 2,
|
|
1344
|
+
"options": {
|
|
1345
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1346
|
+
"proto3_optional": true
|
|
1347
|
+
}
|
|
1303
1348
|
}
|
|
1304
1349
|
}
|
|
1305
1350
|
},
|
|
@@ -1481,6 +1526,11 @@
|
|
|
1481
1526
|
"oneof": [
|
|
1482
1527
|
"recurringAudienceList"
|
|
1483
1528
|
]
|
|
1529
|
+
},
|
|
1530
|
+
"_webhookNotification": {
|
|
1531
|
+
"oneof": [
|
|
1532
|
+
"webhookNotification"
|
|
1533
|
+
]
|
|
1484
1534
|
}
|
|
1485
1535
|
},
|
|
1486
1536
|
"fields": {
|
|
@@ -1567,6 +1617,14 @@
|
|
|
1567
1617
|
"(google.api.field_behavior)": "OUTPUT_ONLY",
|
|
1568
1618
|
"proto3_optional": true
|
|
1569
1619
|
}
|
|
1620
|
+
},
|
|
1621
|
+
"webhookNotification": {
|
|
1622
|
+
"type": "WebhookNotification",
|
|
1623
|
+
"id": 13,
|
|
1624
|
+
"options": {
|
|
1625
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1626
|
+
"proto3_optional": true
|
|
1627
|
+
}
|
|
1570
1628
|
}
|
|
1571
1629
|
},
|
|
1572
1630
|
"nested": {
|
package/build/src/index.js
CHANGED