@wppconnect/wa-proto 2.3000.1054468000 → 2.3000.1054569835
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 +20 -1
- package/dist/index.d.ts +69 -0
- package/dist/index.js +265 -1
- 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.1054569835
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -2192,6 +2192,24 @@ message EventAdditionalMetadata {
|
|
|
2192
2192
|
|
|
2193
2193
|
message EventInviteAdditionalMetadata {
|
|
2194
2194
|
optional bool isUpdated = 1;
|
|
2195
|
+
optional AccessStatus selfAccessStatus = 2;
|
|
2196
|
+
optional RsvpStatus selfRsvpStatus = 3;
|
|
2197
|
+
optional uint32 selfAdditionalGuestCount = 4;
|
|
2198
|
+
optional int64 selfInviteeLastUpdatedTsUsec = 5;
|
|
2199
|
+
enum AccessStatus {
|
|
2200
|
+
ACCESS_STATUS_UNKNOWN = 0;
|
|
2201
|
+
HAS_ACCESS = 1;
|
|
2202
|
+
LEFT_EVENT = 2;
|
|
2203
|
+
REMOVED_FROM_INVITE_LIST = 3;
|
|
2204
|
+
UNAVAILABLE = 4;
|
|
2205
|
+
}
|
|
2206
|
+
enum RsvpStatus {
|
|
2207
|
+
RSVP_STATUS_UNKNOWN = 0;
|
|
2208
|
+
GOING = 1;
|
|
2209
|
+
NOT_GOING = 2;
|
|
2210
|
+
MAYBE = 3;
|
|
2211
|
+
NO_RESPONSE = 4;
|
|
2212
|
+
}
|
|
2195
2213
|
}
|
|
2196
2214
|
|
|
2197
2215
|
message EventResponse {
|
|
@@ -3150,6 +3168,7 @@ message Message {
|
|
|
3150
3168
|
optional uint32 thumbnailWidth = 19;
|
|
3151
3169
|
optional string caption = 20;
|
|
3152
3170
|
optional string accessibilityLabel = 21;
|
|
3171
|
+
optional string qrUrl = 23;
|
|
3153
3172
|
}
|
|
3154
3173
|
|
|
3155
3174
|
message EncCommentMessage {
|
package/dist/index.d.ts
CHANGED
|
@@ -27844,6 +27844,18 @@ export namespace waproto {
|
|
|
27844
27844
|
/** EventInviteAdditionalMetadata isUpdated. */
|
|
27845
27845
|
isUpdated?: (boolean|null);
|
|
27846
27846
|
|
|
27847
|
+
/** EventInviteAdditionalMetadata selfAccessStatus. */
|
|
27848
|
+
selfAccessStatus?: (waproto.EventInviteAdditionalMetadata.AccessStatus|null);
|
|
27849
|
+
|
|
27850
|
+
/** EventInviteAdditionalMetadata selfRsvpStatus. */
|
|
27851
|
+
selfRsvpStatus?: (waproto.EventInviteAdditionalMetadata.RsvpStatus|null);
|
|
27852
|
+
|
|
27853
|
+
/** EventInviteAdditionalMetadata selfAdditionalGuestCount. */
|
|
27854
|
+
selfAdditionalGuestCount?: (number|null);
|
|
27855
|
+
|
|
27856
|
+
/** EventInviteAdditionalMetadata selfInviteeLastUpdatedTsUsec. */
|
|
27857
|
+
selfInviteeLastUpdatedTsUsec?: (number|Long|null);
|
|
27858
|
+
|
|
27847
27859
|
/**
|
|
27848
27860
|
* Creates a new EventInviteAdditionalMetadata instance using the specified properties.
|
|
27849
27861
|
* @param [properties] Properties to set
|
|
@@ -27931,12 +27943,62 @@ export namespace waproto {
|
|
|
27931
27943
|
/** EventInviteAdditionalMetadata isUpdated */
|
|
27932
27944
|
isUpdated?: (boolean|null);
|
|
27933
27945
|
|
|
27946
|
+
/** EventInviteAdditionalMetadata selfAccessStatus */
|
|
27947
|
+
selfAccessStatus?: (waproto.EventInviteAdditionalMetadata.AccessStatus|null);
|
|
27948
|
+
|
|
27949
|
+
/** EventInviteAdditionalMetadata selfRsvpStatus */
|
|
27950
|
+
selfRsvpStatus?: (waproto.EventInviteAdditionalMetadata.RsvpStatus|null);
|
|
27951
|
+
|
|
27952
|
+
/** EventInviteAdditionalMetadata selfAdditionalGuestCount */
|
|
27953
|
+
selfAdditionalGuestCount?: (number|null);
|
|
27954
|
+
|
|
27955
|
+
/** EventInviteAdditionalMetadata selfInviteeLastUpdatedTsUsec */
|
|
27956
|
+
selfInviteeLastUpdatedTsUsec?: (number|Long|null);
|
|
27957
|
+
|
|
27934
27958
|
/** Unknown fields preserved while decoding when enabled */
|
|
27935
27959
|
$unknowns?: Uint8Array[];
|
|
27936
27960
|
}
|
|
27937
27961
|
|
|
27938
27962
|
/** Shape of an EventInviteAdditionalMetadata. */
|
|
27939
27963
|
type $Shape = waproto.EventInviteAdditionalMetadata.$Properties;
|
|
27964
|
+
|
|
27965
|
+
/** AccessStatus enum. */
|
|
27966
|
+
enum AccessStatus {
|
|
27967
|
+
|
|
27968
|
+
/** ACCESS_STATUS_UNKNOWN value */
|
|
27969
|
+
ACCESS_STATUS_UNKNOWN = 0,
|
|
27970
|
+
|
|
27971
|
+
/** HAS_ACCESS value */
|
|
27972
|
+
HAS_ACCESS = 1,
|
|
27973
|
+
|
|
27974
|
+
/** LEFT_EVENT value */
|
|
27975
|
+
LEFT_EVENT = 2,
|
|
27976
|
+
|
|
27977
|
+
/** REMOVED_FROM_INVITE_LIST value */
|
|
27978
|
+
REMOVED_FROM_INVITE_LIST = 3,
|
|
27979
|
+
|
|
27980
|
+
/** UNAVAILABLE value */
|
|
27981
|
+
UNAVAILABLE = 4
|
|
27982
|
+
}
|
|
27983
|
+
|
|
27984
|
+
/** RsvpStatus enum. */
|
|
27985
|
+
enum RsvpStatus {
|
|
27986
|
+
|
|
27987
|
+
/** RSVP_STATUS_UNKNOWN value */
|
|
27988
|
+
RSVP_STATUS_UNKNOWN = 0,
|
|
27989
|
+
|
|
27990
|
+
/** GOING value */
|
|
27991
|
+
GOING = 1,
|
|
27992
|
+
|
|
27993
|
+
/** NOT_GOING value */
|
|
27994
|
+
NOT_GOING = 2,
|
|
27995
|
+
|
|
27996
|
+
/** MAYBE value */
|
|
27997
|
+
MAYBE = 3,
|
|
27998
|
+
|
|
27999
|
+
/** NO_RESPONSE value */
|
|
28000
|
+
NO_RESPONSE = 4
|
|
28001
|
+
}
|
|
27940
28002
|
}
|
|
27941
28003
|
|
|
27942
28004
|
/**
|
|
@@ -42403,6 +42465,9 @@ export namespace waproto {
|
|
|
42403
42465
|
/** DocumentMessage accessibilityLabel. */
|
|
42404
42466
|
accessibilityLabel?: (string|null);
|
|
42405
42467
|
|
|
42468
|
+
/** DocumentMessage qrUrl. */
|
|
42469
|
+
qrUrl?: (string|null);
|
|
42470
|
+
|
|
42406
42471
|
/**
|
|
42407
42472
|
* Creates a new DocumentMessage instance using the specified properties.
|
|
42408
42473
|
* @param [properties] Properties to set
|
|
@@ -42550,6 +42615,9 @@ export namespace waproto {
|
|
|
42550
42615
|
/** DocumentMessage accessibilityLabel */
|
|
42551
42616
|
accessibilityLabel?: (string|null);
|
|
42552
42617
|
|
|
42618
|
+
/** DocumentMessage qrUrl */
|
|
42619
|
+
qrUrl?: (string|null);
|
|
42620
|
+
|
|
42553
42621
|
/** Unknown fields preserved while decoding when enabled */
|
|
42554
42622
|
$unknowns?: Uint8Array[];
|
|
42555
42623
|
}
|
|
@@ -42577,6 +42645,7 @@ export namespace waproto {
|
|
|
42577
42645
|
thumbnailWidth?: number|null;
|
|
42578
42646
|
caption?: string|null;
|
|
42579
42647
|
accessibilityLabel?: string|null;
|
|
42648
|
+
qrUrl?: string|null;
|
|
42580
42649
|
$unknowns?: Uint8Array[];
|
|
42581
42650
|
};
|
|
42582
42651
|
}
|
package/dist/index.js
CHANGED
|
@@ -82250,6 +82250,10 @@ $root.waproto = (function() {
|
|
|
82250
82250
|
* Properties of an EventInviteAdditionalMetadata.
|
|
82251
82251
|
* @typedef {Object} waproto.EventInviteAdditionalMetadata.$Properties
|
|
82252
82252
|
* @property {boolean|null} [isUpdated] EventInviteAdditionalMetadata isUpdated
|
|
82253
|
+
* @property {waproto.EventInviteAdditionalMetadata.AccessStatus|null} [selfAccessStatus] EventInviteAdditionalMetadata selfAccessStatus
|
|
82254
|
+
* @property {waproto.EventInviteAdditionalMetadata.RsvpStatus|null} [selfRsvpStatus] EventInviteAdditionalMetadata selfRsvpStatus
|
|
82255
|
+
* @property {number|null} [selfAdditionalGuestCount] EventInviteAdditionalMetadata selfAdditionalGuestCount
|
|
82256
|
+
* @property {number|Long|null} [selfInviteeLastUpdatedTsUsec] EventInviteAdditionalMetadata selfInviteeLastUpdatedTsUsec
|
|
82253
82257
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
82254
82258
|
*/
|
|
82255
82259
|
|
|
@@ -82289,6 +82293,38 @@ $root.waproto = (function() {
|
|
|
82289
82293
|
*/
|
|
82290
82294
|
EventInviteAdditionalMetadata.prototype.isUpdated = null;
|
|
82291
82295
|
|
|
82296
|
+
/**
|
|
82297
|
+
* EventInviteAdditionalMetadata selfAccessStatus.
|
|
82298
|
+
* @member {waproto.EventInviteAdditionalMetadata.AccessStatus|null|undefined} selfAccessStatus
|
|
82299
|
+
* @memberof waproto.EventInviteAdditionalMetadata
|
|
82300
|
+
* @instance
|
|
82301
|
+
*/
|
|
82302
|
+
EventInviteAdditionalMetadata.prototype.selfAccessStatus = null;
|
|
82303
|
+
|
|
82304
|
+
/**
|
|
82305
|
+
* EventInviteAdditionalMetadata selfRsvpStatus.
|
|
82306
|
+
* @member {waproto.EventInviteAdditionalMetadata.RsvpStatus|null|undefined} selfRsvpStatus
|
|
82307
|
+
* @memberof waproto.EventInviteAdditionalMetadata
|
|
82308
|
+
* @instance
|
|
82309
|
+
*/
|
|
82310
|
+
EventInviteAdditionalMetadata.prototype.selfRsvpStatus = null;
|
|
82311
|
+
|
|
82312
|
+
/**
|
|
82313
|
+
* EventInviteAdditionalMetadata selfAdditionalGuestCount.
|
|
82314
|
+
* @member {number|null|undefined} selfAdditionalGuestCount
|
|
82315
|
+
* @memberof waproto.EventInviteAdditionalMetadata
|
|
82316
|
+
* @instance
|
|
82317
|
+
*/
|
|
82318
|
+
EventInviteAdditionalMetadata.prototype.selfAdditionalGuestCount = null;
|
|
82319
|
+
|
|
82320
|
+
/**
|
|
82321
|
+
* EventInviteAdditionalMetadata selfInviteeLastUpdatedTsUsec.
|
|
82322
|
+
* @member {number|Long|null|undefined} selfInviteeLastUpdatedTsUsec
|
|
82323
|
+
* @memberof waproto.EventInviteAdditionalMetadata
|
|
82324
|
+
* @instance
|
|
82325
|
+
*/
|
|
82326
|
+
EventInviteAdditionalMetadata.prototype.selfInviteeLastUpdatedTsUsec = null;
|
|
82327
|
+
|
|
82292
82328
|
// OneOf field names bound to virtual getters and setters
|
|
82293
82329
|
var $oneOfFields;
|
|
82294
82330
|
|
|
@@ -82298,6 +82334,30 @@ $root.waproto = (function() {
|
|
|
82298
82334
|
set: $util.oneOfSetter($oneOfFields)
|
|
82299
82335
|
});
|
|
82300
82336
|
|
|
82337
|
+
// Virtual OneOf for proto3 optional field
|
|
82338
|
+
$Object.defineProperty(EventInviteAdditionalMetadata.prototype, "_selfAccessStatus", {
|
|
82339
|
+
get: $util.oneOfGetter($oneOfFields = ["selfAccessStatus"]),
|
|
82340
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82341
|
+
});
|
|
82342
|
+
|
|
82343
|
+
// Virtual OneOf for proto3 optional field
|
|
82344
|
+
$Object.defineProperty(EventInviteAdditionalMetadata.prototype, "_selfRsvpStatus", {
|
|
82345
|
+
get: $util.oneOfGetter($oneOfFields = ["selfRsvpStatus"]),
|
|
82346
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82347
|
+
});
|
|
82348
|
+
|
|
82349
|
+
// Virtual OneOf for proto3 optional field
|
|
82350
|
+
$Object.defineProperty(EventInviteAdditionalMetadata.prototype, "_selfAdditionalGuestCount", {
|
|
82351
|
+
get: $util.oneOfGetter($oneOfFields = ["selfAdditionalGuestCount"]),
|
|
82352
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82353
|
+
});
|
|
82354
|
+
|
|
82355
|
+
// Virtual OneOf for proto3 optional field
|
|
82356
|
+
$Object.defineProperty(EventInviteAdditionalMetadata.prototype, "_selfInviteeLastUpdatedTsUsec", {
|
|
82357
|
+
get: $util.oneOfGetter($oneOfFields = ["selfInviteeLastUpdatedTsUsec"]),
|
|
82358
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82359
|
+
});
|
|
82360
|
+
|
|
82301
82361
|
/**
|
|
82302
82362
|
* Creates a new EventInviteAdditionalMetadata instance using the specified properties.
|
|
82303
82363
|
* @function create
|
|
@@ -82332,6 +82392,14 @@ $root.waproto = (function() {
|
|
|
82332
82392
|
throw $Error("max depth exceeded");
|
|
82333
82393
|
if (message.isUpdated != null && $Object.hasOwnProperty.call(message, "isUpdated"))
|
|
82334
82394
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isUpdated);
|
|
82395
|
+
if (message.selfAccessStatus != null && $Object.hasOwnProperty.call(message, "selfAccessStatus"))
|
|
82396
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.selfAccessStatus);
|
|
82397
|
+
if (message.selfRsvpStatus != null && $Object.hasOwnProperty.call(message, "selfRsvpStatus"))
|
|
82398
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.selfRsvpStatus);
|
|
82399
|
+
if (message.selfAdditionalGuestCount != null && $Object.hasOwnProperty.call(message, "selfAdditionalGuestCount"))
|
|
82400
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.selfAdditionalGuestCount);
|
|
82401
|
+
if (message.selfInviteeLastUpdatedTsUsec != null && $Object.hasOwnProperty.call(message, "selfInviteeLastUpdatedTsUsec"))
|
|
82402
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.selfInviteeLastUpdatedTsUsec);
|
|
82335
82403
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
82336
82404
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
82337
82405
|
writer.raw(message.$unknowns[i]);
|
|
@@ -82369,7 +82437,7 @@ $root.waproto = (function() {
|
|
|
82369
82437
|
_depth = 0;
|
|
82370
82438
|
if (_depth > $Reader.recursionLimit)
|
|
82371
82439
|
throw $Error("max depth exceeded");
|
|
82372
|
-
var end, message;
|
|
82440
|
+
var end, message, value;
|
|
82373
82441
|
if (length === $undefined)
|
|
82374
82442
|
end = reader.len;
|
|
82375
82443
|
else {
|
|
@@ -82396,6 +82464,34 @@ $root.waproto = (function() {
|
|
|
82396
82464
|
message._isUpdated = "isUpdated";
|
|
82397
82465
|
continue;
|
|
82398
82466
|
}
|
|
82467
|
+
case 2: {
|
|
82468
|
+
if (wireType !== 0)
|
|
82469
|
+
break;
|
|
82470
|
+
message.selfAccessStatus = reader.int32();
|
|
82471
|
+
message._selfAccessStatus = "selfAccessStatus";
|
|
82472
|
+
continue;
|
|
82473
|
+
}
|
|
82474
|
+
case 3: {
|
|
82475
|
+
if (wireType !== 0)
|
|
82476
|
+
break;
|
|
82477
|
+
message.selfRsvpStatus = reader.int32();
|
|
82478
|
+
message._selfRsvpStatus = "selfRsvpStatus";
|
|
82479
|
+
continue;
|
|
82480
|
+
}
|
|
82481
|
+
case 4: {
|
|
82482
|
+
if (wireType !== 0)
|
|
82483
|
+
break;
|
|
82484
|
+
message.selfAdditionalGuestCount = reader.uint32();
|
|
82485
|
+
message._selfAdditionalGuestCount = "selfAdditionalGuestCount";
|
|
82486
|
+
continue;
|
|
82487
|
+
}
|
|
82488
|
+
case 5: {
|
|
82489
|
+
if (wireType !== 0)
|
|
82490
|
+
break;
|
|
82491
|
+
message.selfInviteeLastUpdatedTsUsec = reader.int64();
|
|
82492
|
+
message._selfInviteeLastUpdatedTsUsec = "selfInviteeLastUpdatedTsUsec";
|
|
82493
|
+
continue;
|
|
82494
|
+
}
|
|
82399
82495
|
}
|
|
82400
82496
|
reader.skipType(wireType, _depth, tag);
|
|
82401
82497
|
if (!reader.discardUnknown) {
|
|
@@ -82450,6 +82546,26 @@ $root.waproto = (function() {
|
|
|
82450
82546
|
if (typeof message.isUpdated !== "boolean")
|
|
82451
82547
|
return "isUpdated: boolean expected";
|
|
82452
82548
|
}
|
|
82549
|
+
if (message.selfAccessStatus != null && $Object.hasOwnProperty.call(message, "selfAccessStatus")) {
|
|
82550
|
+
properties._selfAccessStatus = 1;
|
|
82551
|
+
if (typeof message.selfAccessStatus !== "number" || (message.selfAccessStatus | 0) !== message.selfAccessStatus)
|
|
82552
|
+
return "selfAccessStatus: enum value expected";
|
|
82553
|
+
}
|
|
82554
|
+
if (message.selfRsvpStatus != null && $Object.hasOwnProperty.call(message, "selfRsvpStatus")) {
|
|
82555
|
+
properties._selfRsvpStatus = 1;
|
|
82556
|
+
if (typeof message.selfRsvpStatus !== "number" || (message.selfRsvpStatus | 0) !== message.selfRsvpStatus)
|
|
82557
|
+
return "selfRsvpStatus: enum value expected";
|
|
82558
|
+
}
|
|
82559
|
+
if (message.selfAdditionalGuestCount != null && $Object.hasOwnProperty.call(message, "selfAdditionalGuestCount")) {
|
|
82560
|
+
properties._selfAdditionalGuestCount = 1;
|
|
82561
|
+
if (!$util.isInteger(message.selfAdditionalGuestCount))
|
|
82562
|
+
return "selfAdditionalGuestCount: integer expected";
|
|
82563
|
+
}
|
|
82564
|
+
if (message.selfInviteeLastUpdatedTsUsec != null && $Object.hasOwnProperty.call(message, "selfInviteeLastUpdatedTsUsec")) {
|
|
82565
|
+
properties._selfInviteeLastUpdatedTsUsec = 1;
|
|
82566
|
+
if (!$util.isInteger(message.selfInviteeLastUpdatedTsUsec) && !(message.selfInviteeLastUpdatedTsUsec && $util.isInteger(message.selfInviteeLastUpdatedTsUsec.low) && $util.isInteger(message.selfInviteeLastUpdatedTsUsec.high)))
|
|
82567
|
+
return "selfInviteeLastUpdatedTsUsec: integer|Long expected";
|
|
82568
|
+
}
|
|
82453
82569
|
return null;
|
|
82454
82570
|
};
|
|
82455
82571
|
|
|
@@ -82473,6 +82589,67 @@ $root.waproto = (function() {
|
|
|
82473
82589
|
var message = new $root.waproto.EventInviteAdditionalMetadata();
|
|
82474
82590
|
if (object.isUpdated != null)
|
|
82475
82591
|
message.isUpdated = $Boolean(object.isUpdated);
|
|
82592
|
+
switch (object.selfAccessStatus) {
|
|
82593
|
+
case "ACCESS_STATUS_UNKNOWN":
|
|
82594
|
+
case 0:
|
|
82595
|
+
message.selfAccessStatus = 0;
|
|
82596
|
+
break;
|
|
82597
|
+
case "HAS_ACCESS":
|
|
82598
|
+
case 1:
|
|
82599
|
+
message.selfAccessStatus = 1;
|
|
82600
|
+
break;
|
|
82601
|
+
case "LEFT_EVENT":
|
|
82602
|
+
case 2:
|
|
82603
|
+
message.selfAccessStatus = 2;
|
|
82604
|
+
break;
|
|
82605
|
+
case "REMOVED_FROM_INVITE_LIST":
|
|
82606
|
+
case 3:
|
|
82607
|
+
message.selfAccessStatus = 3;
|
|
82608
|
+
break;
|
|
82609
|
+
case "UNAVAILABLE":
|
|
82610
|
+
case 4:
|
|
82611
|
+
message.selfAccessStatus = 4;
|
|
82612
|
+
break;
|
|
82613
|
+
default:
|
|
82614
|
+
if (typeof object.selfAccessStatus === "number" && (object.selfAccessStatus | 0) === object.selfAccessStatus)
|
|
82615
|
+
message.selfAccessStatus = object.selfAccessStatus;
|
|
82616
|
+
}
|
|
82617
|
+
switch (object.selfRsvpStatus) {
|
|
82618
|
+
case "RSVP_STATUS_UNKNOWN":
|
|
82619
|
+
case 0:
|
|
82620
|
+
message.selfRsvpStatus = 0;
|
|
82621
|
+
break;
|
|
82622
|
+
case "GOING":
|
|
82623
|
+
case 1:
|
|
82624
|
+
message.selfRsvpStatus = 1;
|
|
82625
|
+
break;
|
|
82626
|
+
case "NOT_GOING":
|
|
82627
|
+
case 2:
|
|
82628
|
+
message.selfRsvpStatus = 2;
|
|
82629
|
+
break;
|
|
82630
|
+
case "MAYBE":
|
|
82631
|
+
case 3:
|
|
82632
|
+
message.selfRsvpStatus = 3;
|
|
82633
|
+
break;
|
|
82634
|
+
case "NO_RESPONSE":
|
|
82635
|
+
case 4:
|
|
82636
|
+
message.selfRsvpStatus = 4;
|
|
82637
|
+
break;
|
|
82638
|
+
default:
|
|
82639
|
+
if (typeof object.selfRsvpStatus === "number" && (object.selfRsvpStatus | 0) === object.selfRsvpStatus)
|
|
82640
|
+
message.selfRsvpStatus = object.selfRsvpStatus;
|
|
82641
|
+
}
|
|
82642
|
+
if (object.selfAdditionalGuestCount != null)
|
|
82643
|
+
message.selfAdditionalGuestCount = object.selfAdditionalGuestCount >>> 0;
|
|
82644
|
+
if (object.selfInviteeLastUpdatedTsUsec != null)
|
|
82645
|
+
if ($util.Long)
|
|
82646
|
+
message.selfInviteeLastUpdatedTsUsec = $util.Long.fromValue(object.selfInviteeLastUpdatedTsUsec, false);
|
|
82647
|
+
else if (typeof object.selfInviteeLastUpdatedTsUsec === "string")
|
|
82648
|
+
message.selfInviteeLastUpdatedTsUsec = $parseInt(object.selfInviteeLastUpdatedTsUsec, 10);
|
|
82649
|
+
else if (typeof object.selfInviteeLastUpdatedTsUsec === "number")
|
|
82650
|
+
message.selfInviteeLastUpdatedTsUsec = object.selfInviteeLastUpdatedTsUsec;
|
|
82651
|
+
else if (typeof object.selfInviteeLastUpdatedTsUsec === "object")
|
|
82652
|
+
message.selfInviteeLastUpdatedTsUsec = new $util.LongBits(object.selfInviteeLastUpdatedTsUsec.low >>> 0, object.selfInviteeLastUpdatedTsUsec.high >>> 0).toNumber();
|
|
82476
82653
|
return message;
|
|
82477
82654
|
};
|
|
82478
82655
|
|
|
@@ -82495,6 +82672,19 @@ $root.waproto = (function() {
|
|
|
82495
82672
|
var object = {};
|
|
82496
82673
|
if (message.isUpdated != null && $Object.hasOwnProperty.call(message, "isUpdated"))
|
|
82497
82674
|
object.isUpdated = message.isUpdated;
|
|
82675
|
+
if (message.selfAccessStatus != null && $Object.hasOwnProperty.call(message, "selfAccessStatus"))
|
|
82676
|
+
object.selfAccessStatus = options.enums === $String ? $root.waproto.EventInviteAdditionalMetadata.AccessStatus[message.selfAccessStatus] === $undefined ? message.selfAccessStatus : $root.waproto.EventInviteAdditionalMetadata.AccessStatus[message.selfAccessStatus] : message.selfAccessStatus;
|
|
82677
|
+
if (message.selfRsvpStatus != null && $Object.hasOwnProperty.call(message, "selfRsvpStatus"))
|
|
82678
|
+
object.selfRsvpStatus = options.enums === $String ? $root.waproto.EventInviteAdditionalMetadata.RsvpStatus[message.selfRsvpStatus] === $undefined ? message.selfRsvpStatus : $root.waproto.EventInviteAdditionalMetadata.RsvpStatus[message.selfRsvpStatus] : message.selfRsvpStatus;
|
|
82679
|
+
if (message.selfAdditionalGuestCount != null && $Object.hasOwnProperty.call(message, "selfAdditionalGuestCount"))
|
|
82680
|
+
object.selfAdditionalGuestCount = message.selfAdditionalGuestCount;
|
|
82681
|
+
if (message.selfInviteeLastUpdatedTsUsec != null && $Object.hasOwnProperty.call(message, "selfInviteeLastUpdatedTsUsec"))
|
|
82682
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
82683
|
+
object.selfInviteeLastUpdatedTsUsec = typeof message.selfInviteeLastUpdatedTsUsec === "number" ? $BigInt(message.selfInviteeLastUpdatedTsUsec) : $util.Long.fromBits(message.selfInviteeLastUpdatedTsUsec.low >>> 0, message.selfInviteeLastUpdatedTsUsec.high >>> 0, false).toBigInt();
|
|
82684
|
+
else if (typeof message.selfInviteeLastUpdatedTsUsec === "number")
|
|
82685
|
+
object.selfInviteeLastUpdatedTsUsec = options.longs === $String ? $String(message.selfInviteeLastUpdatedTsUsec) : message.selfInviteeLastUpdatedTsUsec;
|
|
82686
|
+
else
|
|
82687
|
+
object.selfInviteeLastUpdatedTsUsec = options.longs === $String ? $util.Long.prototype.toString.call(message.selfInviteeLastUpdatedTsUsec) : options.longs === $Number ? new $util.LongBits(message.selfInviteeLastUpdatedTsUsec.low >>> 0, message.selfInviteeLastUpdatedTsUsec.high >>> 0).toNumber() : message.selfInviteeLastUpdatedTsUsec;
|
|
82498
82688
|
return object;
|
|
82499
82689
|
};
|
|
82500
82690
|
|
|
@@ -82523,6 +82713,46 @@ $root.waproto = (function() {
|
|
|
82523
82713
|
return prefix + "/waproto.EventInviteAdditionalMetadata";
|
|
82524
82714
|
};
|
|
82525
82715
|
|
|
82716
|
+
/**
|
|
82717
|
+
* AccessStatus enum.
|
|
82718
|
+
* @name waproto.EventInviteAdditionalMetadata.AccessStatus
|
|
82719
|
+
* @enum {number}
|
|
82720
|
+
* @property {number} ACCESS_STATUS_UNKNOWN=0 ACCESS_STATUS_UNKNOWN value
|
|
82721
|
+
* @property {number} HAS_ACCESS=1 HAS_ACCESS value
|
|
82722
|
+
* @property {number} LEFT_EVENT=2 LEFT_EVENT value
|
|
82723
|
+
* @property {number} REMOVED_FROM_INVITE_LIST=3 REMOVED_FROM_INVITE_LIST value
|
|
82724
|
+
* @property {number} UNAVAILABLE=4 UNAVAILABLE value
|
|
82725
|
+
*/
|
|
82726
|
+
EventInviteAdditionalMetadata.AccessStatus = (function() {
|
|
82727
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
82728
|
+
values[valuesById[0] = "ACCESS_STATUS_UNKNOWN"] = 0;
|
|
82729
|
+
values[valuesById[1] = "HAS_ACCESS"] = 1;
|
|
82730
|
+
values[valuesById[2] = "LEFT_EVENT"] = 2;
|
|
82731
|
+
values[valuesById[3] = "REMOVED_FROM_INVITE_LIST"] = 3;
|
|
82732
|
+
values[valuesById[4] = "UNAVAILABLE"] = 4;
|
|
82733
|
+
return values;
|
|
82734
|
+
})();
|
|
82735
|
+
|
|
82736
|
+
/**
|
|
82737
|
+
* RsvpStatus enum.
|
|
82738
|
+
* @name waproto.EventInviteAdditionalMetadata.RsvpStatus
|
|
82739
|
+
* @enum {number}
|
|
82740
|
+
* @property {number} RSVP_STATUS_UNKNOWN=0 RSVP_STATUS_UNKNOWN value
|
|
82741
|
+
* @property {number} GOING=1 GOING value
|
|
82742
|
+
* @property {number} NOT_GOING=2 NOT_GOING value
|
|
82743
|
+
* @property {number} MAYBE=3 MAYBE value
|
|
82744
|
+
* @property {number} NO_RESPONSE=4 NO_RESPONSE value
|
|
82745
|
+
*/
|
|
82746
|
+
EventInviteAdditionalMetadata.RsvpStatus = (function() {
|
|
82747
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
82748
|
+
values[valuesById[0] = "RSVP_STATUS_UNKNOWN"] = 0;
|
|
82749
|
+
values[valuesById[1] = "GOING"] = 1;
|
|
82750
|
+
values[valuesById[2] = "NOT_GOING"] = 2;
|
|
82751
|
+
values[valuesById[3] = "MAYBE"] = 3;
|
|
82752
|
+
values[valuesById[4] = "NO_RESPONSE"] = 4;
|
|
82753
|
+
return values;
|
|
82754
|
+
})();
|
|
82755
|
+
|
|
82526
82756
|
return EventInviteAdditionalMetadata;
|
|
82527
82757
|
})();
|
|
82528
82758
|
|
|
@@ -126570,6 +126800,7 @@ $root.waproto = (function() {
|
|
|
126570
126800
|
* @property {number|null} [thumbnailWidth] DocumentMessage thumbnailWidth
|
|
126571
126801
|
* @property {string|null} [caption] DocumentMessage caption
|
|
126572
126802
|
* @property {string|null} [accessibilityLabel] DocumentMessage accessibilityLabel
|
|
126803
|
+
* @property {string|null} [qrUrl] DocumentMessage qrUrl
|
|
126573
126804
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
126574
126805
|
*/
|
|
126575
126806
|
|
|
@@ -126605,6 +126836,7 @@ $root.waproto = (function() {
|
|
|
126605
126836
|
* thumbnailWidth?: number|null;
|
|
126606
126837
|
* caption?: string|null;
|
|
126607
126838
|
* accessibilityLabel?: string|null;
|
|
126839
|
+
* qrUrl?: string|null;
|
|
126608
126840
|
* $unknowns?: Array.<Uint8Array>;
|
|
126609
126841
|
* }} waproto.Message.DocumentMessage.$Shape
|
|
126610
126842
|
*/
|
|
@@ -126792,6 +127024,14 @@ $root.waproto = (function() {
|
|
|
126792
127024
|
*/
|
|
126793
127025
|
DocumentMessage.prototype.accessibilityLabel = null;
|
|
126794
127026
|
|
|
127027
|
+
/**
|
|
127028
|
+
* DocumentMessage qrUrl.
|
|
127029
|
+
* @member {string|null|undefined} qrUrl
|
|
127030
|
+
* @memberof waproto.Message.DocumentMessage
|
|
127031
|
+
* @instance
|
|
127032
|
+
*/
|
|
127033
|
+
DocumentMessage.prototype.qrUrl = null;
|
|
127034
|
+
|
|
126795
127035
|
// OneOf field names bound to virtual getters and setters
|
|
126796
127036
|
var $oneOfFields;
|
|
126797
127037
|
|
|
@@ -126921,6 +127161,12 @@ $root.waproto = (function() {
|
|
|
126921
127161
|
set: $util.oneOfSetter($oneOfFields)
|
|
126922
127162
|
});
|
|
126923
127163
|
|
|
127164
|
+
// Virtual OneOf for proto3 optional field
|
|
127165
|
+
$Object.defineProperty(DocumentMessage.prototype, "_qrUrl", {
|
|
127166
|
+
get: $util.oneOfGetter($oneOfFields = ["qrUrl"]),
|
|
127167
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
127168
|
+
});
|
|
127169
|
+
|
|
126924
127170
|
/**
|
|
126925
127171
|
* Creates a new DocumentMessage instance using the specified properties.
|
|
126926
127172
|
* @function create
|
|
@@ -126995,6 +127241,8 @@ $root.waproto = (function() {
|
|
|
126995
127241
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.caption);
|
|
126996
127242
|
if (message.accessibilityLabel != null && $Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
126997
127243
|
writer.uint32(/* id 21, wireType 2 =*/170).string(message.accessibilityLabel);
|
|
127244
|
+
if (message.qrUrl != null && $Object.hasOwnProperty.call(message, "qrUrl"))
|
|
127245
|
+
writer.uint32(/* id 23, wireType 2 =*/186).string(message.qrUrl);
|
|
126998
127246
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
126999
127247
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
127000
127248
|
writer.raw(message.$unknowns[i]);
|
|
@@ -127199,6 +127447,13 @@ $root.waproto = (function() {
|
|
|
127199
127447
|
message._accessibilityLabel = "accessibilityLabel";
|
|
127200
127448
|
continue;
|
|
127201
127449
|
}
|
|
127450
|
+
case 23: {
|
|
127451
|
+
if (wireType !== 2)
|
|
127452
|
+
break;
|
|
127453
|
+
message.qrUrl = reader.stringVerify();
|
|
127454
|
+
message._qrUrl = "qrUrl";
|
|
127455
|
+
continue;
|
|
127456
|
+
}
|
|
127202
127457
|
}
|
|
127203
127458
|
reader.skipType(wireType, _depth, tag);
|
|
127204
127459
|
if (!reader.discardUnknown) {
|
|
@@ -127356,6 +127611,11 @@ $root.waproto = (function() {
|
|
|
127356
127611
|
if (!$util.isString(message.accessibilityLabel))
|
|
127357
127612
|
return "accessibilityLabel: string expected";
|
|
127358
127613
|
}
|
|
127614
|
+
if (message.qrUrl != null && $Object.hasOwnProperty.call(message, "qrUrl")) {
|
|
127615
|
+
properties._qrUrl = 1;
|
|
127616
|
+
if (!$util.isString(message.qrUrl))
|
|
127617
|
+
return "qrUrl: string expected";
|
|
127618
|
+
}
|
|
127359
127619
|
return null;
|
|
127360
127620
|
};
|
|
127361
127621
|
|
|
@@ -127454,6 +127714,8 @@ $root.waproto = (function() {
|
|
|
127454
127714
|
message.caption = $String(object.caption);
|
|
127455
127715
|
if (object.accessibilityLabel != null)
|
|
127456
127716
|
message.accessibilityLabel = $String(object.accessibilityLabel);
|
|
127717
|
+
if (object.qrUrl != null)
|
|
127718
|
+
message.qrUrl = $String(object.qrUrl);
|
|
127457
127719
|
return message;
|
|
127458
127720
|
};
|
|
127459
127721
|
|
|
@@ -127526,6 +127788,8 @@ $root.waproto = (function() {
|
|
|
127526
127788
|
object.caption = message.caption;
|
|
127527
127789
|
if (message.accessibilityLabel != null && $Object.hasOwnProperty.call(message, "accessibilityLabel"))
|
|
127528
127790
|
object.accessibilityLabel = message.accessibilityLabel;
|
|
127791
|
+
if (message.qrUrl != null && $Object.hasOwnProperty.call(message, "qrUrl"))
|
|
127792
|
+
object.qrUrl = message.qrUrl;
|
|
127529
127793
|
return object;
|
|
127530
127794
|
};
|
|
127531
127795
|
|