@itsliaaa/baileys 0.1.3 → 0.1.4
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/README.md +57 -69
- package/WAProto/index.js +1188 -244
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/messages-send.js +6 -11
- package/lib/Socket/socket.js +1 -2
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/messages.js +36 -12
- package/package.json +1 -1
package/WAProto/index.js
CHANGED
|
@@ -6275,6 +6275,182 @@ export const proto = $root.proto = (() => {
|
|
|
6275
6275
|
return BotAgeCollectionMetadata;
|
|
6276
6276
|
})();
|
|
6277
6277
|
|
|
6278
|
+
proto.BotAgentDeepLinkMetadata = (function() {
|
|
6279
|
+
|
|
6280
|
+
function BotAgentDeepLinkMetadata(p) {
|
|
6281
|
+
if (p)
|
|
6282
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6283
|
+
if (p[ks[i]] != null)
|
|
6284
|
+
this[ks[i]] = p[ks[i]];
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
BotAgentDeepLinkMetadata.prototype.token = null;
|
|
6288
|
+
|
|
6289
|
+
let $oneOfFields;
|
|
6290
|
+
|
|
6291
|
+
Object.defineProperty(BotAgentDeepLinkMetadata.prototype, "_token", {
|
|
6292
|
+
get: $util.oneOfGetter($oneOfFields = ["token"]),
|
|
6293
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6294
|
+
});
|
|
6295
|
+
|
|
6296
|
+
BotAgentDeepLinkMetadata.create = function create(properties) {
|
|
6297
|
+
return new BotAgentDeepLinkMetadata(properties);
|
|
6298
|
+
};
|
|
6299
|
+
|
|
6300
|
+
BotAgentDeepLinkMetadata.encode = function encode(m, w) {
|
|
6301
|
+
if (!w)
|
|
6302
|
+
w = $Writer.create();
|
|
6303
|
+
if (m.token != null && Object.hasOwnProperty.call(m, "token"))
|
|
6304
|
+
w.uint32(10).string(m.token);
|
|
6305
|
+
return w;
|
|
6306
|
+
};
|
|
6307
|
+
|
|
6308
|
+
BotAgentDeepLinkMetadata.decode = function decode(r, l, e) {
|
|
6309
|
+
if (!(r instanceof $Reader))
|
|
6310
|
+
r = $Reader.create(r);
|
|
6311
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotAgentDeepLinkMetadata();
|
|
6312
|
+
while (r.pos < c) {
|
|
6313
|
+
var t = r.uint32();
|
|
6314
|
+
if (t === e)
|
|
6315
|
+
break;
|
|
6316
|
+
switch (t >>> 3) {
|
|
6317
|
+
case 1: {
|
|
6318
|
+
m.token = r.string();
|
|
6319
|
+
break;
|
|
6320
|
+
}
|
|
6321
|
+
default:
|
|
6322
|
+
r.skipType(t & 7);
|
|
6323
|
+
break;
|
|
6324
|
+
}
|
|
6325
|
+
}
|
|
6326
|
+
return m;
|
|
6327
|
+
};
|
|
6328
|
+
|
|
6329
|
+
BotAgentDeepLinkMetadata.fromObject = function fromObject(d) {
|
|
6330
|
+
if (d instanceof $root.proto.BotAgentDeepLinkMetadata)
|
|
6331
|
+
return d;
|
|
6332
|
+
var m = new $root.proto.BotAgentDeepLinkMetadata();
|
|
6333
|
+
if (d.token != null) {
|
|
6334
|
+
m.token = String(d.token);
|
|
6335
|
+
}
|
|
6336
|
+
return m;
|
|
6337
|
+
};
|
|
6338
|
+
|
|
6339
|
+
BotAgentDeepLinkMetadata.toObject = function toObject(m, o) {
|
|
6340
|
+
if (!o)
|
|
6341
|
+
o = {};
|
|
6342
|
+
var d = {};
|
|
6343
|
+
if (m.token != null && m.hasOwnProperty("token")) {
|
|
6344
|
+
d.token = m.token;
|
|
6345
|
+
if (o.oneofs)
|
|
6346
|
+
d._token = "token";
|
|
6347
|
+
}
|
|
6348
|
+
return d;
|
|
6349
|
+
};
|
|
6350
|
+
|
|
6351
|
+
BotAgentDeepLinkMetadata.prototype.toJSON = function toJSON() {
|
|
6352
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6353
|
+
};
|
|
6354
|
+
|
|
6355
|
+
BotAgentDeepLinkMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6356
|
+
if (typeUrlPrefix === undefined) {
|
|
6357
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
6358
|
+
}
|
|
6359
|
+
return typeUrlPrefix + "/proto.BotAgentDeepLinkMetadata";
|
|
6360
|
+
};
|
|
6361
|
+
|
|
6362
|
+
return BotAgentDeepLinkMetadata;
|
|
6363
|
+
})();
|
|
6364
|
+
|
|
6365
|
+
proto.BotAgentMetadata = (function() {
|
|
6366
|
+
|
|
6367
|
+
function BotAgentMetadata(p) {
|
|
6368
|
+
if (p)
|
|
6369
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6370
|
+
if (p[ks[i]] != null)
|
|
6371
|
+
this[ks[i]] = p[ks[i]];
|
|
6372
|
+
}
|
|
6373
|
+
|
|
6374
|
+
BotAgentMetadata.prototype.deepLinkMetadata = null;
|
|
6375
|
+
|
|
6376
|
+
let $oneOfFields;
|
|
6377
|
+
|
|
6378
|
+
Object.defineProperty(BotAgentMetadata.prototype, "_deepLinkMetadata", {
|
|
6379
|
+
get: $util.oneOfGetter($oneOfFields = ["deepLinkMetadata"]),
|
|
6380
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6381
|
+
});
|
|
6382
|
+
|
|
6383
|
+
BotAgentMetadata.create = function create(properties) {
|
|
6384
|
+
return new BotAgentMetadata(properties);
|
|
6385
|
+
};
|
|
6386
|
+
|
|
6387
|
+
BotAgentMetadata.encode = function encode(m, w) {
|
|
6388
|
+
if (!w)
|
|
6389
|
+
w = $Writer.create();
|
|
6390
|
+
if (m.deepLinkMetadata != null && Object.hasOwnProperty.call(m, "deepLinkMetadata"))
|
|
6391
|
+
$root.proto.BotAgentDeepLinkMetadata.encode(m.deepLinkMetadata, w.uint32(10).fork()).ldelim();
|
|
6392
|
+
return w;
|
|
6393
|
+
};
|
|
6394
|
+
|
|
6395
|
+
BotAgentMetadata.decode = function decode(r, l, e) {
|
|
6396
|
+
if (!(r instanceof $Reader))
|
|
6397
|
+
r = $Reader.create(r);
|
|
6398
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotAgentMetadata();
|
|
6399
|
+
while (r.pos < c) {
|
|
6400
|
+
var t = r.uint32();
|
|
6401
|
+
if (t === e)
|
|
6402
|
+
break;
|
|
6403
|
+
switch (t >>> 3) {
|
|
6404
|
+
case 1: {
|
|
6405
|
+
m.deepLinkMetadata = $root.proto.BotAgentDeepLinkMetadata.decode(r, r.uint32());
|
|
6406
|
+
break;
|
|
6407
|
+
}
|
|
6408
|
+
default:
|
|
6409
|
+
r.skipType(t & 7);
|
|
6410
|
+
break;
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
return m;
|
|
6414
|
+
};
|
|
6415
|
+
|
|
6416
|
+
BotAgentMetadata.fromObject = function fromObject(d) {
|
|
6417
|
+
if (d instanceof $root.proto.BotAgentMetadata)
|
|
6418
|
+
return d;
|
|
6419
|
+
var m = new $root.proto.BotAgentMetadata();
|
|
6420
|
+
if (d.deepLinkMetadata != null) {
|
|
6421
|
+
if (typeof d.deepLinkMetadata !== "object")
|
|
6422
|
+
throw TypeError(".proto.BotAgentMetadata.deepLinkMetadata: object expected");
|
|
6423
|
+
m.deepLinkMetadata = $root.proto.BotAgentDeepLinkMetadata.fromObject(d.deepLinkMetadata);
|
|
6424
|
+
}
|
|
6425
|
+
return m;
|
|
6426
|
+
};
|
|
6427
|
+
|
|
6428
|
+
BotAgentMetadata.toObject = function toObject(m, o) {
|
|
6429
|
+
if (!o)
|
|
6430
|
+
o = {};
|
|
6431
|
+
var d = {};
|
|
6432
|
+
if (m.deepLinkMetadata != null && m.hasOwnProperty("deepLinkMetadata")) {
|
|
6433
|
+
d.deepLinkMetadata = $root.proto.BotAgentDeepLinkMetadata.toObject(m.deepLinkMetadata, o);
|
|
6434
|
+
if (o.oneofs)
|
|
6435
|
+
d._deepLinkMetadata = "deepLinkMetadata";
|
|
6436
|
+
}
|
|
6437
|
+
return d;
|
|
6438
|
+
};
|
|
6439
|
+
|
|
6440
|
+
BotAgentMetadata.prototype.toJSON = function toJSON() {
|
|
6441
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6442
|
+
};
|
|
6443
|
+
|
|
6444
|
+
BotAgentMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6445
|
+
if (typeUrlPrefix === undefined) {
|
|
6446
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
6447
|
+
}
|
|
6448
|
+
return typeUrlPrefix + "/proto.BotAgentMetadata";
|
|
6449
|
+
};
|
|
6450
|
+
|
|
6451
|
+
return BotAgentMetadata;
|
|
6452
|
+
})();
|
|
6453
|
+
|
|
6278
6454
|
proto.BotCapabilityMetadata = (function() {
|
|
6279
6455
|
|
|
6280
6456
|
function BotCapabilityMetadata(p) {
|
|
@@ -17353,32 +17529,10 @@ export const proto = $root.proto = (() => {
|
|
|
17353
17529
|
this[ks[i]] = p[ks[i]];
|
|
17354
17530
|
}
|
|
17355
17531
|
|
|
17356
|
-
Citation.prototype.title =
|
|
17357
|
-
Citation.prototype.subtitle =
|
|
17358
|
-
Citation.prototype.cmsId =
|
|
17359
|
-
Citation.prototype.imageUrl =
|
|
17360
|
-
|
|
17361
|
-
let $oneOfFields;
|
|
17362
|
-
|
|
17363
|
-
Object.defineProperty(Citation.prototype, "_title", {
|
|
17364
|
-
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
17365
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17366
|
-
});
|
|
17367
|
-
|
|
17368
|
-
Object.defineProperty(Citation.prototype, "_subtitle", {
|
|
17369
|
-
get: $util.oneOfGetter($oneOfFields = ["subtitle"]),
|
|
17370
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17371
|
-
});
|
|
17372
|
-
|
|
17373
|
-
Object.defineProperty(Citation.prototype, "_cmsId", {
|
|
17374
|
-
get: $util.oneOfGetter($oneOfFields = ["cmsId"]),
|
|
17375
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17376
|
-
});
|
|
17377
|
-
|
|
17378
|
-
Object.defineProperty(Citation.prototype, "_imageUrl", {
|
|
17379
|
-
get: $util.oneOfGetter($oneOfFields = ["imageUrl"]),
|
|
17380
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17381
|
-
});
|
|
17532
|
+
Citation.prototype.title = "";
|
|
17533
|
+
Citation.prototype.subtitle = "";
|
|
17534
|
+
Citation.prototype.cmsId = "";
|
|
17535
|
+
Citation.prototype.imageUrl = "";
|
|
17382
17536
|
|
|
17383
17537
|
Citation.create = function create(properties) {
|
|
17384
17538
|
return new Citation(properties);
|
|
@@ -17454,25 +17608,23 @@ export const proto = $root.proto = (() => {
|
|
|
17454
17608
|
if (!o)
|
|
17455
17609
|
o = {};
|
|
17456
17610
|
var d = {};
|
|
17611
|
+
if (o.defaults) {
|
|
17612
|
+
d.title = "";
|
|
17613
|
+
d.subtitle = "";
|
|
17614
|
+
d.cmsId = "";
|
|
17615
|
+
d.imageUrl = "";
|
|
17616
|
+
}
|
|
17457
17617
|
if (m.title != null && m.hasOwnProperty("title")) {
|
|
17458
17618
|
d.title = m.title;
|
|
17459
|
-
if (o.oneofs)
|
|
17460
|
-
d._title = "title";
|
|
17461
17619
|
}
|
|
17462
17620
|
if (m.subtitle != null && m.hasOwnProperty("subtitle")) {
|
|
17463
17621
|
d.subtitle = m.subtitle;
|
|
17464
|
-
if (o.oneofs)
|
|
17465
|
-
d._subtitle = "subtitle";
|
|
17466
17622
|
}
|
|
17467
17623
|
if (m.cmsId != null && m.hasOwnProperty("cmsId")) {
|
|
17468
17624
|
d.cmsId = m.cmsId;
|
|
17469
|
-
if (o.oneofs)
|
|
17470
|
-
d._cmsId = "cmsId";
|
|
17471
17625
|
}
|
|
17472
17626
|
if (m.imageUrl != null && m.hasOwnProperty("imageUrl")) {
|
|
17473
17627
|
d.imageUrl = m.imageUrl;
|
|
17474
|
-
if (o.oneofs)
|
|
17475
|
-
d._imageUrl = "imageUrl";
|
|
17476
17628
|
}
|
|
17477
17629
|
return d;
|
|
17478
17630
|
};
|
|
@@ -24815,7 +24967,7 @@ export const proto = $root.proto = (() => {
|
|
|
24815
24967
|
this[ks[i]] = p[ks[i]];
|
|
24816
24968
|
}
|
|
24817
24969
|
|
|
24818
|
-
Conversation.prototype.id =
|
|
24970
|
+
Conversation.prototype.id = "";
|
|
24819
24971
|
Conversation.prototype.messages = $util.emptyArray;
|
|
24820
24972
|
Conversation.prototype.newJid = null;
|
|
24821
24973
|
Conversation.prototype.oldJid = null;
|
|
@@ -24873,11 +25025,6 @@ export const proto = $root.proto = (() => {
|
|
|
24873
25025
|
|
|
24874
25026
|
let $oneOfFields;
|
|
24875
25027
|
|
|
24876
|
-
Object.defineProperty(Conversation.prototype, "_id", {
|
|
24877
|
-
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
|
24878
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
24879
|
-
});
|
|
24880
|
-
|
|
24881
25028
|
Object.defineProperty(Conversation.prototype, "_newJid", {
|
|
24882
25029
|
get: $util.oneOfGetter($oneOfFields = ["newJid"]),
|
|
24883
25030
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -25843,10 +25990,11 @@ export const proto = $root.proto = (() => {
|
|
|
25843
25990
|
d.messages = [];
|
|
25844
25991
|
d.participant = [];
|
|
25845
25992
|
}
|
|
25993
|
+
if (o.defaults) {
|
|
25994
|
+
d.id = "";
|
|
25995
|
+
}
|
|
25846
25996
|
if (m.id != null && m.hasOwnProperty("id")) {
|
|
25847
25997
|
d.id = m.id;
|
|
25848
|
-
if (o.oneofs)
|
|
25849
|
-
d._id = "id";
|
|
25850
25998
|
}
|
|
25851
25999
|
if (m.messages && m.messages.length) {
|
|
25852
26000
|
d.messages = [];
|
|
@@ -26519,6 +26667,8 @@ export const proto = $root.proto = (() => {
|
|
|
26519
26667
|
|
|
26520
26668
|
BusinessBroadcast.prototype.importListEnabled = null;
|
|
26521
26669
|
BusinessBroadcast.prototype.companionSupportEnabled = null;
|
|
26670
|
+
BusinessBroadcast.prototype.campaignSyncEnabled = null;
|
|
26671
|
+
BusinessBroadcast.prototype.insightsSyncEnabled = null;
|
|
26522
26672
|
|
|
26523
26673
|
let $oneOfFields;
|
|
26524
26674
|
|
|
@@ -26532,6 +26682,16 @@ export const proto = $root.proto = (() => {
|
|
|
26532
26682
|
set: $util.oneOfSetter($oneOfFields)
|
|
26533
26683
|
});
|
|
26534
26684
|
|
|
26685
|
+
Object.defineProperty(BusinessBroadcast.prototype, "_campaignSyncEnabled", {
|
|
26686
|
+
get: $util.oneOfGetter($oneOfFields = ["campaignSyncEnabled"]),
|
|
26687
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
26688
|
+
});
|
|
26689
|
+
|
|
26690
|
+
Object.defineProperty(BusinessBroadcast.prototype, "_insightsSyncEnabled", {
|
|
26691
|
+
get: $util.oneOfGetter($oneOfFields = ["insightsSyncEnabled"]),
|
|
26692
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
26693
|
+
});
|
|
26694
|
+
|
|
26535
26695
|
BusinessBroadcast.create = function create(properties) {
|
|
26536
26696
|
return new BusinessBroadcast(properties);
|
|
26537
26697
|
};
|
|
@@ -26543,6 +26703,10 @@ export const proto = $root.proto = (() => {
|
|
|
26543
26703
|
w.uint32(8).bool(m.importListEnabled);
|
|
26544
26704
|
if (m.companionSupportEnabled != null && Object.hasOwnProperty.call(m, "companionSupportEnabled"))
|
|
26545
26705
|
w.uint32(16).bool(m.companionSupportEnabled);
|
|
26706
|
+
if (m.campaignSyncEnabled != null && Object.hasOwnProperty.call(m, "campaignSyncEnabled"))
|
|
26707
|
+
w.uint32(24).bool(m.campaignSyncEnabled);
|
|
26708
|
+
if (m.insightsSyncEnabled != null && Object.hasOwnProperty.call(m, "insightsSyncEnabled"))
|
|
26709
|
+
w.uint32(32).bool(m.insightsSyncEnabled);
|
|
26546
26710
|
return w;
|
|
26547
26711
|
};
|
|
26548
26712
|
|
|
@@ -26563,6 +26727,14 @@ export const proto = $root.proto = (() => {
|
|
|
26563
26727
|
m.companionSupportEnabled = r.bool();
|
|
26564
26728
|
break;
|
|
26565
26729
|
}
|
|
26730
|
+
case 3: {
|
|
26731
|
+
m.campaignSyncEnabled = r.bool();
|
|
26732
|
+
break;
|
|
26733
|
+
}
|
|
26734
|
+
case 4: {
|
|
26735
|
+
m.insightsSyncEnabled = r.bool();
|
|
26736
|
+
break;
|
|
26737
|
+
}
|
|
26566
26738
|
default:
|
|
26567
26739
|
r.skipType(t & 7);
|
|
26568
26740
|
break;
|
|
@@ -26581,6 +26753,12 @@ export const proto = $root.proto = (() => {
|
|
|
26581
26753
|
if (d.companionSupportEnabled != null) {
|
|
26582
26754
|
m.companionSupportEnabled = Boolean(d.companionSupportEnabled);
|
|
26583
26755
|
}
|
|
26756
|
+
if (d.campaignSyncEnabled != null) {
|
|
26757
|
+
m.campaignSyncEnabled = Boolean(d.campaignSyncEnabled);
|
|
26758
|
+
}
|
|
26759
|
+
if (d.insightsSyncEnabled != null) {
|
|
26760
|
+
m.insightsSyncEnabled = Boolean(d.insightsSyncEnabled);
|
|
26761
|
+
}
|
|
26584
26762
|
return m;
|
|
26585
26763
|
};
|
|
26586
26764
|
|
|
@@ -26598,6 +26776,16 @@ export const proto = $root.proto = (() => {
|
|
|
26598
26776
|
if (o.oneofs)
|
|
26599
26777
|
d._companionSupportEnabled = "companionSupportEnabled";
|
|
26600
26778
|
}
|
|
26779
|
+
if (m.campaignSyncEnabled != null && m.hasOwnProperty("campaignSyncEnabled")) {
|
|
26780
|
+
d.campaignSyncEnabled = m.campaignSyncEnabled;
|
|
26781
|
+
if (o.oneofs)
|
|
26782
|
+
d._campaignSyncEnabled = "campaignSyncEnabled";
|
|
26783
|
+
}
|
|
26784
|
+
if (m.insightsSyncEnabled != null && m.hasOwnProperty("insightsSyncEnabled")) {
|
|
26785
|
+
d.insightsSyncEnabled = m.insightsSyncEnabled;
|
|
26786
|
+
if (o.oneofs)
|
|
26787
|
+
d._insightsSyncEnabled = "insightsSyncEnabled";
|
|
26788
|
+
}
|
|
26601
26789
|
return d;
|
|
26602
26790
|
};
|
|
26603
26791
|
|
|
@@ -31055,17 +31243,12 @@ export const proto = $root.proto = (() => {
|
|
|
31055
31243
|
this[ks[i]] = p[ks[i]];
|
|
31056
31244
|
}
|
|
31057
31245
|
|
|
31058
|
-
GroupParticipant.prototype.userJid =
|
|
31246
|
+
GroupParticipant.prototype.userJid = "";
|
|
31059
31247
|
GroupParticipant.prototype.rank = null;
|
|
31060
31248
|
GroupParticipant.prototype.memberLabel = null;
|
|
31061
31249
|
|
|
31062
31250
|
let $oneOfFields;
|
|
31063
31251
|
|
|
31064
|
-
Object.defineProperty(GroupParticipant.prototype, "_userJid", {
|
|
31065
|
-
get: $util.oneOfGetter($oneOfFields = ["userJid"]),
|
|
31066
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
31067
|
-
});
|
|
31068
|
-
|
|
31069
31252
|
Object.defineProperty(GroupParticipant.prototype, "_rank", {
|
|
31070
31253
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
|
31071
31254
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -31160,10 +31343,11 @@ export const proto = $root.proto = (() => {
|
|
|
31160
31343
|
if (!o)
|
|
31161
31344
|
o = {};
|
|
31162
31345
|
var d = {};
|
|
31346
|
+
if (o.defaults) {
|
|
31347
|
+
d.userJid = "";
|
|
31348
|
+
}
|
|
31163
31349
|
if (m.userJid != null && m.hasOwnProperty("userJid")) {
|
|
31164
31350
|
d.userJid = m.userJid;
|
|
31165
|
-
if (o.oneofs)
|
|
31166
|
-
d._userJid = "userJid";
|
|
31167
31351
|
}
|
|
31168
31352
|
if (m.rank != null && m.hasOwnProperty("rank")) {
|
|
31169
31353
|
d.rank = o.enums === String ? $root.proto.GroupParticipant.Rank[m.rank] === undefined ? m.rank : $root.proto.GroupParticipant.Rank[m.rank] : m.rank;
|
|
@@ -31824,7 +32008,7 @@ export const proto = $root.proto = (() => {
|
|
|
31824
32008
|
this[ks[i]] = p[ks[i]];
|
|
31825
32009
|
}
|
|
31826
32010
|
|
|
31827
|
-
HistorySync.prototype.syncType =
|
|
32011
|
+
HistorySync.prototype.syncType = 0;
|
|
31828
32012
|
HistorySync.prototype.conversations = $util.emptyArray;
|
|
31829
32013
|
HistorySync.prototype.statusV3Messages = $util.emptyArray;
|
|
31830
32014
|
HistorySync.prototype.chunkOrder = null;
|
|
@@ -31845,11 +32029,6 @@ export const proto = $root.proto = (() => {
|
|
|
31845
32029
|
|
|
31846
32030
|
let $oneOfFields;
|
|
31847
32031
|
|
|
31848
|
-
Object.defineProperty(HistorySync.prototype, "_syncType", {
|
|
31849
|
-
get: $util.oneOfGetter($oneOfFields = ["syncType"]),
|
|
31850
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
31851
|
-
});
|
|
31852
|
-
|
|
31853
32032
|
Object.defineProperty(HistorySync.prototype, "_chunkOrder", {
|
|
31854
32033
|
get: $util.oneOfGetter($oneOfFields = ["chunkOrder"]),
|
|
31855
32034
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -32250,10 +32429,11 @@ export const proto = $root.proto = (() => {
|
|
|
32250
32429
|
d.phoneNumberToLidMappings = [];
|
|
32251
32430
|
d.accounts = [];
|
|
32252
32431
|
}
|
|
32432
|
+
if (o.defaults) {
|
|
32433
|
+
d.syncType = o.enums === String ? "INITIAL_BOOTSTRAP" : 0;
|
|
32434
|
+
}
|
|
32253
32435
|
if (m.syncType != null && m.hasOwnProperty("syncType")) {
|
|
32254
32436
|
d.syncType = o.enums === String ? $root.proto.HistorySync.HistorySyncType[m.syncType] === undefined ? m.syncType : $root.proto.HistorySync.HistorySyncType[m.syncType] : m.syncType;
|
|
32255
|
-
if (o.oneofs)
|
|
32256
|
-
d._syncType = "syncType";
|
|
32257
32437
|
}
|
|
32258
32438
|
if (m.conversations && m.conversations.length) {
|
|
32259
32439
|
d.conversations = [];
|
|
@@ -34829,22 +35009,12 @@ export const proto = $root.proto = (() => {
|
|
|
34829
35009
|
this[ks[i]] = p[ks[i]];
|
|
34830
35010
|
}
|
|
34831
35011
|
|
|
34832
|
-
LIDMigrationMapping.prototype.pn =
|
|
34833
|
-
LIDMigrationMapping.prototype.assignedLid =
|
|
35012
|
+
LIDMigrationMapping.prototype.pn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
35013
|
+
LIDMigrationMapping.prototype.assignedLid = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
34834
35014
|
LIDMigrationMapping.prototype.latestLid = null;
|
|
34835
35015
|
|
|
34836
35016
|
let $oneOfFields;
|
|
34837
35017
|
|
|
34838
|
-
Object.defineProperty(LIDMigrationMapping.prototype, "_pn", {
|
|
34839
|
-
get: $util.oneOfGetter($oneOfFields = ["pn"]),
|
|
34840
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
34841
|
-
});
|
|
34842
|
-
|
|
34843
|
-
Object.defineProperty(LIDMigrationMapping.prototype, "_assignedLid", {
|
|
34844
|
-
get: $util.oneOfGetter($oneOfFields = ["assignedLid"]),
|
|
34845
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
34846
|
-
});
|
|
34847
|
-
|
|
34848
35018
|
Object.defineProperty(LIDMigrationMapping.prototype, "_latestLid", {
|
|
34849
35019
|
get: $util.oneOfGetter($oneOfFields = ["latestLid"]),
|
|
34850
35020
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -34936,21 +35106,29 @@ export const proto = $root.proto = (() => {
|
|
|
34936
35106
|
if (!o)
|
|
34937
35107
|
o = {};
|
|
34938
35108
|
var d = {};
|
|
35109
|
+
if (o.defaults) {
|
|
35110
|
+
if ($util.Long) {
|
|
35111
|
+
var n = new $util.Long(0, 0, true);
|
|
35112
|
+
d.pn = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
35113
|
+
} else
|
|
35114
|
+
d.pn = o.longs === String ? "0" : 0;
|
|
35115
|
+
if ($util.Long) {
|
|
35116
|
+
var n = new $util.Long(0, 0, true);
|
|
35117
|
+
d.assignedLid = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
35118
|
+
} else
|
|
35119
|
+
d.assignedLid = o.longs === String ? "0" : 0;
|
|
35120
|
+
}
|
|
34939
35121
|
if (m.pn != null && m.hasOwnProperty("pn")) {
|
|
34940
35122
|
if (typeof m.pn === "number")
|
|
34941
35123
|
d.pn = o.longs === String ? String(m.pn) : m.pn;
|
|
34942
35124
|
else
|
|
34943
35125
|
d.pn = o.longs === String ? longToString(m.pn, true) : o.longs === Number ? longToNumber(m.pn, true) : m.pn;
|
|
34944
|
-
if (o.oneofs)
|
|
34945
|
-
d._pn = "pn";
|
|
34946
35126
|
}
|
|
34947
35127
|
if (m.assignedLid != null && m.hasOwnProperty("assignedLid")) {
|
|
34948
35128
|
if (typeof m.assignedLid === "number")
|
|
34949
35129
|
d.assignedLid = o.longs === String ? String(m.assignedLid) : m.assignedLid;
|
|
34950
35130
|
else
|
|
34951
35131
|
d.assignedLid = o.longs === String ? longToString(m.assignedLid, true) : o.longs === Number ? longToNumber(m.assignedLid, true) : m.assignedLid;
|
|
34952
|
-
if (o.oneofs)
|
|
34953
|
-
d._assignedLid = "assignedLid";
|
|
34954
35132
|
}
|
|
34955
35133
|
if (m.latestLid != null && m.hasOwnProperty("latestLid")) {
|
|
34956
35134
|
if (typeof m.latestLid === "number")
|
|
@@ -36529,6 +36707,7 @@ export const proto = $root.proto = (() => {
|
|
|
36529
36707
|
Message.prototype.pollCreationMessageV6 = null;
|
|
36530
36708
|
Message.prototype.conditionalRevealMessage = null;
|
|
36531
36709
|
Message.prototype.pollAddOptionMessage = null;
|
|
36710
|
+
Message.prototype.eventInviteMessage = null;
|
|
36532
36711
|
|
|
36533
36712
|
let $oneOfFields;
|
|
36534
36713
|
|
|
@@ -37037,6 +37216,11 @@ export const proto = $root.proto = (() => {
|
|
|
37037
37216
|
set: $util.oneOfSetter($oneOfFields)
|
|
37038
37217
|
});
|
|
37039
37218
|
|
|
37219
|
+
Object.defineProperty(Message.prototype, "_eventInviteMessage", {
|
|
37220
|
+
get: $util.oneOfGetter($oneOfFields = ["eventInviteMessage"]),
|
|
37221
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
37222
|
+
});
|
|
37223
|
+
|
|
37040
37224
|
Message.create = function create(properties) {
|
|
37041
37225
|
return new Message(properties);
|
|
37042
37226
|
};
|
|
@@ -37246,6 +37430,8 @@ export const proto = $root.proto = (() => {
|
|
|
37246
37430
|
$root.proto.Message.ConditionalRevealMessage.encode(m.conditionalRevealMessage, w.uint32(962).fork()).ldelim();
|
|
37247
37431
|
if (m.pollAddOptionMessage != null && Object.hasOwnProperty.call(m, "pollAddOptionMessage"))
|
|
37248
37432
|
$root.proto.Message.PollAddOptionMessage.encode(m.pollAddOptionMessage, w.uint32(970).fork()).ldelim();
|
|
37433
|
+
if (m.eventInviteMessage != null && Object.hasOwnProperty.call(m, "eventInviteMessage"))
|
|
37434
|
+
$root.proto.Message.EventInviteMessage.encode(m.eventInviteMessage, w.uint32(978).fork()).ldelim();
|
|
37249
37435
|
return w;
|
|
37250
37436
|
};
|
|
37251
37437
|
|
|
@@ -37662,6 +37848,10 @@ export const proto = $root.proto = (() => {
|
|
|
37662
37848
|
m.pollAddOptionMessage = $root.proto.Message.PollAddOptionMessage.decode(r, r.uint32());
|
|
37663
37849
|
break;
|
|
37664
37850
|
}
|
|
37851
|
+
case 122: {
|
|
37852
|
+
m.eventInviteMessage = $root.proto.Message.EventInviteMessage.decode(r, r.uint32());
|
|
37853
|
+
break;
|
|
37854
|
+
}
|
|
37665
37855
|
default:
|
|
37666
37856
|
r.skipType(t & 7);
|
|
37667
37857
|
break;
|
|
@@ -38177,6 +38367,11 @@ export const proto = $root.proto = (() => {
|
|
|
38177
38367
|
throw TypeError(".proto.Message.pollAddOptionMessage: object expected");
|
|
38178
38368
|
m.pollAddOptionMessage = $root.proto.Message.PollAddOptionMessage.fromObject(d.pollAddOptionMessage);
|
|
38179
38369
|
}
|
|
38370
|
+
if (d.eventInviteMessage != null) {
|
|
38371
|
+
if (typeof d.eventInviteMessage !== "object")
|
|
38372
|
+
throw TypeError(".proto.Message.eventInviteMessage: object expected");
|
|
38373
|
+
m.eventInviteMessage = $root.proto.Message.EventInviteMessage.fromObject(d.eventInviteMessage);
|
|
38374
|
+
}
|
|
38180
38375
|
return m;
|
|
38181
38376
|
};
|
|
38182
38377
|
|
|
@@ -38689,6 +38884,11 @@ export const proto = $root.proto = (() => {
|
|
|
38689
38884
|
if (o.oneofs)
|
|
38690
38885
|
d._pollAddOptionMessage = "pollAddOptionMessage";
|
|
38691
38886
|
}
|
|
38887
|
+
if (m.eventInviteMessage != null && m.hasOwnProperty("eventInviteMessage")) {
|
|
38888
|
+
d.eventInviteMessage = $root.proto.Message.EventInviteMessage.toObject(m.eventInviteMessage, o);
|
|
38889
|
+
if (o.oneofs)
|
|
38890
|
+
d._eventInviteMessage = "eventInviteMessage";
|
|
38891
|
+
}
|
|
38692
38892
|
return d;
|
|
38693
38893
|
};
|
|
38694
38894
|
|
|
@@ -44044,6 +44244,228 @@ export const proto = $root.proto = (() => {
|
|
|
44044
44244
|
return EncReactionMessage;
|
|
44045
44245
|
})();
|
|
44046
44246
|
|
|
44247
|
+
Message.EventInviteMessage = (function() {
|
|
44248
|
+
|
|
44249
|
+
function EventInviteMessage(p) {
|
|
44250
|
+
if (p)
|
|
44251
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
44252
|
+
if (p[ks[i]] != null)
|
|
44253
|
+
this[ks[i]] = p[ks[i]];
|
|
44254
|
+
}
|
|
44255
|
+
|
|
44256
|
+
EventInviteMessage.prototype.contextInfo = null;
|
|
44257
|
+
EventInviteMessage.prototype.eventId = null;
|
|
44258
|
+
EventInviteMessage.prototype.eventTitle = null;
|
|
44259
|
+
EventInviteMessage.prototype.jpegThumbnail = null;
|
|
44260
|
+
EventInviteMessage.prototype.startTime = null;
|
|
44261
|
+
EventInviteMessage.prototype.caption = null;
|
|
44262
|
+
EventInviteMessage.prototype.isCanceled = null;
|
|
44263
|
+
|
|
44264
|
+
let $oneOfFields;
|
|
44265
|
+
|
|
44266
|
+
Object.defineProperty(EventInviteMessage.prototype, "_contextInfo", {
|
|
44267
|
+
get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
|
|
44268
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44269
|
+
});
|
|
44270
|
+
|
|
44271
|
+
Object.defineProperty(EventInviteMessage.prototype, "_eventId", {
|
|
44272
|
+
get: $util.oneOfGetter($oneOfFields = ["eventId"]),
|
|
44273
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44274
|
+
});
|
|
44275
|
+
|
|
44276
|
+
Object.defineProperty(EventInviteMessage.prototype, "_eventTitle", {
|
|
44277
|
+
get: $util.oneOfGetter($oneOfFields = ["eventTitle"]),
|
|
44278
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44279
|
+
});
|
|
44280
|
+
|
|
44281
|
+
Object.defineProperty(EventInviteMessage.prototype, "_jpegThumbnail", {
|
|
44282
|
+
get: $util.oneOfGetter($oneOfFields = ["jpegThumbnail"]),
|
|
44283
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44284
|
+
});
|
|
44285
|
+
|
|
44286
|
+
Object.defineProperty(EventInviteMessage.prototype, "_startTime", {
|
|
44287
|
+
get: $util.oneOfGetter($oneOfFields = ["startTime"]),
|
|
44288
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44289
|
+
});
|
|
44290
|
+
|
|
44291
|
+
Object.defineProperty(EventInviteMessage.prototype, "_caption", {
|
|
44292
|
+
get: $util.oneOfGetter($oneOfFields = ["caption"]),
|
|
44293
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44294
|
+
});
|
|
44295
|
+
|
|
44296
|
+
Object.defineProperty(EventInviteMessage.prototype, "_isCanceled", {
|
|
44297
|
+
get: $util.oneOfGetter($oneOfFields = ["isCanceled"]),
|
|
44298
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44299
|
+
});
|
|
44300
|
+
|
|
44301
|
+
EventInviteMessage.create = function create(properties) {
|
|
44302
|
+
return new EventInviteMessage(properties);
|
|
44303
|
+
};
|
|
44304
|
+
|
|
44305
|
+
EventInviteMessage.encode = function encode(m, w) {
|
|
44306
|
+
if (!w)
|
|
44307
|
+
w = $Writer.create();
|
|
44308
|
+
if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo"))
|
|
44309
|
+
$root.proto.ContextInfo.encode(m.contextInfo, w.uint32(10).fork()).ldelim();
|
|
44310
|
+
if (m.eventId != null && Object.hasOwnProperty.call(m, "eventId"))
|
|
44311
|
+
w.uint32(18).string(m.eventId);
|
|
44312
|
+
if (m.eventTitle != null && Object.hasOwnProperty.call(m, "eventTitle"))
|
|
44313
|
+
w.uint32(26).string(m.eventTitle);
|
|
44314
|
+
if (m.jpegThumbnail != null && Object.hasOwnProperty.call(m, "jpegThumbnail"))
|
|
44315
|
+
w.uint32(34).bytes(m.jpegThumbnail);
|
|
44316
|
+
if (m.startTime != null && Object.hasOwnProperty.call(m, "startTime"))
|
|
44317
|
+
w.uint32(40).int64(m.startTime);
|
|
44318
|
+
if (m.caption != null && Object.hasOwnProperty.call(m, "caption"))
|
|
44319
|
+
w.uint32(50).string(m.caption);
|
|
44320
|
+
if (m.isCanceled != null && Object.hasOwnProperty.call(m, "isCanceled"))
|
|
44321
|
+
w.uint32(56).bool(m.isCanceled);
|
|
44322
|
+
return w;
|
|
44323
|
+
};
|
|
44324
|
+
|
|
44325
|
+
EventInviteMessage.decode = function decode(r, l, e) {
|
|
44326
|
+
if (!(r instanceof $Reader))
|
|
44327
|
+
r = $Reader.create(r);
|
|
44328
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.EventInviteMessage();
|
|
44329
|
+
while (r.pos < c) {
|
|
44330
|
+
var t = r.uint32();
|
|
44331
|
+
if (t === e)
|
|
44332
|
+
break;
|
|
44333
|
+
switch (t >>> 3) {
|
|
44334
|
+
case 1: {
|
|
44335
|
+
m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32());
|
|
44336
|
+
break;
|
|
44337
|
+
}
|
|
44338
|
+
case 2: {
|
|
44339
|
+
m.eventId = r.string();
|
|
44340
|
+
break;
|
|
44341
|
+
}
|
|
44342
|
+
case 3: {
|
|
44343
|
+
m.eventTitle = r.string();
|
|
44344
|
+
break;
|
|
44345
|
+
}
|
|
44346
|
+
case 4: {
|
|
44347
|
+
m.jpegThumbnail = r.bytes();
|
|
44348
|
+
break;
|
|
44349
|
+
}
|
|
44350
|
+
case 5: {
|
|
44351
|
+
m.startTime = r.int64();
|
|
44352
|
+
break;
|
|
44353
|
+
}
|
|
44354
|
+
case 6: {
|
|
44355
|
+
m.caption = r.string();
|
|
44356
|
+
break;
|
|
44357
|
+
}
|
|
44358
|
+
case 7: {
|
|
44359
|
+
m.isCanceled = r.bool();
|
|
44360
|
+
break;
|
|
44361
|
+
}
|
|
44362
|
+
default:
|
|
44363
|
+
r.skipType(t & 7);
|
|
44364
|
+
break;
|
|
44365
|
+
}
|
|
44366
|
+
}
|
|
44367
|
+
return m;
|
|
44368
|
+
};
|
|
44369
|
+
|
|
44370
|
+
EventInviteMessage.fromObject = function fromObject(d) {
|
|
44371
|
+
if (d instanceof $root.proto.Message.EventInviteMessage)
|
|
44372
|
+
return d;
|
|
44373
|
+
var m = new $root.proto.Message.EventInviteMessage();
|
|
44374
|
+
if (d.contextInfo != null) {
|
|
44375
|
+
if (typeof d.contextInfo !== "object")
|
|
44376
|
+
throw TypeError(".proto.Message.EventInviteMessage.contextInfo: object expected");
|
|
44377
|
+
m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo);
|
|
44378
|
+
}
|
|
44379
|
+
if (d.eventId != null) {
|
|
44380
|
+
m.eventId = String(d.eventId);
|
|
44381
|
+
}
|
|
44382
|
+
if (d.eventTitle != null) {
|
|
44383
|
+
m.eventTitle = String(d.eventTitle);
|
|
44384
|
+
}
|
|
44385
|
+
if (d.jpegThumbnail != null) {
|
|
44386
|
+
if (typeof d.jpegThumbnail === "string")
|
|
44387
|
+
$util.base64.decode(d.jpegThumbnail, m.jpegThumbnail = $util.newBuffer($util.base64.length(d.jpegThumbnail)), 0);
|
|
44388
|
+
else if (d.jpegThumbnail.length >= 0)
|
|
44389
|
+
m.jpegThumbnail = d.jpegThumbnail;
|
|
44390
|
+
}
|
|
44391
|
+
if (d.startTime != null) {
|
|
44392
|
+
if ($util.Long)
|
|
44393
|
+
(m.startTime = $util.Long.fromValue(d.startTime)).unsigned = false;
|
|
44394
|
+
else if (typeof d.startTime === "string")
|
|
44395
|
+
m.startTime = parseInt(d.startTime, 10);
|
|
44396
|
+
else if (typeof d.startTime === "number")
|
|
44397
|
+
m.startTime = d.startTime;
|
|
44398
|
+
else if (typeof d.startTime === "object")
|
|
44399
|
+
m.startTime = new $util.LongBits(d.startTime.low >>> 0, d.startTime.high >>> 0).toNumber();
|
|
44400
|
+
}
|
|
44401
|
+
if (d.caption != null) {
|
|
44402
|
+
m.caption = String(d.caption);
|
|
44403
|
+
}
|
|
44404
|
+
if (d.isCanceled != null) {
|
|
44405
|
+
m.isCanceled = Boolean(d.isCanceled);
|
|
44406
|
+
}
|
|
44407
|
+
return m;
|
|
44408
|
+
};
|
|
44409
|
+
|
|
44410
|
+
EventInviteMessage.toObject = function toObject(m, o) {
|
|
44411
|
+
if (!o)
|
|
44412
|
+
o = {};
|
|
44413
|
+
var d = {};
|
|
44414
|
+
if (m.contextInfo != null && m.hasOwnProperty("contextInfo")) {
|
|
44415
|
+
d.contextInfo = $root.proto.ContextInfo.toObject(m.contextInfo, o);
|
|
44416
|
+
if (o.oneofs)
|
|
44417
|
+
d._contextInfo = "contextInfo";
|
|
44418
|
+
}
|
|
44419
|
+
if (m.eventId != null && m.hasOwnProperty("eventId")) {
|
|
44420
|
+
d.eventId = m.eventId;
|
|
44421
|
+
if (o.oneofs)
|
|
44422
|
+
d._eventId = "eventId";
|
|
44423
|
+
}
|
|
44424
|
+
if (m.eventTitle != null && m.hasOwnProperty("eventTitle")) {
|
|
44425
|
+
d.eventTitle = m.eventTitle;
|
|
44426
|
+
if (o.oneofs)
|
|
44427
|
+
d._eventTitle = "eventTitle";
|
|
44428
|
+
}
|
|
44429
|
+
if (m.jpegThumbnail != null && m.hasOwnProperty("jpegThumbnail")) {
|
|
44430
|
+
d.jpegThumbnail = o.bytes === String ? $util.base64.encode(m.jpegThumbnail, 0, m.jpegThumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.jpegThumbnail) : m.jpegThumbnail;
|
|
44431
|
+
if (o.oneofs)
|
|
44432
|
+
d._jpegThumbnail = "jpegThumbnail";
|
|
44433
|
+
}
|
|
44434
|
+
if (m.startTime != null && m.hasOwnProperty("startTime")) {
|
|
44435
|
+
if (typeof m.startTime === "number")
|
|
44436
|
+
d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
|
|
44437
|
+
else
|
|
44438
|
+
d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
|
|
44439
|
+
if (o.oneofs)
|
|
44440
|
+
d._startTime = "startTime";
|
|
44441
|
+
}
|
|
44442
|
+
if (m.caption != null && m.hasOwnProperty("caption")) {
|
|
44443
|
+
d.caption = m.caption;
|
|
44444
|
+
if (o.oneofs)
|
|
44445
|
+
d._caption = "caption";
|
|
44446
|
+
}
|
|
44447
|
+
if (m.isCanceled != null && m.hasOwnProperty("isCanceled")) {
|
|
44448
|
+
d.isCanceled = m.isCanceled;
|
|
44449
|
+
if (o.oneofs)
|
|
44450
|
+
d._isCanceled = "isCanceled";
|
|
44451
|
+
}
|
|
44452
|
+
return d;
|
|
44453
|
+
};
|
|
44454
|
+
|
|
44455
|
+
EventInviteMessage.prototype.toJSON = function toJSON() {
|
|
44456
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44457
|
+
};
|
|
44458
|
+
|
|
44459
|
+
EventInviteMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44460
|
+
if (typeUrlPrefix === undefined) {
|
|
44461
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44462
|
+
}
|
|
44463
|
+
return typeUrlPrefix + "/proto.Message.EventInviteMessage";
|
|
44464
|
+
};
|
|
44465
|
+
|
|
44466
|
+
return EventInviteMessage;
|
|
44467
|
+
})();
|
|
44468
|
+
|
|
44047
44469
|
Message.EventMessage = (function() {
|
|
44048
44470
|
|
|
44049
44471
|
function EventMessage(p) {
|
|
@@ -53492,14 +53914,15 @@ export const proto = $root.proto = (() => {
|
|
|
53492
53914
|
}
|
|
53493
53915
|
|
|
53494
53916
|
MessageHistoryMetadata.prototype.historyReceivers = $util.emptyArray;
|
|
53495
|
-
MessageHistoryMetadata.prototype.
|
|
53917
|
+
MessageHistoryMetadata.prototype.oldestMessageTimestampInWindow = null;
|
|
53496
53918
|
MessageHistoryMetadata.prototype.messageCount = null;
|
|
53497
53919
|
MessageHistoryMetadata.prototype.nonHistoryReceivers = $util.emptyArray;
|
|
53920
|
+
MessageHistoryMetadata.prototype.oldestMessageTimestampInBundle = null;
|
|
53498
53921
|
|
|
53499
53922
|
let $oneOfFields;
|
|
53500
53923
|
|
|
53501
|
-
Object.defineProperty(MessageHistoryMetadata.prototype, "
|
|
53502
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
53924
|
+
Object.defineProperty(MessageHistoryMetadata.prototype, "_oldestMessageTimestampInWindow", {
|
|
53925
|
+
get: $util.oneOfGetter($oneOfFields = ["oldestMessageTimestampInWindow"]),
|
|
53503
53926
|
set: $util.oneOfSetter($oneOfFields)
|
|
53504
53927
|
});
|
|
53505
53928
|
|
|
@@ -53508,6 +53931,11 @@ export const proto = $root.proto = (() => {
|
|
|
53508
53931
|
set: $util.oneOfSetter($oneOfFields)
|
|
53509
53932
|
});
|
|
53510
53933
|
|
|
53934
|
+
Object.defineProperty(MessageHistoryMetadata.prototype, "_oldestMessageTimestampInBundle", {
|
|
53935
|
+
get: $util.oneOfGetter($oneOfFields = ["oldestMessageTimestampInBundle"]),
|
|
53936
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
53937
|
+
});
|
|
53938
|
+
|
|
53511
53939
|
MessageHistoryMetadata.create = function create(properties) {
|
|
53512
53940
|
return new MessageHistoryMetadata(properties);
|
|
53513
53941
|
};
|
|
@@ -53519,14 +53947,16 @@ export const proto = $root.proto = (() => {
|
|
|
53519
53947
|
for (var i = 0; i < m.historyReceivers.length; ++i)
|
|
53520
53948
|
w.uint32(10).string(m.historyReceivers[i]);
|
|
53521
53949
|
}
|
|
53522
|
-
if (m.
|
|
53523
|
-
w.uint32(16).int64(m.
|
|
53950
|
+
if (m.oldestMessageTimestampInWindow != null && Object.hasOwnProperty.call(m, "oldestMessageTimestampInWindow"))
|
|
53951
|
+
w.uint32(16).int64(m.oldestMessageTimestampInWindow);
|
|
53524
53952
|
if (m.messageCount != null && Object.hasOwnProperty.call(m, "messageCount"))
|
|
53525
53953
|
w.uint32(24).int64(m.messageCount);
|
|
53526
53954
|
if (m.nonHistoryReceivers != null && m.nonHistoryReceivers.length) {
|
|
53527
53955
|
for (var i = 0; i < m.nonHistoryReceivers.length; ++i)
|
|
53528
53956
|
w.uint32(34).string(m.nonHistoryReceivers[i]);
|
|
53529
53957
|
}
|
|
53958
|
+
if (m.oldestMessageTimestampInBundle != null && Object.hasOwnProperty.call(m, "oldestMessageTimestampInBundle"))
|
|
53959
|
+
w.uint32(40).int64(m.oldestMessageTimestampInBundle);
|
|
53530
53960
|
return w;
|
|
53531
53961
|
};
|
|
53532
53962
|
|
|
@@ -53546,7 +53976,7 @@ export const proto = $root.proto = (() => {
|
|
|
53546
53976
|
break;
|
|
53547
53977
|
}
|
|
53548
53978
|
case 2: {
|
|
53549
|
-
m.
|
|
53979
|
+
m.oldestMessageTimestampInWindow = r.int64();
|
|
53550
53980
|
break;
|
|
53551
53981
|
}
|
|
53552
53982
|
case 3: {
|
|
@@ -53559,6 +53989,10 @@ export const proto = $root.proto = (() => {
|
|
|
53559
53989
|
m.nonHistoryReceivers.push(r.string());
|
|
53560
53990
|
break;
|
|
53561
53991
|
}
|
|
53992
|
+
case 5: {
|
|
53993
|
+
m.oldestMessageTimestampInBundle = r.int64();
|
|
53994
|
+
break;
|
|
53995
|
+
}
|
|
53562
53996
|
default:
|
|
53563
53997
|
r.skipType(t & 7);
|
|
53564
53998
|
break;
|
|
@@ -53579,15 +54013,15 @@ export const proto = $root.proto = (() => {
|
|
|
53579
54013
|
m.historyReceivers[i] = String(d.historyReceivers[i]);
|
|
53580
54014
|
}
|
|
53581
54015
|
}
|
|
53582
|
-
if (d.
|
|
54016
|
+
if (d.oldestMessageTimestampInWindow != null) {
|
|
53583
54017
|
if ($util.Long)
|
|
53584
|
-
(m.
|
|
53585
|
-
else if (typeof d.
|
|
53586
|
-
m.
|
|
53587
|
-
else if (typeof d.
|
|
53588
|
-
m.
|
|
53589
|
-
else if (typeof d.
|
|
53590
|
-
m.
|
|
54018
|
+
(m.oldestMessageTimestampInWindow = $util.Long.fromValue(d.oldestMessageTimestampInWindow)).unsigned = false;
|
|
54019
|
+
else if (typeof d.oldestMessageTimestampInWindow === "string")
|
|
54020
|
+
m.oldestMessageTimestampInWindow = parseInt(d.oldestMessageTimestampInWindow, 10);
|
|
54021
|
+
else if (typeof d.oldestMessageTimestampInWindow === "number")
|
|
54022
|
+
m.oldestMessageTimestampInWindow = d.oldestMessageTimestampInWindow;
|
|
54023
|
+
else if (typeof d.oldestMessageTimestampInWindow === "object")
|
|
54024
|
+
m.oldestMessageTimestampInWindow = new $util.LongBits(d.oldestMessageTimestampInWindow.low >>> 0, d.oldestMessageTimestampInWindow.high >>> 0).toNumber();
|
|
53591
54025
|
}
|
|
53592
54026
|
if (d.messageCount != null) {
|
|
53593
54027
|
if ($util.Long)
|
|
@@ -53607,6 +54041,16 @@ export const proto = $root.proto = (() => {
|
|
|
53607
54041
|
m.nonHistoryReceivers[i] = String(d.nonHistoryReceivers[i]);
|
|
53608
54042
|
}
|
|
53609
54043
|
}
|
|
54044
|
+
if (d.oldestMessageTimestampInBundle != null) {
|
|
54045
|
+
if ($util.Long)
|
|
54046
|
+
(m.oldestMessageTimestampInBundle = $util.Long.fromValue(d.oldestMessageTimestampInBundle)).unsigned = false;
|
|
54047
|
+
else if (typeof d.oldestMessageTimestampInBundle === "string")
|
|
54048
|
+
m.oldestMessageTimestampInBundle = parseInt(d.oldestMessageTimestampInBundle, 10);
|
|
54049
|
+
else if (typeof d.oldestMessageTimestampInBundle === "number")
|
|
54050
|
+
m.oldestMessageTimestampInBundle = d.oldestMessageTimestampInBundle;
|
|
54051
|
+
else if (typeof d.oldestMessageTimestampInBundle === "object")
|
|
54052
|
+
m.oldestMessageTimestampInBundle = new $util.LongBits(d.oldestMessageTimestampInBundle.low >>> 0, d.oldestMessageTimestampInBundle.high >>> 0).toNumber();
|
|
54053
|
+
}
|
|
53610
54054
|
return m;
|
|
53611
54055
|
};
|
|
53612
54056
|
|
|
@@ -53624,13 +54068,13 @@ export const proto = $root.proto = (() => {
|
|
|
53624
54068
|
d.historyReceivers[j] = m.historyReceivers[j];
|
|
53625
54069
|
}
|
|
53626
54070
|
}
|
|
53627
|
-
if (m.
|
|
53628
|
-
if (typeof m.
|
|
53629
|
-
d.
|
|
54071
|
+
if (m.oldestMessageTimestampInWindow != null && m.hasOwnProperty("oldestMessageTimestampInWindow")) {
|
|
54072
|
+
if (typeof m.oldestMessageTimestampInWindow === "number")
|
|
54073
|
+
d.oldestMessageTimestampInWindow = o.longs === String ? String(m.oldestMessageTimestampInWindow) : m.oldestMessageTimestampInWindow;
|
|
53630
54074
|
else
|
|
53631
|
-
d.
|
|
54075
|
+
d.oldestMessageTimestampInWindow = o.longs === String ? longToString(m.oldestMessageTimestampInWindow) : o.longs === Number ? longToNumber(m.oldestMessageTimestampInWindow) : m.oldestMessageTimestampInWindow;
|
|
53632
54076
|
if (o.oneofs)
|
|
53633
|
-
d.
|
|
54077
|
+
d._oldestMessageTimestampInWindow = "oldestMessageTimestampInWindow";
|
|
53634
54078
|
}
|
|
53635
54079
|
if (m.messageCount != null && m.hasOwnProperty("messageCount")) {
|
|
53636
54080
|
if (typeof m.messageCount === "number")
|
|
@@ -53646,6 +54090,14 @@ export const proto = $root.proto = (() => {
|
|
|
53646
54090
|
d.nonHistoryReceivers[j] = m.nonHistoryReceivers[j];
|
|
53647
54091
|
}
|
|
53648
54092
|
}
|
|
54093
|
+
if (m.oldestMessageTimestampInBundle != null && m.hasOwnProperty("oldestMessageTimestampInBundle")) {
|
|
54094
|
+
if (typeof m.oldestMessageTimestampInBundle === "number")
|
|
54095
|
+
d.oldestMessageTimestampInBundle = o.longs === String ? String(m.oldestMessageTimestampInBundle) : m.oldestMessageTimestampInBundle;
|
|
54096
|
+
else
|
|
54097
|
+
d.oldestMessageTimestampInBundle = o.longs === String ? longToString(m.oldestMessageTimestampInBundle) : o.longs === Number ? longToNumber(m.oldestMessageTimestampInBundle) : m.oldestMessageTimestampInBundle;
|
|
54098
|
+
if (o.oneofs)
|
|
54099
|
+
d._oldestMessageTimestampInBundle = "oldestMessageTimestampInBundle";
|
|
54100
|
+
}
|
|
53649
54101
|
return d;
|
|
53650
54102
|
};
|
|
53651
54103
|
|
|
@@ -63364,6 +63816,7 @@ export const proto = $root.proto = (() => {
|
|
|
63364
63816
|
|
|
63365
63817
|
RequestWelcomeMessageMetadata.prototype.localChatState = null;
|
|
63366
63818
|
RequestWelcomeMessageMetadata.prototype.welcomeTrigger = null;
|
|
63819
|
+
RequestWelcomeMessageMetadata.prototype.botAgentMetadata = null;
|
|
63367
63820
|
|
|
63368
63821
|
let $oneOfFields;
|
|
63369
63822
|
|
|
@@ -63377,6 +63830,11 @@ export const proto = $root.proto = (() => {
|
|
|
63377
63830
|
set: $util.oneOfSetter($oneOfFields)
|
|
63378
63831
|
});
|
|
63379
63832
|
|
|
63833
|
+
Object.defineProperty(RequestWelcomeMessageMetadata.prototype, "_botAgentMetadata", {
|
|
63834
|
+
get: $util.oneOfGetter($oneOfFields = ["botAgentMetadata"]),
|
|
63835
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
63836
|
+
});
|
|
63837
|
+
|
|
63380
63838
|
RequestWelcomeMessageMetadata.create = function create(properties) {
|
|
63381
63839
|
return new RequestWelcomeMessageMetadata(properties);
|
|
63382
63840
|
};
|
|
@@ -63388,6 +63846,8 @@ export const proto = $root.proto = (() => {
|
|
|
63388
63846
|
w.uint32(8).int32(m.localChatState);
|
|
63389
63847
|
if (m.welcomeTrigger != null && Object.hasOwnProperty.call(m, "welcomeTrigger"))
|
|
63390
63848
|
w.uint32(16).int32(m.welcomeTrigger);
|
|
63849
|
+
if (m.botAgentMetadata != null && Object.hasOwnProperty.call(m, "botAgentMetadata"))
|
|
63850
|
+
$root.proto.BotAgentMetadata.encode(m.botAgentMetadata, w.uint32(26).fork()).ldelim();
|
|
63391
63851
|
return w;
|
|
63392
63852
|
};
|
|
63393
63853
|
|
|
@@ -63408,6 +63868,10 @@ export const proto = $root.proto = (() => {
|
|
|
63408
63868
|
m.welcomeTrigger = r.int32();
|
|
63409
63869
|
break;
|
|
63410
63870
|
}
|
|
63871
|
+
case 3: {
|
|
63872
|
+
m.botAgentMetadata = $root.proto.BotAgentMetadata.decode(r, r.uint32());
|
|
63873
|
+
break;
|
|
63874
|
+
}
|
|
63411
63875
|
default:
|
|
63412
63876
|
r.skipType(t & 7);
|
|
63413
63877
|
break;
|
|
@@ -63452,6 +63916,11 @@ export const proto = $root.proto = (() => {
|
|
|
63452
63916
|
m.welcomeTrigger = 1;
|
|
63453
63917
|
break;
|
|
63454
63918
|
}
|
|
63919
|
+
if (d.botAgentMetadata != null) {
|
|
63920
|
+
if (typeof d.botAgentMetadata !== "object")
|
|
63921
|
+
throw TypeError(".proto.Message.RequestWelcomeMessageMetadata.botAgentMetadata: object expected");
|
|
63922
|
+
m.botAgentMetadata = $root.proto.BotAgentMetadata.fromObject(d.botAgentMetadata);
|
|
63923
|
+
}
|
|
63455
63924
|
return m;
|
|
63456
63925
|
};
|
|
63457
63926
|
|
|
@@ -63469,6 +63938,11 @@ export const proto = $root.proto = (() => {
|
|
|
63469
63938
|
if (o.oneofs)
|
|
63470
63939
|
d._welcomeTrigger = "welcomeTrigger";
|
|
63471
63940
|
}
|
|
63941
|
+
if (m.botAgentMetadata != null && m.hasOwnProperty("botAgentMetadata")) {
|
|
63942
|
+
d.botAgentMetadata = $root.proto.BotAgentMetadata.toObject(m.botAgentMetadata, o);
|
|
63943
|
+
if (o.oneofs)
|
|
63944
|
+
d._botAgentMetadata = "botAgentMetadata";
|
|
63945
|
+
}
|
|
63472
63946
|
return d;
|
|
63473
63947
|
};
|
|
63474
63948
|
|
|
@@ -67291,32 +67765,10 @@ export const proto = $root.proto = (() => {
|
|
|
67291
67765
|
this[ks[i]] = p[ks[i]];
|
|
67292
67766
|
}
|
|
67293
67767
|
|
|
67294
|
-
VideoEndCard.prototype.username =
|
|
67295
|
-
VideoEndCard.prototype.caption =
|
|
67296
|
-
VideoEndCard.prototype.thumbnailImageUrl =
|
|
67297
|
-
VideoEndCard.prototype.profilePictureUrl =
|
|
67298
|
-
|
|
67299
|
-
let $oneOfFields;
|
|
67300
|
-
|
|
67301
|
-
Object.defineProperty(VideoEndCard.prototype, "_username", {
|
|
67302
|
-
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
67303
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
67304
|
-
});
|
|
67305
|
-
|
|
67306
|
-
Object.defineProperty(VideoEndCard.prototype, "_caption", {
|
|
67307
|
-
get: $util.oneOfGetter($oneOfFields = ["caption"]),
|
|
67308
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
67309
|
-
});
|
|
67310
|
-
|
|
67311
|
-
Object.defineProperty(VideoEndCard.prototype, "_thumbnailImageUrl", {
|
|
67312
|
-
get: $util.oneOfGetter($oneOfFields = ["thumbnailImageUrl"]),
|
|
67313
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
67314
|
-
});
|
|
67315
|
-
|
|
67316
|
-
Object.defineProperty(VideoEndCard.prototype, "_profilePictureUrl", {
|
|
67317
|
-
get: $util.oneOfGetter($oneOfFields = ["profilePictureUrl"]),
|
|
67318
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
67319
|
-
});
|
|
67768
|
+
VideoEndCard.prototype.username = "";
|
|
67769
|
+
VideoEndCard.prototype.caption = "";
|
|
67770
|
+
VideoEndCard.prototype.thumbnailImageUrl = "";
|
|
67771
|
+
VideoEndCard.prototype.profilePictureUrl = "";
|
|
67320
67772
|
|
|
67321
67773
|
VideoEndCard.create = function create(properties) {
|
|
67322
67774
|
return new VideoEndCard(properties);
|
|
@@ -67392,25 +67844,23 @@ export const proto = $root.proto = (() => {
|
|
|
67392
67844
|
if (!o)
|
|
67393
67845
|
o = {};
|
|
67394
67846
|
var d = {};
|
|
67847
|
+
if (o.defaults) {
|
|
67848
|
+
d.username = "";
|
|
67849
|
+
d.caption = "";
|
|
67850
|
+
d.thumbnailImageUrl = "";
|
|
67851
|
+
d.profilePictureUrl = "";
|
|
67852
|
+
}
|
|
67395
67853
|
if (m.username != null && m.hasOwnProperty("username")) {
|
|
67396
67854
|
d.username = m.username;
|
|
67397
|
-
if (o.oneofs)
|
|
67398
|
-
d._username = "username";
|
|
67399
67855
|
}
|
|
67400
67856
|
if (m.caption != null && m.hasOwnProperty("caption")) {
|
|
67401
67857
|
d.caption = m.caption;
|
|
67402
|
-
if (o.oneofs)
|
|
67403
|
-
d._caption = "caption";
|
|
67404
67858
|
}
|
|
67405
67859
|
if (m.thumbnailImageUrl != null && m.hasOwnProperty("thumbnailImageUrl")) {
|
|
67406
67860
|
d.thumbnailImageUrl = m.thumbnailImageUrl;
|
|
67407
|
-
if (o.oneofs)
|
|
67408
|
-
d._thumbnailImageUrl = "thumbnailImageUrl";
|
|
67409
67861
|
}
|
|
67410
67862
|
if (m.profilePictureUrl != null && m.hasOwnProperty("profilePictureUrl")) {
|
|
67411
67863
|
d.profilePictureUrl = m.profilePictureUrl;
|
|
67412
|
-
if (o.oneofs)
|
|
67413
|
-
d._profilePictureUrl = "profilePictureUrl";
|
|
67414
67864
|
}
|
|
67415
67865
|
return d;
|
|
67416
67866
|
};
|
|
@@ -71606,6 +72056,7 @@ export const proto = $root.proto = (() => {
|
|
|
71606
72056
|
values[valuesById[81] = "BUSINESS_BROADCAST_CAMPAIGN_ACTION"] = 81;
|
|
71607
72057
|
values[valuesById[82] = "BUSINESS_BROADCAST_INSIGHTS_ACTION"] = 82;
|
|
71608
72058
|
values[valuesById[83] = "CUSTOMER_DATA_ACTION"] = 83;
|
|
72059
|
+
values[valuesById[84] = "SUBSCRIPTIONS_SYNC_V2_ACTION"] = 84;
|
|
71609
72060
|
values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
|
|
71610
72061
|
values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
|
|
71611
72062
|
values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
|
|
@@ -80897,16 +81348,11 @@ export const proto = $root.proto = (() => {
|
|
|
80897
81348
|
this[ks[i]] = p[ks[i]];
|
|
80898
81349
|
}
|
|
80899
81350
|
|
|
80900
|
-
StatusPSA.prototype.campaignId =
|
|
81351
|
+
StatusPSA.prototype.campaignId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80901
81352
|
StatusPSA.prototype.campaignExpirationTimestamp = null;
|
|
80902
81353
|
|
|
80903
81354
|
let $oneOfFields;
|
|
80904
81355
|
|
|
80905
|
-
Object.defineProperty(StatusPSA.prototype, "_campaignId", {
|
|
80906
|
-
get: $util.oneOfGetter($oneOfFields = ["campaignId"]),
|
|
80907
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
80908
|
-
});
|
|
80909
|
-
|
|
80910
81356
|
Object.defineProperty(StatusPSA.prototype, "_campaignExpirationTimestamp", {
|
|
80911
81357
|
get: $util.oneOfGetter($oneOfFields = ["campaignExpirationTimestamp"]),
|
|
80912
81358
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -80982,13 +81428,18 @@ export const proto = $root.proto = (() => {
|
|
|
80982
81428
|
if (!o)
|
|
80983
81429
|
o = {};
|
|
80984
81430
|
var d = {};
|
|
81431
|
+
if (o.defaults) {
|
|
81432
|
+
if ($util.Long) {
|
|
81433
|
+
var n = new $util.Long(0, 0, true);
|
|
81434
|
+
d.campaignId = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
81435
|
+
} else
|
|
81436
|
+
d.campaignId = o.longs === String ? "0" : 0;
|
|
81437
|
+
}
|
|
80985
81438
|
if (m.campaignId != null && m.hasOwnProperty("campaignId")) {
|
|
80986
81439
|
if (typeof m.campaignId === "number")
|
|
80987
81440
|
d.campaignId = o.longs === String ? String(m.campaignId) : m.campaignId;
|
|
80988
81441
|
else
|
|
80989
81442
|
d.campaignId = o.longs === String ? longToString(m.campaignId, true) : o.longs === Number ? longToNumber(m.campaignId, true) : m.campaignId;
|
|
80990
|
-
if (o.oneofs)
|
|
80991
|
-
d._campaignId = "campaignId";
|
|
80992
81443
|
}
|
|
80993
81444
|
if (m.campaignExpirationTimestamp != null && m.hasOwnProperty("campaignExpirationTimestamp")) {
|
|
80994
81445
|
if (typeof m.campaignExpirationTimestamp === "number")
|
|
@@ -81629,6 +82080,7 @@ export const proto = $root.proto = (() => {
|
|
|
81629
82080
|
SyncActionValue.prototype.businessBroadcastCampaignAction = null;
|
|
81630
82081
|
SyncActionValue.prototype.businessBroadcastInsightsAction = null;
|
|
81631
82082
|
SyncActionValue.prototype.customerDataAction = null;
|
|
82083
|
+
SyncActionValue.prototype.subscriptionsSyncV2Action = null;
|
|
81632
82084
|
|
|
81633
82085
|
let $oneOfFields;
|
|
81634
82086
|
|
|
@@ -82002,6 +82454,11 @@ export const proto = $root.proto = (() => {
|
|
|
82002
82454
|
set: $util.oneOfSetter($oneOfFields)
|
|
82003
82455
|
});
|
|
82004
82456
|
|
|
82457
|
+
Object.defineProperty(SyncActionValue.prototype, "_subscriptionsSyncV2Action", {
|
|
82458
|
+
get: $util.oneOfGetter($oneOfFields = ["subscriptionsSyncV2Action"]),
|
|
82459
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82460
|
+
});
|
|
82461
|
+
|
|
82005
82462
|
SyncActionValue.create = function create(properties) {
|
|
82006
82463
|
return new SyncActionValue(properties);
|
|
82007
82464
|
};
|
|
@@ -82157,6 +82614,8 @@ export const proto = $root.proto = (() => {
|
|
|
82157
82614
|
$root.proto.SyncActionValue.BusinessBroadcastInsightsAction.encode(m.businessBroadcastInsightsAction, w.uint32(658).fork()).ldelim();
|
|
82158
82615
|
if (m.customerDataAction != null && Object.hasOwnProperty.call(m, "customerDataAction"))
|
|
82159
82616
|
$root.proto.SyncActionValue.CustomerDataAction.encode(m.customerDataAction, w.uint32(666).fork()).ldelim();
|
|
82617
|
+
if (m.subscriptionsSyncV2Action != null && Object.hasOwnProperty.call(m, "subscriptionsSyncV2Action"))
|
|
82618
|
+
$root.proto.SyncActionValue.SubscriptionsSyncV2Action.encode(m.subscriptionsSyncV2Action, w.uint32(674).fork()).ldelim();
|
|
82160
82619
|
return w;
|
|
82161
82620
|
};
|
|
82162
82621
|
|
|
@@ -82465,6 +82924,10 @@ export const proto = $root.proto = (() => {
|
|
|
82465
82924
|
m.customerDataAction = $root.proto.SyncActionValue.CustomerDataAction.decode(r, r.uint32());
|
|
82466
82925
|
break;
|
|
82467
82926
|
}
|
|
82927
|
+
case 84: {
|
|
82928
|
+
m.subscriptionsSyncV2Action = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.decode(r, r.uint32());
|
|
82929
|
+
break;
|
|
82930
|
+
}
|
|
82468
82931
|
default:
|
|
82469
82932
|
r.skipType(t & 7);
|
|
82470
82933
|
break;
|
|
@@ -82852,6 +83315,11 @@ export const proto = $root.proto = (() => {
|
|
|
82852
83315
|
throw TypeError(".proto.SyncActionValue.customerDataAction: object expected");
|
|
82853
83316
|
m.customerDataAction = $root.proto.SyncActionValue.CustomerDataAction.fromObject(d.customerDataAction);
|
|
82854
83317
|
}
|
|
83318
|
+
if (d.subscriptionsSyncV2Action != null) {
|
|
83319
|
+
if (typeof d.subscriptionsSyncV2Action !== "object")
|
|
83320
|
+
throw TypeError(".proto.SyncActionValue.subscriptionsSyncV2Action: object expected");
|
|
83321
|
+
m.subscriptionsSyncV2Action = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.fromObject(d.subscriptionsSyncV2Action);
|
|
83322
|
+
}
|
|
82855
83323
|
return m;
|
|
82856
83324
|
};
|
|
82857
83325
|
|
|
@@ -83232,6 +83700,11 @@ export const proto = $root.proto = (() => {
|
|
|
83232
83700
|
if (o.oneofs)
|
|
83233
83701
|
d._customerDataAction = "customerDataAction";
|
|
83234
83702
|
}
|
|
83703
|
+
if (m.subscriptionsSyncV2Action != null && m.hasOwnProperty("subscriptionsSyncV2Action")) {
|
|
83704
|
+
d.subscriptionsSyncV2Action = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.toObject(m.subscriptionsSyncV2Action, o);
|
|
83705
|
+
if (o.oneofs)
|
|
83706
|
+
d._subscriptionsSyncV2Action = "subscriptionsSyncV2Action";
|
|
83707
|
+
}
|
|
83235
83708
|
return d;
|
|
83236
83709
|
};
|
|
83237
83710
|
|
|
@@ -83895,16 +84368,11 @@ export const proto = $root.proto = (() => {
|
|
|
83895
84368
|
this[ks[i]] = p[ks[i]];
|
|
83896
84369
|
}
|
|
83897
84370
|
|
|
83898
|
-
BroadcastListParticipant.prototype.lidJid =
|
|
84371
|
+
BroadcastListParticipant.prototype.lidJid = "";
|
|
83899
84372
|
BroadcastListParticipant.prototype.pnJid = null;
|
|
83900
84373
|
|
|
83901
84374
|
let $oneOfFields;
|
|
83902
84375
|
|
|
83903
|
-
Object.defineProperty(BroadcastListParticipant.prototype, "_lidJid", {
|
|
83904
|
-
get: $util.oneOfGetter($oneOfFields = ["lidJid"]),
|
|
83905
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
83906
|
-
});
|
|
83907
|
-
|
|
83908
84376
|
Object.defineProperty(BroadcastListParticipant.prototype, "_pnJid", {
|
|
83909
84377
|
get: $util.oneOfGetter($oneOfFields = ["pnJid"]),
|
|
83910
84378
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -83966,10 +84434,11 @@ export const proto = $root.proto = (() => {
|
|
|
83966
84434
|
if (!o)
|
|
83967
84435
|
o = {};
|
|
83968
84436
|
var d = {};
|
|
84437
|
+
if (o.defaults) {
|
|
84438
|
+
d.lidJid = "";
|
|
84439
|
+
}
|
|
83969
84440
|
if (m.lidJid != null && m.hasOwnProperty("lidJid")) {
|
|
83970
84441
|
d.lidJid = m.lidJid;
|
|
83971
|
-
if (o.oneofs)
|
|
83972
|
-
d._lidJid = "lidJid";
|
|
83973
84442
|
}
|
|
83974
84443
|
if (m.pnJid != null && m.hasOwnProperty("pnJid")) {
|
|
83975
84444
|
d.pnJid = m.pnJid;
|
|
@@ -85350,28 +85819,11 @@ export const proto = $root.proto = (() => {
|
|
|
85350
85819
|
this[ks[i]] = p[ks[i]];
|
|
85351
85820
|
}
|
|
85352
85821
|
|
|
85353
|
-
CustomPaymentMethod.prototype.credentialId =
|
|
85354
|
-
CustomPaymentMethod.prototype.country =
|
|
85355
|
-
CustomPaymentMethod.prototype.type =
|
|
85822
|
+
CustomPaymentMethod.prototype.credentialId = "";
|
|
85823
|
+
CustomPaymentMethod.prototype.country = "";
|
|
85824
|
+
CustomPaymentMethod.prototype.type = "";
|
|
85356
85825
|
CustomPaymentMethod.prototype.metadata = $util.emptyArray;
|
|
85357
85826
|
|
|
85358
|
-
let $oneOfFields;
|
|
85359
|
-
|
|
85360
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_credentialId", {
|
|
85361
|
-
get: $util.oneOfGetter($oneOfFields = ["credentialId"]),
|
|
85362
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
85363
|
-
});
|
|
85364
|
-
|
|
85365
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_country", {
|
|
85366
|
-
get: $util.oneOfGetter($oneOfFields = ["country"]),
|
|
85367
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
85368
|
-
});
|
|
85369
|
-
|
|
85370
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_type", {
|
|
85371
|
-
get: $util.oneOfGetter($oneOfFields = ["type"]),
|
|
85372
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
85373
|
-
});
|
|
85374
|
-
|
|
85375
85827
|
CustomPaymentMethod.create = function create(properties) {
|
|
85376
85828
|
return new CustomPaymentMethod(properties);
|
|
85377
85829
|
};
|
|
@@ -85460,20 +85912,19 @@ export const proto = $root.proto = (() => {
|
|
|
85460
85912
|
if (o.arrays || o.defaults) {
|
|
85461
85913
|
d.metadata = [];
|
|
85462
85914
|
}
|
|
85915
|
+
if (o.defaults) {
|
|
85916
|
+
d.credentialId = "";
|
|
85917
|
+
d.country = "";
|
|
85918
|
+
d.type = "";
|
|
85919
|
+
}
|
|
85463
85920
|
if (m.credentialId != null && m.hasOwnProperty("credentialId")) {
|
|
85464
85921
|
d.credentialId = m.credentialId;
|
|
85465
|
-
if (o.oneofs)
|
|
85466
|
-
d._credentialId = "credentialId";
|
|
85467
85922
|
}
|
|
85468
85923
|
if (m.country != null && m.hasOwnProperty("country")) {
|
|
85469
85924
|
d.country = m.country;
|
|
85470
|
-
if (o.oneofs)
|
|
85471
|
-
d._country = "country";
|
|
85472
85925
|
}
|
|
85473
85926
|
if (m.type != null && m.hasOwnProperty("type")) {
|
|
85474
85927
|
d.type = m.type;
|
|
85475
|
-
if (o.oneofs)
|
|
85476
|
-
d._type = "type";
|
|
85477
85928
|
}
|
|
85478
85929
|
if (m.metadata && m.metadata.length) {
|
|
85479
85930
|
d.metadata = [];
|
|
@@ -85507,20 +85958,8 @@ export const proto = $root.proto = (() => {
|
|
|
85507
85958
|
this[ks[i]] = p[ks[i]];
|
|
85508
85959
|
}
|
|
85509
85960
|
|
|
85510
|
-
CustomPaymentMethodMetadata.prototype.key =
|
|
85511
|
-
CustomPaymentMethodMetadata.prototype.value =
|
|
85512
|
-
|
|
85513
|
-
let $oneOfFields;
|
|
85514
|
-
|
|
85515
|
-
Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_key", {
|
|
85516
|
-
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
85517
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
85518
|
-
});
|
|
85519
|
-
|
|
85520
|
-
Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_value", {
|
|
85521
|
-
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
85522
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
85523
|
-
});
|
|
85961
|
+
CustomPaymentMethodMetadata.prototype.key = "";
|
|
85962
|
+
CustomPaymentMethodMetadata.prototype.value = "";
|
|
85524
85963
|
|
|
85525
85964
|
CustomPaymentMethodMetadata.create = function create(properties) {
|
|
85526
85965
|
return new CustomPaymentMethodMetadata(properties);
|
|
@@ -85578,15 +86017,15 @@ export const proto = $root.proto = (() => {
|
|
|
85578
86017
|
if (!o)
|
|
85579
86018
|
o = {};
|
|
85580
86019
|
var d = {};
|
|
86020
|
+
if (o.defaults) {
|
|
86021
|
+
d.key = "";
|
|
86022
|
+
d.value = "";
|
|
86023
|
+
}
|
|
85581
86024
|
if (m.key != null && m.hasOwnProperty("key")) {
|
|
85582
86025
|
d.key = m.key;
|
|
85583
|
-
if (o.oneofs)
|
|
85584
|
-
d._key = "key";
|
|
85585
86026
|
}
|
|
85586
86027
|
if (m.value != null && m.hasOwnProperty("value")) {
|
|
85587
86028
|
d.value = m.value;
|
|
85588
|
-
if (o.oneofs)
|
|
85589
|
-
d._value = "value";
|
|
85590
86029
|
}
|
|
85591
86030
|
return d;
|
|
85592
86031
|
};
|
|
@@ -86707,16 +87146,11 @@ export const proto = $root.proto = (() => {
|
|
|
86707
87146
|
this[ks[i]] = p[ks[i]];
|
|
86708
87147
|
}
|
|
86709
87148
|
|
|
86710
|
-
InteractiveMessageAction.prototype.type =
|
|
87149
|
+
InteractiveMessageAction.prototype.type = 1;
|
|
86711
87150
|
InteractiveMessageAction.prototype.agmId = null;
|
|
86712
87151
|
|
|
86713
87152
|
let $oneOfFields;
|
|
86714
87153
|
|
|
86715
|
-
Object.defineProperty(InteractiveMessageAction.prototype, "_type", {
|
|
86716
|
-
get: $util.oneOfGetter($oneOfFields = ["type"]),
|
|
86717
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86718
|
-
});
|
|
86719
|
-
|
|
86720
87154
|
Object.defineProperty(InteractiveMessageAction.prototype, "_agmId", {
|
|
86721
87155
|
get: $util.oneOfGetter($oneOfFields = ["agmId"]),
|
|
86722
87156
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -86787,10 +87221,11 @@ export const proto = $root.proto = (() => {
|
|
|
86787
87221
|
if (!o)
|
|
86788
87222
|
o = {};
|
|
86789
87223
|
var d = {};
|
|
87224
|
+
if (o.defaults) {
|
|
87225
|
+
d.type = o.enums === String ? "DISABLE_CTA" : 1;
|
|
87226
|
+
}
|
|
86790
87227
|
if (m.type != null && m.hasOwnProperty("type")) {
|
|
86791
87228
|
d.type = o.enums === String ? $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] === undefined ? m.type : $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] : m.type;
|
|
86792
|
-
if (o.oneofs)
|
|
86793
|
-
d._type = "type";
|
|
86794
87229
|
}
|
|
86795
87230
|
if (m.agmId != null && m.hasOwnProperty("agmId")) {
|
|
86796
87231
|
d.agmId = m.agmId;
|
|
@@ -88277,23 +88712,13 @@ export const proto = $root.proto = (() => {
|
|
|
88277
88712
|
this[ks[i]] = p[ks[i]];
|
|
88278
88713
|
}
|
|
88279
88714
|
|
|
88280
|
-
MerchantPaymentPartnerAction.prototype.status =
|
|
88281
|
-
MerchantPaymentPartnerAction.prototype.country =
|
|
88715
|
+
MerchantPaymentPartnerAction.prototype.status = 0;
|
|
88716
|
+
MerchantPaymentPartnerAction.prototype.country = "";
|
|
88282
88717
|
MerchantPaymentPartnerAction.prototype.gatewayName = null;
|
|
88283
88718
|
MerchantPaymentPartnerAction.prototype.credentialId = null;
|
|
88284
88719
|
|
|
88285
88720
|
let $oneOfFields;
|
|
88286
88721
|
|
|
88287
|
-
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_status", {
|
|
88288
|
-
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
88289
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
88290
|
-
});
|
|
88291
|
-
|
|
88292
|
-
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_country", {
|
|
88293
|
-
get: $util.oneOfGetter($oneOfFields = ["country"]),
|
|
88294
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
88295
|
-
});
|
|
88296
|
-
|
|
88297
88722
|
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_gatewayName", {
|
|
88298
88723
|
get: $util.oneOfGetter($oneOfFields = ["gatewayName"]),
|
|
88299
88724
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -88391,15 +88816,15 @@ export const proto = $root.proto = (() => {
|
|
|
88391
88816
|
if (!o)
|
|
88392
88817
|
o = {};
|
|
88393
88818
|
var d = {};
|
|
88819
|
+
if (o.defaults) {
|
|
88820
|
+
d.status = o.enums === String ? "ACTIVE" : 0;
|
|
88821
|
+
d.country = "";
|
|
88822
|
+
}
|
|
88394
88823
|
if (m.status != null && m.hasOwnProperty("status")) {
|
|
88395
88824
|
d.status = o.enums === String ? $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] === undefined ? m.status : $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] : m.status;
|
|
88396
|
-
if (o.oneofs)
|
|
88397
|
-
d._status = "status";
|
|
88398
88825
|
}
|
|
88399
88826
|
if (m.country != null && m.hasOwnProperty("country")) {
|
|
88400
88827
|
d.country = m.country;
|
|
88401
|
-
if (o.oneofs)
|
|
88402
|
-
d._country = "country";
|
|
88403
88828
|
}
|
|
88404
88829
|
if (m.gatewayName != null && m.hasOwnProperty("gatewayName")) {
|
|
88405
88830
|
d.gatewayName = m.gatewayName;
|
|
@@ -89518,20 +89943,8 @@ export const proto = $root.proto = (() => {
|
|
|
89518
89943
|
this[ks[i]] = p[ks[i]];
|
|
89519
89944
|
}
|
|
89520
89945
|
|
|
89521
|
-
PaymentTosAction.prototype.paymentNotice =
|
|
89522
|
-
PaymentTosAction.prototype.accepted =
|
|
89523
|
-
|
|
89524
|
-
let $oneOfFields;
|
|
89525
|
-
|
|
89526
|
-
Object.defineProperty(PaymentTosAction.prototype, "_paymentNotice", {
|
|
89527
|
-
get: $util.oneOfGetter($oneOfFields = ["paymentNotice"]),
|
|
89528
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
89529
|
-
});
|
|
89530
|
-
|
|
89531
|
-
Object.defineProperty(PaymentTosAction.prototype, "_accepted", {
|
|
89532
|
-
get: $util.oneOfGetter($oneOfFields = ["accepted"]),
|
|
89533
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
89534
|
-
});
|
|
89946
|
+
PaymentTosAction.prototype.paymentNotice = 0;
|
|
89947
|
+
PaymentTosAction.prototype.accepted = false;
|
|
89535
89948
|
|
|
89536
89949
|
PaymentTosAction.create = function create(properties) {
|
|
89537
89950
|
return new PaymentTosAction(properties);
|
|
@@ -89598,15 +90011,15 @@ export const proto = $root.proto = (() => {
|
|
|
89598
90011
|
if (!o)
|
|
89599
90012
|
o = {};
|
|
89600
90013
|
var d = {};
|
|
90014
|
+
if (o.defaults) {
|
|
90015
|
+
d.paymentNotice = o.enums === String ? "BR_PAY_PRIVACY_POLICY" : 0;
|
|
90016
|
+
d.accepted = false;
|
|
90017
|
+
}
|
|
89601
90018
|
if (m.paymentNotice != null && m.hasOwnProperty("paymentNotice")) {
|
|
89602
90019
|
d.paymentNotice = o.enums === String ? $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] === undefined ? m.paymentNotice : $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] : m.paymentNotice;
|
|
89603
|
-
if (o.oneofs)
|
|
89604
|
-
d._paymentNotice = "paymentNotice";
|
|
89605
90020
|
}
|
|
89606
90021
|
if (m.accepted != null && m.hasOwnProperty("accepted")) {
|
|
89607
90022
|
d.accepted = m.accepted;
|
|
89608
|
-
if (o.oneofs)
|
|
89609
|
-
d._accepted = "accepted";
|
|
89610
90023
|
}
|
|
89611
90024
|
return d;
|
|
89612
90025
|
};
|
|
@@ -92465,6 +92878,545 @@ export const proto = $root.proto = (() => {
|
|
|
92465
92878
|
return SubscriptionAction;
|
|
92466
92879
|
})();
|
|
92467
92880
|
|
|
92881
|
+
SyncActionValue.SubscriptionsSyncV2Action = (function() {
|
|
92882
|
+
|
|
92883
|
+
function SubscriptionsSyncV2Action(p) {
|
|
92884
|
+
this.subscriptions = [];
|
|
92885
|
+
this.paidFeature = [];
|
|
92886
|
+
if (p)
|
|
92887
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
92888
|
+
if (p[ks[i]] != null)
|
|
92889
|
+
this[ks[i]] = p[ks[i]];
|
|
92890
|
+
}
|
|
92891
|
+
|
|
92892
|
+
SubscriptionsSyncV2Action.prototype.subscriptions = $util.emptyArray;
|
|
92893
|
+
SubscriptionsSyncV2Action.prototype.paidFeature = $util.emptyArray;
|
|
92894
|
+
|
|
92895
|
+
SubscriptionsSyncV2Action.create = function create(properties) {
|
|
92896
|
+
return new SubscriptionsSyncV2Action(properties);
|
|
92897
|
+
};
|
|
92898
|
+
|
|
92899
|
+
SubscriptionsSyncV2Action.encode = function encode(m, w) {
|
|
92900
|
+
if (!w)
|
|
92901
|
+
w = $Writer.create();
|
|
92902
|
+
if (m.subscriptions != null && m.subscriptions.length) {
|
|
92903
|
+
for (var i = 0; i < m.subscriptions.length; ++i)
|
|
92904
|
+
$root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo.encode(m.subscriptions[i], w.uint32(10).fork()).ldelim();
|
|
92905
|
+
}
|
|
92906
|
+
if (m.paidFeature != null && m.paidFeature.length) {
|
|
92907
|
+
for (var i = 0; i < m.paidFeature.length; ++i)
|
|
92908
|
+
$root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature.encode(m.paidFeature[i], w.uint32(18).fork()).ldelim();
|
|
92909
|
+
}
|
|
92910
|
+
return w;
|
|
92911
|
+
};
|
|
92912
|
+
|
|
92913
|
+
SubscriptionsSyncV2Action.decode = function decode(r, l, e) {
|
|
92914
|
+
if (!(r instanceof $Reader))
|
|
92915
|
+
r = $Reader.create(r);
|
|
92916
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action();
|
|
92917
|
+
while (r.pos < c) {
|
|
92918
|
+
var t = r.uint32();
|
|
92919
|
+
if (t === e)
|
|
92920
|
+
break;
|
|
92921
|
+
switch (t >>> 3) {
|
|
92922
|
+
case 1: {
|
|
92923
|
+
if (!(m.subscriptions && m.subscriptions.length))
|
|
92924
|
+
m.subscriptions = [];
|
|
92925
|
+
m.subscriptions.push($root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo.decode(r, r.uint32()));
|
|
92926
|
+
break;
|
|
92927
|
+
}
|
|
92928
|
+
case 2: {
|
|
92929
|
+
if (!(m.paidFeature && m.paidFeature.length))
|
|
92930
|
+
m.paidFeature = [];
|
|
92931
|
+
m.paidFeature.push($root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature.decode(r, r.uint32()));
|
|
92932
|
+
break;
|
|
92933
|
+
}
|
|
92934
|
+
default:
|
|
92935
|
+
r.skipType(t & 7);
|
|
92936
|
+
break;
|
|
92937
|
+
}
|
|
92938
|
+
}
|
|
92939
|
+
return m;
|
|
92940
|
+
};
|
|
92941
|
+
|
|
92942
|
+
SubscriptionsSyncV2Action.fromObject = function fromObject(d) {
|
|
92943
|
+
if (d instanceof $root.proto.SyncActionValue.SubscriptionsSyncV2Action)
|
|
92944
|
+
return d;
|
|
92945
|
+
var m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action();
|
|
92946
|
+
if (d.subscriptions) {
|
|
92947
|
+
if (!Array.isArray(d.subscriptions))
|
|
92948
|
+
throw TypeError(".proto.SyncActionValue.SubscriptionsSyncV2Action.subscriptions: array expected");
|
|
92949
|
+
m.subscriptions = [];
|
|
92950
|
+
for (var i = 0; i < d.subscriptions.length; ++i) {
|
|
92951
|
+
if (typeof d.subscriptions[i] !== "object")
|
|
92952
|
+
throw TypeError(".proto.SyncActionValue.SubscriptionsSyncV2Action.subscriptions: object expected");
|
|
92953
|
+
m.subscriptions[i] = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo.fromObject(d.subscriptions[i]);
|
|
92954
|
+
}
|
|
92955
|
+
}
|
|
92956
|
+
if (d.paidFeature) {
|
|
92957
|
+
if (!Array.isArray(d.paidFeature))
|
|
92958
|
+
throw TypeError(".proto.SyncActionValue.SubscriptionsSyncV2Action.paidFeature: array expected");
|
|
92959
|
+
m.paidFeature = [];
|
|
92960
|
+
for (var i = 0; i < d.paidFeature.length; ++i) {
|
|
92961
|
+
if (typeof d.paidFeature[i] !== "object")
|
|
92962
|
+
throw TypeError(".proto.SyncActionValue.SubscriptionsSyncV2Action.paidFeature: object expected");
|
|
92963
|
+
m.paidFeature[i] = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature.fromObject(d.paidFeature[i]);
|
|
92964
|
+
}
|
|
92965
|
+
}
|
|
92966
|
+
return m;
|
|
92967
|
+
};
|
|
92968
|
+
|
|
92969
|
+
SubscriptionsSyncV2Action.toObject = function toObject(m, o) {
|
|
92970
|
+
if (!o)
|
|
92971
|
+
o = {};
|
|
92972
|
+
var d = {};
|
|
92973
|
+
if (o.arrays || o.defaults) {
|
|
92974
|
+
d.subscriptions = [];
|
|
92975
|
+
d.paidFeature = [];
|
|
92976
|
+
}
|
|
92977
|
+
if (m.subscriptions && m.subscriptions.length) {
|
|
92978
|
+
d.subscriptions = [];
|
|
92979
|
+
for (var j = 0; j < m.subscriptions.length; ++j) {
|
|
92980
|
+
d.subscriptions[j] = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo.toObject(m.subscriptions[j], o);
|
|
92981
|
+
}
|
|
92982
|
+
}
|
|
92983
|
+
if (m.paidFeature && m.paidFeature.length) {
|
|
92984
|
+
d.paidFeature = [];
|
|
92985
|
+
for (var j = 0; j < m.paidFeature.length; ++j) {
|
|
92986
|
+
d.paidFeature[j] = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature.toObject(m.paidFeature[j], o);
|
|
92987
|
+
}
|
|
92988
|
+
}
|
|
92989
|
+
return d;
|
|
92990
|
+
};
|
|
92991
|
+
|
|
92992
|
+
SubscriptionsSyncV2Action.prototype.toJSON = function toJSON() {
|
|
92993
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
92994
|
+
};
|
|
92995
|
+
|
|
92996
|
+
SubscriptionsSyncV2Action.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
92997
|
+
if (typeUrlPrefix === undefined) {
|
|
92998
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
92999
|
+
}
|
|
93000
|
+
return typeUrlPrefix + "/proto.SyncActionValue.SubscriptionsSyncV2Action";
|
|
93001
|
+
};
|
|
93002
|
+
|
|
93003
|
+
SubscriptionsSyncV2Action.PaidFeature = (function() {
|
|
93004
|
+
|
|
93005
|
+
function PaidFeature(p) {
|
|
93006
|
+
if (p)
|
|
93007
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
93008
|
+
if (p[ks[i]] != null)
|
|
93009
|
+
this[ks[i]] = p[ks[i]];
|
|
93010
|
+
}
|
|
93011
|
+
|
|
93012
|
+
PaidFeature.prototype.name = null;
|
|
93013
|
+
PaidFeature.prototype.enabled = null;
|
|
93014
|
+
PaidFeature.prototype.limit = null;
|
|
93015
|
+
PaidFeature.prototype.expirationTime = null;
|
|
93016
|
+
|
|
93017
|
+
let $oneOfFields;
|
|
93018
|
+
|
|
93019
|
+
Object.defineProperty(PaidFeature.prototype, "_name", {
|
|
93020
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
93021
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93022
|
+
});
|
|
93023
|
+
|
|
93024
|
+
Object.defineProperty(PaidFeature.prototype, "_enabled", {
|
|
93025
|
+
get: $util.oneOfGetter($oneOfFields = ["enabled"]),
|
|
93026
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93027
|
+
});
|
|
93028
|
+
|
|
93029
|
+
Object.defineProperty(PaidFeature.prototype, "_limit", {
|
|
93030
|
+
get: $util.oneOfGetter($oneOfFields = ["limit"]),
|
|
93031
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93032
|
+
});
|
|
93033
|
+
|
|
93034
|
+
Object.defineProperty(PaidFeature.prototype, "_expirationTime", {
|
|
93035
|
+
get: $util.oneOfGetter($oneOfFields = ["expirationTime"]),
|
|
93036
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93037
|
+
});
|
|
93038
|
+
|
|
93039
|
+
PaidFeature.create = function create(properties) {
|
|
93040
|
+
return new PaidFeature(properties);
|
|
93041
|
+
};
|
|
93042
|
+
|
|
93043
|
+
PaidFeature.encode = function encode(m, w) {
|
|
93044
|
+
if (!w)
|
|
93045
|
+
w = $Writer.create();
|
|
93046
|
+
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
93047
|
+
w.uint32(10).string(m.name);
|
|
93048
|
+
if (m.enabled != null && Object.hasOwnProperty.call(m, "enabled"))
|
|
93049
|
+
w.uint32(16).bool(m.enabled);
|
|
93050
|
+
if (m.limit != null && Object.hasOwnProperty.call(m, "limit"))
|
|
93051
|
+
w.uint32(24).int32(m.limit);
|
|
93052
|
+
if (m.expirationTime != null && Object.hasOwnProperty.call(m, "expirationTime"))
|
|
93053
|
+
w.uint32(32).int64(m.expirationTime);
|
|
93054
|
+
return w;
|
|
93055
|
+
};
|
|
93056
|
+
|
|
93057
|
+
PaidFeature.decode = function decode(r, l, e) {
|
|
93058
|
+
if (!(r instanceof $Reader))
|
|
93059
|
+
r = $Reader.create(r);
|
|
93060
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature();
|
|
93061
|
+
while (r.pos < c) {
|
|
93062
|
+
var t = r.uint32();
|
|
93063
|
+
if (t === e)
|
|
93064
|
+
break;
|
|
93065
|
+
switch (t >>> 3) {
|
|
93066
|
+
case 1: {
|
|
93067
|
+
m.name = r.string();
|
|
93068
|
+
break;
|
|
93069
|
+
}
|
|
93070
|
+
case 2: {
|
|
93071
|
+
m.enabled = r.bool();
|
|
93072
|
+
break;
|
|
93073
|
+
}
|
|
93074
|
+
case 3: {
|
|
93075
|
+
m.limit = r.int32();
|
|
93076
|
+
break;
|
|
93077
|
+
}
|
|
93078
|
+
case 4: {
|
|
93079
|
+
m.expirationTime = r.int64();
|
|
93080
|
+
break;
|
|
93081
|
+
}
|
|
93082
|
+
default:
|
|
93083
|
+
r.skipType(t & 7);
|
|
93084
|
+
break;
|
|
93085
|
+
}
|
|
93086
|
+
}
|
|
93087
|
+
return m;
|
|
93088
|
+
};
|
|
93089
|
+
|
|
93090
|
+
PaidFeature.fromObject = function fromObject(d) {
|
|
93091
|
+
if (d instanceof $root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature)
|
|
93092
|
+
return d;
|
|
93093
|
+
var m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature();
|
|
93094
|
+
if (d.name != null) {
|
|
93095
|
+
m.name = String(d.name);
|
|
93096
|
+
}
|
|
93097
|
+
if (d.enabled != null) {
|
|
93098
|
+
m.enabled = Boolean(d.enabled);
|
|
93099
|
+
}
|
|
93100
|
+
if (d.limit != null) {
|
|
93101
|
+
m.limit = d.limit | 0;
|
|
93102
|
+
}
|
|
93103
|
+
if (d.expirationTime != null) {
|
|
93104
|
+
if ($util.Long)
|
|
93105
|
+
(m.expirationTime = $util.Long.fromValue(d.expirationTime)).unsigned = false;
|
|
93106
|
+
else if (typeof d.expirationTime === "string")
|
|
93107
|
+
m.expirationTime = parseInt(d.expirationTime, 10);
|
|
93108
|
+
else if (typeof d.expirationTime === "number")
|
|
93109
|
+
m.expirationTime = d.expirationTime;
|
|
93110
|
+
else if (typeof d.expirationTime === "object")
|
|
93111
|
+
m.expirationTime = new $util.LongBits(d.expirationTime.low >>> 0, d.expirationTime.high >>> 0).toNumber();
|
|
93112
|
+
}
|
|
93113
|
+
return m;
|
|
93114
|
+
};
|
|
93115
|
+
|
|
93116
|
+
PaidFeature.toObject = function toObject(m, o) {
|
|
93117
|
+
if (!o)
|
|
93118
|
+
o = {};
|
|
93119
|
+
var d = {};
|
|
93120
|
+
if (m.name != null && m.hasOwnProperty("name")) {
|
|
93121
|
+
d.name = m.name;
|
|
93122
|
+
if (o.oneofs)
|
|
93123
|
+
d._name = "name";
|
|
93124
|
+
}
|
|
93125
|
+
if (m.enabled != null && m.hasOwnProperty("enabled")) {
|
|
93126
|
+
d.enabled = m.enabled;
|
|
93127
|
+
if (o.oneofs)
|
|
93128
|
+
d._enabled = "enabled";
|
|
93129
|
+
}
|
|
93130
|
+
if (m.limit != null && m.hasOwnProperty("limit")) {
|
|
93131
|
+
d.limit = m.limit;
|
|
93132
|
+
if (o.oneofs)
|
|
93133
|
+
d._limit = "limit";
|
|
93134
|
+
}
|
|
93135
|
+
if (m.expirationTime != null && m.hasOwnProperty("expirationTime")) {
|
|
93136
|
+
if (typeof m.expirationTime === "number")
|
|
93137
|
+
d.expirationTime = o.longs === String ? String(m.expirationTime) : m.expirationTime;
|
|
93138
|
+
else
|
|
93139
|
+
d.expirationTime = o.longs === String ? longToString(m.expirationTime) : o.longs === Number ? longToNumber(m.expirationTime) : m.expirationTime;
|
|
93140
|
+
if (o.oneofs)
|
|
93141
|
+
d._expirationTime = "expirationTime";
|
|
93142
|
+
}
|
|
93143
|
+
return d;
|
|
93144
|
+
};
|
|
93145
|
+
|
|
93146
|
+
PaidFeature.prototype.toJSON = function toJSON() {
|
|
93147
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
93148
|
+
};
|
|
93149
|
+
|
|
93150
|
+
PaidFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
93151
|
+
if (typeUrlPrefix === undefined) {
|
|
93152
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
93153
|
+
}
|
|
93154
|
+
return typeUrlPrefix + "/proto.SyncActionValue.SubscriptionsSyncV2Action.PaidFeature";
|
|
93155
|
+
};
|
|
93156
|
+
|
|
93157
|
+
return PaidFeature;
|
|
93158
|
+
})();
|
|
93159
|
+
|
|
93160
|
+
SubscriptionsSyncV2Action.SubscriptionInfo = (function() {
|
|
93161
|
+
|
|
93162
|
+
function SubscriptionInfo(p) {
|
|
93163
|
+
if (p)
|
|
93164
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
93165
|
+
if (p[ks[i]] != null)
|
|
93166
|
+
this[ks[i]] = p[ks[i]];
|
|
93167
|
+
}
|
|
93168
|
+
|
|
93169
|
+
SubscriptionInfo.prototype.id = null;
|
|
93170
|
+
SubscriptionInfo.prototype.tier = null;
|
|
93171
|
+
SubscriptionInfo.prototype.status = null;
|
|
93172
|
+
SubscriptionInfo.prototype.startTime = null;
|
|
93173
|
+
SubscriptionInfo.prototype.endTime = null;
|
|
93174
|
+
SubscriptionInfo.prototype.isPlatformChanged = null;
|
|
93175
|
+
SubscriptionInfo.prototype.source = null;
|
|
93176
|
+
SubscriptionInfo.prototype.creationTime = null;
|
|
93177
|
+
|
|
93178
|
+
let $oneOfFields;
|
|
93179
|
+
|
|
93180
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_id", {
|
|
93181
|
+
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
|
93182
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93183
|
+
});
|
|
93184
|
+
|
|
93185
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_tier", {
|
|
93186
|
+
get: $util.oneOfGetter($oneOfFields = ["tier"]),
|
|
93187
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93188
|
+
});
|
|
93189
|
+
|
|
93190
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_status", {
|
|
93191
|
+
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
93192
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93193
|
+
});
|
|
93194
|
+
|
|
93195
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_startTime", {
|
|
93196
|
+
get: $util.oneOfGetter($oneOfFields = ["startTime"]),
|
|
93197
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93198
|
+
});
|
|
93199
|
+
|
|
93200
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_endTime", {
|
|
93201
|
+
get: $util.oneOfGetter($oneOfFields = ["endTime"]),
|
|
93202
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93203
|
+
});
|
|
93204
|
+
|
|
93205
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_isPlatformChanged", {
|
|
93206
|
+
get: $util.oneOfGetter($oneOfFields = ["isPlatformChanged"]),
|
|
93207
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93208
|
+
});
|
|
93209
|
+
|
|
93210
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_source", {
|
|
93211
|
+
get: $util.oneOfGetter($oneOfFields = ["source"]),
|
|
93212
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93213
|
+
});
|
|
93214
|
+
|
|
93215
|
+
Object.defineProperty(SubscriptionInfo.prototype, "_creationTime", {
|
|
93216
|
+
get: $util.oneOfGetter($oneOfFields = ["creationTime"]),
|
|
93217
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93218
|
+
});
|
|
93219
|
+
|
|
93220
|
+
SubscriptionInfo.create = function create(properties) {
|
|
93221
|
+
return new SubscriptionInfo(properties);
|
|
93222
|
+
};
|
|
93223
|
+
|
|
93224
|
+
SubscriptionInfo.encode = function encode(m, w) {
|
|
93225
|
+
if (!w)
|
|
93226
|
+
w = $Writer.create();
|
|
93227
|
+
if (m.id != null && Object.hasOwnProperty.call(m, "id"))
|
|
93228
|
+
w.uint32(10).string(m.id);
|
|
93229
|
+
if (m.tier != null && Object.hasOwnProperty.call(m, "tier"))
|
|
93230
|
+
w.uint32(16).int32(m.tier);
|
|
93231
|
+
if (m.status != null && Object.hasOwnProperty.call(m, "status"))
|
|
93232
|
+
w.uint32(26).string(m.status);
|
|
93233
|
+
if (m.startTime != null && Object.hasOwnProperty.call(m, "startTime"))
|
|
93234
|
+
w.uint32(32).int64(m.startTime);
|
|
93235
|
+
if (m.endTime != null && Object.hasOwnProperty.call(m, "endTime"))
|
|
93236
|
+
w.uint32(40).int64(m.endTime);
|
|
93237
|
+
if (m.isPlatformChanged != null && Object.hasOwnProperty.call(m, "isPlatformChanged"))
|
|
93238
|
+
w.uint32(48).bool(m.isPlatformChanged);
|
|
93239
|
+
if (m.source != null && Object.hasOwnProperty.call(m, "source"))
|
|
93240
|
+
w.uint32(58).string(m.source);
|
|
93241
|
+
if (m.creationTime != null && Object.hasOwnProperty.call(m, "creationTime"))
|
|
93242
|
+
w.uint32(64).int64(m.creationTime);
|
|
93243
|
+
return w;
|
|
93244
|
+
};
|
|
93245
|
+
|
|
93246
|
+
SubscriptionInfo.decode = function decode(r, l, e) {
|
|
93247
|
+
if (!(r instanceof $Reader))
|
|
93248
|
+
r = $Reader.create(r);
|
|
93249
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo();
|
|
93250
|
+
while (r.pos < c) {
|
|
93251
|
+
var t = r.uint32();
|
|
93252
|
+
if (t === e)
|
|
93253
|
+
break;
|
|
93254
|
+
switch (t >>> 3) {
|
|
93255
|
+
case 1: {
|
|
93256
|
+
m.id = r.string();
|
|
93257
|
+
break;
|
|
93258
|
+
}
|
|
93259
|
+
case 2: {
|
|
93260
|
+
m.tier = r.int32();
|
|
93261
|
+
break;
|
|
93262
|
+
}
|
|
93263
|
+
case 3: {
|
|
93264
|
+
m.status = r.string();
|
|
93265
|
+
break;
|
|
93266
|
+
}
|
|
93267
|
+
case 4: {
|
|
93268
|
+
m.startTime = r.int64();
|
|
93269
|
+
break;
|
|
93270
|
+
}
|
|
93271
|
+
case 5: {
|
|
93272
|
+
m.endTime = r.int64();
|
|
93273
|
+
break;
|
|
93274
|
+
}
|
|
93275
|
+
case 6: {
|
|
93276
|
+
m.isPlatformChanged = r.bool();
|
|
93277
|
+
break;
|
|
93278
|
+
}
|
|
93279
|
+
case 7: {
|
|
93280
|
+
m.source = r.string();
|
|
93281
|
+
break;
|
|
93282
|
+
}
|
|
93283
|
+
case 8: {
|
|
93284
|
+
m.creationTime = r.int64();
|
|
93285
|
+
break;
|
|
93286
|
+
}
|
|
93287
|
+
default:
|
|
93288
|
+
r.skipType(t & 7);
|
|
93289
|
+
break;
|
|
93290
|
+
}
|
|
93291
|
+
}
|
|
93292
|
+
return m;
|
|
93293
|
+
};
|
|
93294
|
+
|
|
93295
|
+
SubscriptionInfo.fromObject = function fromObject(d) {
|
|
93296
|
+
if (d instanceof $root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo)
|
|
93297
|
+
return d;
|
|
93298
|
+
var m = new $root.proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo();
|
|
93299
|
+
if (d.id != null) {
|
|
93300
|
+
m.id = String(d.id);
|
|
93301
|
+
}
|
|
93302
|
+
if (d.tier != null) {
|
|
93303
|
+
m.tier = d.tier | 0;
|
|
93304
|
+
}
|
|
93305
|
+
if (d.status != null) {
|
|
93306
|
+
m.status = String(d.status);
|
|
93307
|
+
}
|
|
93308
|
+
if (d.startTime != null) {
|
|
93309
|
+
if ($util.Long)
|
|
93310
|
+
(m.startTime = $util.Long.fromValue(d.startTime)).unsigned = false;
|
|
93311
|
+
else if (typeof d.startTime === "string")
|
|
93312
|
+
m.startTime = parseInt(d.startTime, 10);
|
|
93313
|
+
else if (typeof d.startTime === "number")
|
|
93314
|
+
m.startTime = d.startTime;
|
|
93315
|
+
else if (typeof d.startTime === "object")
|
|
93316
|
+
m.startTime = new $util.LongBits(d.startTime.low >>> 0, d.startTime.high >>> 0).toNumber();
|
|
93317
|
+
}
|
|
93318
|
+
if (d.endTime != null) {
|
|
93319
|
+
if ($util.Long)
|
|
93320
|
+
(m.endTime = $util.Long.fromValue(d.endTime)).unsigned = false;
|
|
93321
|
+
else if (typeof d.endTime === "string")
|
|
93322
|
+
m.endTime = parseInt(d.endTime, 10);
|
|
93323
|
+
else if (typeof d.endTime === "number")
|
|
93324
|
+
m.endTime = d.endTime;
|
|
93325
|
+
else if (typeof d.endTime === "object")
|
|
93326
|
+
m.endTime = new $util.LongBits(d.endTime.low >>> 0, d.endTime.high >>> 0).toNumber();
|
|
93327
|
+
}
|
|
93328
|
+
if (d.isPlatformChanged != null) {
|
|
93329
|
+
m.isPlatformChanged = Boolean(d.isPlatformChanged);
|
|
93330
|
+
}
|
|
93331
|
+
if (d.source != null) {
|
|
93332
|
+
m.source = String(d.source);
|
|
93333
|
+
}
|
|
93334
|
+
if (d.creationTime != null) {
|
|
93335
|
+
if ($util.Long)
|
|
93336
|
+
(m.creationTime = $util.Long.fromValue(d.creationTime)).unsigned = false;
|
|
93337
|
+
else if (typeof d.creationTime === "string")
|
|
93338
|
+
m.creationTime = parseInt(d.creationTime, 10);
|
|
93339
|
+
else if (typeof d.creationTime === "number")
|
|
93340
|
+
m.creationTime = d.creationTime;
|
|
93341
|
+
else if (typeof d.creationTime === "object")
|
|
93342
|
+
m.creationTime = new $util.LongBits(d.creationTime.low >>> 0, d.creationTime.high >>> 0).toNumber();
|
|
93343
|
+
}
|
|
93344
|
+
return m;
|
|
93345
|
+
};
|
|
93346
|
+
|
|
93347
|
+
SubscriptionInfo.toObject = function toObject(m, o) {
|
|
93348
|
+
if (!o)
|
|
93349
|
+
o = {};
|
|
93350
|
+
var d = {};
|
|
93351
|
+
if (m.id != null && m.hasOwnProperty("id")) {
|
|
93352
|
+
d.id = m.id;
|
|
93353
|
+
if (o.oneofs)
|
|
93354
|
+
d._id = "id";
|
|
93355
|
+
}
|
|
93356
|
+
if (m.tier != null && m.hasOwnProperty("tier")) {
|
|
93357
|
+
d.tier = m.tier;
|
|
93358
|
+
if (o.oneofs)
|
|
93359
|
+
d._tier = "tier";
|
|
93360
|
+
}
|
|
93361
|
+
if (m.status != null && m.hasOwnProperty("status")) {
|
|
93362
|
+
d.status = m.status;
|
|
93363
|
+
if (o.oneofs)
|
|
93364
|
+
d._status = "status";
|
|
93365
|
+
}
|
|
93366
|
+
if (m.startTime != null && m.hasOwnProperty("startTime")) {
|
|
93367
|
+
if (typeof m.startTime === "number")
|
|
93368
|
+
d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
|
|
93369
|
+
else
|
|
93370
|
+
d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
|
|
93371
|
+
if (o.oneofs)
|
|
93372
|
+
d._startTime = "startTime";
|
|
93373
|
+
}
|
|
93374
|
+
if (m.endTime != null && m.hasOwnProperty("endTime")) {
|
|
93375
|
+
if (typeof m.endTime === "number")
|
|
93376
|
+
d.endTime = o.longs === String ? String(m.endTime) : m.endTime;
|
|
93377
|
+
else
|
|
93378
|
+
d.endTime = o.longs === String ? longToString(m.endTime) : o.longs === Number ? longToNumber(m.endTime) : m.endTime;
|
|
93379
|
+
if (o.oneofs)
|
|
93380
|
+
d._endTime = "endTime";
|
|
93381
|
+
}
|
|
93382
|
+
if (m.isPlatformChanged != null && m.hasOwnProperty("isPlatformChanged")) {
|
|
93383
|
+
d.isPlatformChanged = m.isPlatformChanged;
|
|
93384
|
+
if (o.oneofs)
|
|
93385
|
+
d._isPlatformChanged = "isPlatformChanged";
|
|
93386
|
+
}
|
|
93387
|
+
if (m.source != null && m.hasOwnProperty("source")) {
|
|
93388
|
+
d.source = m.source;
|
|
93389
|
+
if (o.oneofs)
|
|
93390
|
+
d._source = "source";
|
|
93391
|
+
}
|
|
93392
|
+
if (m.creationTime != null && m.hasOwnProperty("creationTime")) {
|
|
93393
|
+
if (typeof m.creationTime === "number")
|
|
93394
|
+
d.creationTime = o.longs === String ? String(m.creationTime) : m.creationTime;
|
|
93395
|
+
else
|
|
93396
|
+
d.creationTime = o.longs === String ? longToString(m.creationTime) : o.longs === Number ? longToNumber(m.creationTime) : m.creationTime;
|
|
93397
|
+
if (o.oneofs)
|
|
93398
|
+
d._creationTime = "creationTime";
|
|
93399
|
+
}
|
|
93400
|
+
return d;
|
|
93401
|
+
};
|
|
93402
|
+
|
|
93403
|
+
SubscriptionInfo.prototype.toJSON = function toJSON() {
|
|
93404
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
93405
|
+
};
|
|
93406
|
+
|
|
93407
|
+
SubscriptionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
93408
|
+
if (typeUrlPrefix === undefined) {
|
|
93409
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
93410
|
+
}
|
|
93411
|
+
return typeUrlPrefix + "/proto.SyncActionValue.SubscriptionsSyncV2Action.SubscriptionInfo";
|
|
93412
|
+
};
|
|
93413
|
+
|
|
93414
|
+
return SubscriptionInfo;
|
|
93415
|
+
})();
|
|
93416
|
+
|
|
93417
|
+
return SubscriptionsSyncV2Action;
|
|
93418
|
+
})();
|
|
93419
|
+
|
|
92468
93420
|
SyncActionValue.SyncActionMessage = (function() {
|
|
92469
93421
|
|
|
92470
93422
|
function SyncActionMessage(p) {
|
|
@@ -95866,7 +96818,7 @@ export const proto = $root.proto = (() => {
|
|
|
95866
96818
|
this[ks[i]] = p[ks[i]];
|
|
95867
96819
|
}
|
|
95868
96820
|
|
|
95869
|
-
UserReceipt.prototype.userJid =
|
|
96821
|
+
UserReceipt.prototype.userJid = "";
|
|
95870
96822
|
UserReceipt.prototype.receiptTimestamp = null;
|
|
95871
96823
|
UserReceipt.prototype.readTimestamp = null;
|
|
95872
96824
|
UserReceipt.prototype.playedTimestamp = null;
|
|
@@ -95875,11 +96827,6 @@ export const proto = $root.proto = (() => {
|
|
|
95875
96827
|
|
|
95876
96828
|
let $oneOfFields;
|
|
95877
96829
|
|
|
95878
|
-
Object.defineProperty(UserReceipt.prototype, "_userJid", {
|
|
95879
|
-
get: $util.oneOfGetter($oneOfFields = ["userJid"]),
|
|
95880
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
95881
|
-
});
|
|
95882
|
-
|
|
95883
96830
|
Object.defineProperty(UserReceipt.prototype, "_receiptTimestamp", {
|
|
95884
96831
|
get: $util.oneOfGetter($oneOfFields = ["receiptTimestamp"]),
|
|
95885
96832
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -96030,10 +96977,11 @@ export const proto = $root.proto = (() => {
|
|
|
96030
96977
|
d.pendingDeviceJid = [];
|
|
96031
96978
|
d.deliveredDeviceJid = [];
|
|
96032
96979
|
}
|
|
96980
|
+
if (o.defaults) {
|
|
96981
|
+
d.userJid = "";
|
|
96982
|
+
}
|
|
96033
96983
|
if (m.userJid != null && m.hasOwnProperty("userJid")) {
|
|
96034
96984
|
d.userJid = m.userJid;
|
|
96035
|
-
if (o.oneofs)
|
|
96036
|
-
d._userJid = "userJid";
|
|
96037
96985
|
}
|
|
96038
96986
|
if (m.receiptTimestamp != null && m.hasOwnProperty("receiptTimestamp")) {
|
|
96039
96987
|
if (typeof m.receiptTimestamp === "number")
|
|
@@ -98567,11 +99515,6 @@ export const proto = $root.proto = (() => {
|
|
|
98567
99515
|
|
|
98568
99516
|
let $oneOfFields;
|
|
98569
99517
|
|
|
98570
|
-
Object.defineProperty(WebMessageInfo.prototype, "_key", {
|
|
98571
|
-
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
98572
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
98573
|
-
});
|
|
98574
|
-
|
|
98575
99518
|
Object.defineProperty(WebMessageInfo.prototype, "_message", {
|
|
98576
99519
|
get: $util.oneOfGetter($oneOfFields = ["message"]),
|
|
98577
99520
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -100660,10 +101603,11 @@ export const proto = $root.proto = (() => {
|
|
|
100660
101603
|
d.statusMentionSources = [];
|
|
100661
101604
|
d.supportAiCitations = [];
|
|
100662
101605
|
}
|
|
101606
|
+
if (o.defaults) {
|
|
101607
|
+
d.key = null;
|
|
101608
|
+
}
|
|
100663
101609
|
if (m.key != null && m.hasOwnProperty("key")) {
|
|
100664
101610
|
d.key = $root.proto.MessageKey.toObject(m.key, o);
|
|
100665
|
-
if (o.oneofs)
|
|
100666
|
-
d._key = "key";
|
|
100667
101611
|
}
|
|
100668
101612
|
if (m.message != null && m.hasOwnProperty("message")) {
|
|
100669
101613
|
d.message = $root.proto.Message.toObject(m.message, o);
|