@wppconnect/wa-proto 2.3000.1051037982 → 2.3000.1051117015
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/WAProto.proto +2 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +33 -0
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1051117015
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -4752,6 +4752,7 @@ message MsgOpaqueData {
|
|
|
4752
4752
|
optional string mediaPngThumbnail = 61;
|
|
4753
4753
|
optional string qrUrl = 62;
|
|
4754
4754
|
optional MusicData musicData = 63;
|
|
4755
|
+
optional string pollAddedOptionName = 64;
|
|
4755
4756
|
message EventLocation {
|
|
4756
4757
|
optional double degreesLatitude = 1;
|
|
4757
4758
|
optional double degreesLongitude = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -64267,6 +64267,9 @@ export namespace waproto {
|
|
|
64267
64267
|
/** MsgOpaqueData musicData. */
|
|
64268
64268
|
musicData?: (waproto.MsgOpaqueData.MusicData.$Properties|null);
|
|
64269
64269
|
|
|
64270
|
+
/** MsgOpaqueData pollAddedOptionName. */
|
|
64271
|
+
pollAddedOptionName?: (string|null);
|
|
64272
|
+
|
|
64270
64273
|
/**
|
|
64271
64274
|
* Creates a new MsgOpaqueData instance using the specified properties.
|
|
64272
64275
|
* @param [properties] Properties to set
|
|
@@ -64525,6 +64528,9 @@ export namespace waproto {
|
|
|
64525
64528
|
/** MsgOpaqueData musicData */
|
|
64526
64529
|
musicData?: (waproto.MsgOpaqueData.MusicData.$Properties|null);
|
|
64527
64530
|
|
|
64531
|
+
/** MsgOpaqueData pollAddedOptionName */
|
|
64532
|
+
pollAddedOptionName?: (string|null);
|
|
64533
|
+
|
|
64528
64534
|
/** Unknown fields preserved while decoding when enabled */
|
|
64529
64535
|
$unknowns?: Uint8Array[];
|
|
64530
64536
|
}
|
package/dist/index.js
CHANGED
|
@@ -192597,6 +192597,7 @@ $root.waproto = (function() {
|
|
|
192597
192597
|
* @property {string|null} [mediaPngThumbnail] MsgOpaqueData mediaPngThumbnail
|
|
192598
192598
|
* @property {string|null} [qrUrl] MsgOpaqueData qrUrl
|
|
192599
192599
|
* @property {waproto.MsgOpaqueData.MusicData.$Properties|null} [musicData] MsgOpaqueData musicData
|
|
192600
|
+
* @property {string|null} [pollAddedOptionName] MsgOpaqueData pollAddedOptionName
|
|
192600
192601
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
192601
192602
|
*/
|
|
192602
192603
|
|
|
@@ -193093,6 +193094,14 @@ $root.waproto = (function() {
|
|
|
193093
193094
|
*/
|
|
193094
193095
|
MsgOpaqueData.prototype.musicData = null;
|
|
193095
193096
|
|
|
193097
|
+
/**
|
|
193098
|
+
* MsgOpaqueData pollAddedOptionName.
|
|
193099
|
+
* @member {string|null|undefined} pollAddedOptionName
|
|
193100
|
+
* @memberof waproto.MsgOpaqueData
|
|
193101
|
+
* @instance
|
|
193102
|
+
*/
|
|
193103
|
+
MsgOpaqueData.prototype.pollAddedOptionName = null;
|
|
193104
|
+
|
|
193096
193105
|
// OneOf field names bound to virtual getters and setters
|
|
193097
193106
|
var $oneOfFields;
|
|
193098
193107
|
|
|
@@ -193438,6 +193447,12 @@ $root.waproto = (function() {
|
|
|
193438
193447
|
set: $util.oneOfSetter($oneOfFields)
|
|
193439
193448
|
});
|
|
193440
193449
|
|
|
193450
|
+
// Virtual OneOf for proto3 optional field
|
|
193451
|
+
$Object.defineProperty(MsgOpaqueData.prototype, "_pollAddedOptionName", {
|
|
193452
|
+
get: $util.oneOfGetter($oneOfFields = ["pollAddedOptionName"]),
|
|
193453
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
193454
|
+
});
|
|
193455
|
+
|
|
193441
193456
|
/**
|
|
193442
193457
|
* Creates a new MsgOpaqueData instance using the specified properties.
|
|
193443
193458
|
* @function create
|
|
@@ -193587,6 +193602,8 @@ $root.waproto = (function() {
|
|
|
193587
193602
|
writer.uint32(/* id 62, wireType 2 =*/498).string(message.qrUrl);
|
|
193588
193603
|
if (message.musicData != null && $Object.hasOwnProperty.call(message, "musicData"))
|
|
193589
193604
|
$root.waproto.MsgOpaqueData.MusicData.encode(message.musicData, writer.uint32(/* id 63, wireType 2 =*/506).fork(), _depth + 1).ldelim();
|
|
193605
|
+
if (message.pollAddedOptionName != null && $Object.hasOwnProperty.call(message, "pollAddedOptionName"))
|
|
193606
|
+
writer.uint32(/* id 64, wireType 2 =*/514).string(message.pollAddedOptionName);
|
|
193590
193607
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
193591
193608
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
193592
193609
|
writer.raw(message.$unknowns[i]);
|
|
@@ -194051,6 +194068,13 @@ $root.waproto = (function() {
|
|
|
194051
194068
|
message._musicData = "musicData";
|
|
194052
194069
|
continue;
|
|
194053
194070
|
}
|
|
194071
|
+
case 64: {
|
|
194072
|
+
if (wireType !== 2)
|
|
194073
|
+
break;
|
|
194074
|
+
message.pollAddedOptionName = reader.stringVerify();
|
|
194075
|
+
message._pollAddedOptionName = "pollAddedOptionName";
|
|
194076
|
+
continue;
|
|
194077
|
+
}
|
|
194054
194078
|
}
|
|
194055
194079
|
reader.skipType(wireType, _depth, tag);
|
|
194056
194080
|
if (!reader.discardUnknown) {
|
|
@@ -194406,6 +194430,11 @@ $root.waproto = (function() {
|
|
|
194406
194430
|
return "musicData." + error;
|
|
194407
194431
|
}
|
|
194408
194432
|
}
|
|
194433
|
+
if (message.pollAddedOptionName != null && $Object.hasOwnProperty.call(message, "pollAddedOptionName")) {
|
|
194434
|
+
properties._pollAddedOptionName = 1;
|
|
194435
|
+
if (!$util.isString(message.pollAddedOptionName))
|
|
194436
|
+
return "pollAddedOptionName: string expected";
|
|
194437
|
+
}
|
|
194409
194438
|
return null;
|
|
194410
194439
|
};
|
|
194411
194440
|
|
|
@@ -194658,6 +194687,8 @@ $root.waproto = (function() {
|
|
|
194658
194687
|
throw $TypeError(".waproto.MsgOpaqueData.musicData: object expected");
|
|
194659
194688
|
message.musicData = $root.waproto.MsgOpaqueData.MusicData.fromObject(object.musicData, _depth + 1);
|
|
194660
194689
|
}
|
|
194690
|
+
if (object.pollAddedOptionName != null)
|
|
194691
|
+
message.pollAddedOptionName = $String(object.pollAddedOptionName);
|
|
194661
194692
|
return message;
|
|
194662
194693
|
};
|
|
194663
194694
|
|
|
@@ -194829,6 +194860,8 @@ $root.waproto = (function() {
|
|
|
194829
194860
|
object.qrUrl = message.qrUrl;
|
|
194830
194861
|
if (message.musicData != null && $Object.hasOwnProperty.call(message, "musicData"))
|
|
194831
194862
|
object.musicData = $root.waproto.MsgOpaqueData.MusicData.toObject(message.musicData, options, _depth + 1);
|
|
194863
|
+
if (message.pollAddedOptionName != null && $Object.hasOwnProperty.call(message, "pollAddedOptionName"))
|
|
194864
|
+
object.pollAddedOptionName = message.pollAddedOptionName;
|
|
194832
194865
|
return object;
|
|
194833
194866
|
};
|
|
194834
194867
|
|