@itsliaaa/baileys 0.1.0 → 0.1.2
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 +21 -8
- package/WAProto/index.js +1044 -20
- package/engine-requirements.js +4 -1
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/messages-send.js +1 -1
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/messages-media.js +44 -9
- package/lib/Utils/messages.js +42 -11
- package/package.json +5 -1
package/WAProto/index.js
CHANGED
|
@@ -1459,6 +1459,7 @@ export const proto = $root.proto = (() => {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
AIMediaCollectionMetadata.prototype.collectionId = null;
|
|
1462
|
+
AIMediaCollectionMetadata.prototype.uploadOrderIndex = null;
|
|
1462
1463
|
|
|
1463
1464
|
let $oneOfFields;
|
|
1464
1465
|
|
|
@@ -1467,6 +1468,11 @@ export const proto = $root.proto = (() => {
|
|
|
1467
1468
|
set: $util.oneOfSetter($oneOfFields)
|
|
1468
1469
|
});
|
|
1469
1470
|
|
|
1471
|
+
Object.defineProperty(AIMediaCollectionMetadata.prototype, "_uploadOrderIndex", {
|
|
1472
|
+
get: $util.oneOfGetter($oneOfFields = ["uploadOrderIndex"]),
|
|
1473
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1470
1476
|
AIMediaCollectionMetadata.create = function create(properties) {
|
|
1471
1477
|
return new AIMediaCollectionMetadata(properties);
|
|
1472
1478
|
};
|
|
@@ -1476,6 +1482,8 @@ export const proto = $root.proto = (() => {
|
|
|
1476
1482
|
w = $Writer.create();
|
|
1477
1483
|
if (m.collectionId != null && Object.hasOwnProperty.call(m, "collectionId"))
|
|
1478
1484
|
w.uint32(10).string(m.collectionId);
|
|
1485
|
+
if (m.uploadOrderIndex != null && Object.hasOwnProperty.call(m, "uploadOrderIndex"))
|
|
1486
|
+
w.uint32(16).uint32(m.uploadOrderIndex);
|
|
1479
1487
|
return w;
|
|
1480
1488
|
};
|
|
1481
1489
|
|
|
@@ -1492,6 +1500,10 @@ export const proto = $root.proto = (() => {
|
|
|
1492
1500
|
m.collectionId = r.string();
|
|
1493
1501
|
break;
|
|
1494
1502
|
}
|
|
1503
|
+
case 2: {
|
|
1504
|
+
m.uploadOrderIndex = r.uint32();
|
|
1505
|
+
break;
|
|
1506
|
+
}
|
|
1495
1507
|
default:
|
|
1496
1508
|
r.skipType(t & 7);
|
|
1497
1509
|
break;
|
|
@@ -1507,6 +1519,9 @@ export const proto = $root.proto = (() => {
|
|
|
1507
1519
|
if (d.collectionId != null) {
|
|
1508
1520
|
m.collectionId = String(d.collectionId);
|
|
1509
1521
|
}
|
|
1522
|
+
if (d.uploadOrderIndex != null) {
|
|
1523
|
+
m.uploadOrderIndex = d.uploadOrderIndex >>> 0;
|
|
1524
|
+
}
|
|
1510
1525
|
return m;
|
|
1511
1526
|
};
|
|
1512
1527
|
|
|
@@ -1519,6 +1534,11 @@ export const proto = $root.proto = (() => {
|
|
|
1519
1534
|
if (o.oneofs)
|
|
1520
1535
|
d._collectionId = "collectionId";
|
|
1521
1536
|
}
|
|
1537
|
+
if (m.uploadOrderIndex != null && m.hasOwnProperty("uploadOrderIndex")) {
|
|
1538
|
+
d.uploadOrderIndex = m.uploadOrderIndex;
|
|
1539
|
+
if (o.oneofs)
|
|
1540
|
+
d._uploadOrderIndex = "uploadOrderIndex";
|
|
1541
|
+
}
|
|
1522
1542
|
return d;
|
|
1523
1543
|
};
|
|
1524
1544
|
|
|
@@ -4735,6 +4755,7 @@ export const proto = $root.proto = (() => {
|
|
|
4735
4755
|
}
|
|
4736
4756
|
|
|
4737
4757
|
AIThreadClientInfo.prototype.type = null;
|
|
4758
|
+
AIThreadClientInfo.prototype.sourceChatJid = null;
|
|
4738
4759
|
|
|
4739
4760
|
let $oneOfFields;
|
|
4740
4761
|
|
|
@@ -4743,6 +4764,11 @@ export const proto = $root.proto = (() => {
|
|
|
4743
4764
|
set: $util.oneOfSetter($oneOfFields)
|
|
4744
4765
|
});
|
|
4745
4766
|
|
|
4767
|
+
Object.defineProperty(AIThreadClientInfo.prototype, "_sourceChatJid", {
|
|
4768
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceChatJid"]),
|
|
4769
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4770
|
+
});
|
|
4771
|
+
|
|
4746
4772
|
AIThreadClientInfo.create = function create(properties) {
|
|
4747
4773
|
return new AIThreadClientInfo(properties);
|
|
4748
4774
|
};
|
|
@@ -4752,6 +4778,8 @@ export const proto = $root.proto = (() => {
|
|
|
4752
4778
|
w = $Writer.create();
|
|
4753
4779
|
if (m.type != null && Object.hasOwnProperty.call(m, "type"))
|
|
4754
4780
|
w.uint32(8).int32(m.type);
|
|
4781
|
+
if (m.sourceChatJid != null && Object.hasOwnProperty.call(m, "sourceChatJid"))
|
|
4782
|
+
w.uint32(18).string(m.sourceChatJid);
|
|
4755
4783
|
return w;
|
|
4756
4784
|
};
|
|
4757
4785
|
|
|
@@ -4768,6 +4796,10 @@ export const proto = $root.proto = (() => {
|
|
|
4768
4796
|
m.type = r.int32();
|
|
4769
4797
|
break;
|
|
4770
4798
|
}
|
|
4799
|
+
case 2: {
|
|
4800
|
+
m.sourceChatJid = r.string();
|
|
4801
|
+
break;
|
|
4802
|
+
}
|
|
4771
4803
|
default:
|
|
4772
4804
|
r.skipType(t & 7);
|
|
4773
4805
|
break;
|
|
@@ -4799,6 +4831,13 @@ export const proto = $root.proto = (() => {
|
|
|
4799
4831
|
case 2:
|
|
4800
4832
|
m.type = 2;
|
|
4801
4833
|
break;
|
|
4834
|
+
case "SIDE_CHAT":
|
|
4835
|
+
case 3:
|
|
4836
|
+
m.type = 3;
|
|
4837
|
+
break;
|
|
4838
|
+
}
|
|
4839
|
+
if (d.sourceChatJid != null) {
|
|
4840
|
+
m.sourceChatJid = String(d.sourceChatJid);
|
|
4802
4841
|
}
|
|
4803
4842
|
return m;
|
|
4804
4843
|
};
|
|
@@ -4812,6 +4851,11 @@ export const proto = $root.proto = (() => {
|
|
|
4812
4851
|
if (o.oneofs)
|
|
4813
4852
|
d._type = "type";
|
|
4814
4853
|
}
|
|
4854
|
+
if (m.sourceChatJid != null && m.hasOwnProperty("sourceChatJid")) {
|
|
4855
|
+
d.sourceChatJid = m.sourceChatJid;
|
|
4856
|
+
if (o.oneofs)
|
|
4857
|
+
d._sourceChatJid = "sourceChatJid";
|
|
4858
|
+
}
|
|
4815
4859
|
return d;
|
|
4816
4860
|
};
|
|
4817
4861
|
|
|
@@ -4831,6 +4875,7 @@ export const proto = $root.proto = (() => {
|
|
|
4831
4875
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
4832
4876
|
values[valuesById[1] = "DEFAULT"] = 1;
|
|
4833
4877
|
values[valuesById[2] = "INCOGNITO"] = 2;
|
|
4878
|
+
values[valuesById[3] = "SIDE_CHAT"] = 3;
|
|
4834
4879
|
return values;
|
|
4835
4880
|
})();
|
|
4836
4881
|
|
|
@@ -6533,6 +6578,10 @@ export const proto = $root.proto = (() => {
|
|
|
6533
6578
|
case 57:
|
|
6534
6579
|
m.capabilities[i] = 57;
|
|
6535
6580
|
break;
|
|
6581
|
+
case "JSON_PATCH_STREAMING":
|
|
6582
|
+
case 58:
|
|
6583
|
+
m.capabilities[i] = 58;
|
|
6584
|
+
break;
|
|
6536
6585
|
}
|
|
6537
6586
|
}
|
|
6538
6587
|
}
|
|
@@ -6626,6 +6675,7 @@ export const proto = $root.proto = (() => {
|
|
|
6626
6675
|
values[valuesById[55] = "RICH_RESPONSE_UR_BLOKS_ENABLED"] = 55;
|
|
6627
6676
|
values[valuesById[56] = "RICH_RESPONSE_INLINE_LINKS_ENABLED"] = 56;
|
|
6628
6677
|
values[valuesById[57] = "RICH_RESPONSE_UR_IMAGINE_VIDEO"] = 57;
|
|
6678
|
+
values[valuesById[58] = "JSON_PATCH_STREAMING"] = 58;
|
|
6629
6679
|
return values;
|
|
6630
6680
|
})();
|
|
6631
6681
|
|
|
@@ -9950,6 +10000,10 @@ export const proto = $root.proto = (() => {
|
|
|
9950
10000
|
case 54:
|
|
9951
10001
|
m.botEntryPointOrigin = 54;
|
|
9952
10002
|
break;
|
|
10003
|
+
case "CHATLIST_SEARCH":
|
|
10004
|
+
case 55:
|
|
10005
|
+
m.botEntryPointOrigin = 55;
|
|
10006
|
+
break;
|
|
9953
10007
|
}
|
|
9954
10008
|
if (d.forwardScore != null) {
|
|
9955
10009
|
m.forwardScore = d.forwardScore >>> 0;
|
|
@@ -10929,6 +10983,7 @@ export const proto = $root.proto = (() => {
|
|
|
10929
10983
|
values[valuesById[46] = "WEB_INTRO_PANEL"] = 46;
|
|
10930
10984
|
values[valuesById[47] = "WEB_NAVIGATION_BAR"] = 47;
|
|
10931
10985
|
values[valuesById[54] = "GROUP_MEMBER"] = 54;
|
|
10986
|
+
values[valuesById[55] = "CHATLIST_SEARCH"] = 55;
|
|
10932
10987
|
return values;
|
|
10933
10988
|
})();
|
|
10934
10989
|
|
|
@@ -11205,6 +11260,10 @@ export const proto = $root.proto = (() => {
|
|
|
11205
11260
|
case 54:
|
|
11206
11261
|
m.destinationEntryPoint = 54;
|
|
11207
11262
|
break;
|
|
11263
|
+
case "CHATLIST_SEARCH":
|
|
11264
|
+
case 55:
|
|
11265
|
+
m.destinationEntryPoint = 55;
|
|
11266
|
+
break;
|
|
11208
11267
|
}
|
|
11209
11268
|
switch (d.threadOrigin) {
|
|
11210
11269
|
default:
|
|
@@ -17583,6 +17642,7 @@ export const proto = $root.proto = (() => {
|
|
|
17583
17642
|
|
|
17584
17643
|
function ClientPayload(p) {
|
|
17585
17644
|
this.shards = [];
|
|
17645
|
+
this.pairedPeripherals = [];
|
|
17586
17646
|
if (p)
|
|
17587
17647
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
17588
17648
|
if (p[ks[i]] != null)
|
|
@@ -17623,6 +17683,7 @@ export const proto = $root.proto = (() => {
|
|
|
17623
17683
|
ClientPayload.prototype.paaLink = null;
|
|
17624
17684
|
ClientPayload.prototype.preacksCount = null;
|
|
17625
17685
|
ClientPayload.prototype.processingQueueSize = null;
|
|
17686
|
+
ClientPayload.prototype.pairedPeripherals = $util.emptyArray;
|
|
17626
17687
|
|
|
17627
17688
|
let $oneOfFields;
|
|
17628
17689
|
|
|
@@ -17870,6 +17931,10 @@ export const proto = $root.proto = (() => {
|
|
|
17870
17931
|
w.uint32(360).int32(m.preacksCount);
|
|
17871
17932
|
if (m.processingQueueSize != null && Object.hasOwnProperty.call(m, "processingQueueSize"))
|
|
17872
17933
|
w.uint32(368).int32(m.processingQueueSize);
|
|
17934
|
+
if (m.pairedPeripherals != null && m.pairedPeripherals.length) {
|
|
17935
|
+
for (var i = 0; i < m.pairedPeripherals.length; ++i)
|
|
17936
|
+
w.uint32(378).string(m.pairedPeripherals[i]);
|
|
17937
|
+
}
|
|
17873
17938
|
return w;
|
|
17874
17939
|
};
|
|
17875
17940
|
|
|
@@ -18025,6 +18090,12 @@ export const proto = $root.proto = (() => {
|
|
|
18025
18090
|
m.processingQueueSize = r.int32();
|
|
18026
18091
|
break;
|
|
18027
18092
|
}
|
|
18093
|
+
case 47: {
|
|
18094
|
+
if (!(m.pairedPeripherals && m.pairedPeripherals.length))
|
|
18095
|
+
m.pairedPeripherals = [];
|
|
18096
|
+
m.pairedPeripherals.push(r.string());
|
|
18097
|
+
break;
|
|
18098
|
+
}
|
|
18028
18099
|
default:
|
|
18029
18100
|
r.skipType(t & 7);
|
|
18030
18101
|
break;
|
|
@@ -18346,6 +18417,14 @@ export const proto = $root.proto = (() => {
|
|
|
18346
18417
|
if (d.processingQueueSize != null) {
|
|
18347
18418
|
m.processingQueueSize = d.processingQueueSize | 0;
|
|
18348
18419
|
}
|
|
18420
|
+
if (d.pairedPeripherals) {
|
|
18421
|
+
if (!Array.isArray(d.pairedPeripherals))
|
|
18422
|
+
throw TypeError(".proto.ClientPayload.pairedPeripherals: array expected");
|
|
18423
|
+
m.pairedPeripherals = [];
|
|
18424
|
+
for (var i = 0; i < d.pairedPeripherals.length; ++i) {
|
|
18425
|
+
m.pairedPeripherals[i] = String(d.pairedPeripherals[i]);
|
|
18426
|
+
}
|
|
18427
|
+
}
|
|
18349
18428
|
return m;
|
|
18350
18429
|
};
|
|
18351
18430
|
|
|
@@ -18355,6 +18434,7 @@ export const proto = $root.proto = (() => {
|
|
|
18355
18434
|
var d = {};
|
|
18356
18435
|
if (o.arrays || o.defaults) {
|
|
18357
18436
|
d.shards = [];
|
|
18437
|
+
d.pairedPeripherals = [];
|
|
18358
18438
|
}
|
|
18359
18439
|
if (m.username != null && m.hasOwnProperty("username")) {
|
|
18360
18440
|
if (typeof m.username === "number")
|
|
@@ -18533,6 +18613,12 @@ export const proto = $root.proto = (() => {
|
|
|
18533
18613
|
if (o.oneofs)
|
|
18534
18614
|
d._processingQueueSize = "processingQueueSize";
|
|
18535
18615
|
}
|
|
18616
|
+
if (m.pairedPeripherals && m.pairedPeripherals.length) {
|
|
18617
|
+
d.pairedPeripherals = [];
|
|
18618
|
+
for (var j = 0; j < m.pairedPeripherals.length; ++j) {
|
|
18619
|
+
d.pairedPeripherals[j] = m.pairedPeripherals[j];
|
|
18620
|
+
}
|
|
18621
|
+
}
|
|
18536
18622
|
return d;
|
|
18537
18623
|
};
|
|
18538
18624
|
|
|
@@ -26432,6 +26518,7 @@ export const proto = $root.proto = (() => {
|
|
|
26432
26518
|
}
|
|
26433
26519
|
|
|
26434
26520
|
BusinessBroadcast.prototype.importListEnabled = null;
|
|
26521
|
+
BusinessBroadcast.prototype.companionSupportEnabled = null;
|
|
26435
26522
|
|
|
26436
26523
|
let $oneOfFields;
|
|
26437
26524
|
|
|
@@ -26440,6 +26527,11 @@ export const proto = $root.proto = (() => {
|
|
|
26440
26527
|
set: $util.oneOfSetter($oneOfFields)
|
|
26441
26528
|
});
|
|
26442
26529
|
|
|
26530
|
+
Object.defineProperty(BusinessBroadcast.prototype, "_companionSupportEnabled", {
|
|
26531
|
+
get: $util.oneOfGetter($oneOfFields = ["companionSupportEnabled"]),
|
|
26532
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
26533
|
+
});
|
|
26534
|
+
|
|
26443
26535
|
BusinessBroadcast.create = function create(properties) {
|
|
26444
26536
|
return new BusinessBroadcast(properties);
|
|
26445
26537
|
};
|
|
@@ -26449,6 +26541,8 @@ export const proto = $root.proto = (() => {
|
|
|
26449
26541
|
w = $Writer.create();
|
|
26450
26542
|
if (m.importListEnabled != null && Object.hasOwnProperty.call(m, "importListEnabled"))
|
|
26451
26543
|
w.uint32(8).bool(m.importListEnabled);
|
|
26544
|
+
if (m.companionSupportEnabled != null && Object.hasOwnProperty.call(m, "companionSupportEnabled"))
|
|
26545
|
+
w.uint32(16).bool(m.companionSupportEnabled);
|
|
26452
26546
|
return w;
|
|
26453
26547
|
};
|
|
26454
26548
|
|
|
@@ -26465,6 +26559,10 @@ export const proto = $root.proto = (() => {
|
|
|
26465
26559
|
m.importListEnabled = r.bool();
|
|
26466
26560
|
break;
|
|
26467
26561
|
}
|
|
26562
|
+
case 2: {
|
|
26563
|
+
m.companionSupportEnabled = r.bool();
|
|
26564
|
+
break;
|
|
26565
|
+
}
|
|
26468
26566
|
default:
|
|
26469
26567
|
r.skipType(t & 7);
|
|
26470
26568
|
break;
|
|
@@ -26480,6 +26578,9 @@ export const proto = $root.proto = (() => {
|
|
|
26480
26578
|
if (d.importListEnabled != null) {
|
|
26481
26579
|
m.importListEnabled = Boolean(d.importListEnabled);
|
|
26482
26580
|
}
|
|
26581
|
+
if (d.companionSupportEnabled != null) {
|
|
26582
|
+
m.companionSupportEnabled = Boolean(d.companionSupportEnabled);
|
|
26583
|
+
}
|
|
26483
26584
|
return m;
|
|
26484
26585
|
};
|
|
26485
26586
|
|
|
@@ -26492,6 +26593,11 @@ export const proto = $root.proto = (() => {
|
|
|
26492
26593
|
if (o.oneofs)
|
|
26493
26594
|
d._importListEnabled = "importListEnabled";
|
|
26494
26595
|
}
|
|
26596
|
+
if (m.companionSupportEnabled != null && m.hasOwnProperty("companionSupportEnabled")) {
|
|
26597
|
+
d.companionSupportEnabled = m.companionSupportEnabled;
|
|
26598
|
+
if (o.oneofs)
|
|
26599
|
+
d._companionSupportEnabled = "companionSupportEnabled";
|
|
26600
|
+
}
|
|
26495
26601
|
return d;
|
|
26496
26602
|
};
|
|
26497
26603
|
|
|
@@ -27601,6 +27707,7 @@ export const proto = $root.proto = (() => {
|
|
|
27601
27707
|
HistorySyncConfig.prototype.thumbnailSyncDaysLimit = null;
|
|
27602
27708
|
HistorySyncConfig.prototype.initialSyncMaxMessagesPerChat = null;
|
|
27603
27709
|
HistorySyncConfig.prototype.supportManusHistory = null;
|
|
27710
|
+
HistorySyncConfig.prototype.supportHatchHistory = null;
|
|
27604
27711
|
|
|
27605
27712
|
let $oneOfFields;
|
|
27606
27713
|
|
|
@@ -27709,6 +27816,11 @@ export const proto = $root.proto = (() => {
|
|
|
27709
27816
|
set: $util.oneOfSetter($oneOfFields)
|
|
27710
27817
|
});
|
|
27711
27818
|
|
|
27819
|
+
Object.defineProperty(HistorySyncConfig.prototype, "_supportHatchHistory", {
|
|
27820
|
+
get: $util.oneOfGetter($oneOfFields = ["supportHatchHistory"]),
|
|
27821
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27822
|
+
});
|
|
27823
|
+
|
|
27712
27824
|
HistorySyncConfig.create = function create(properties) {
|
|
27713
27825
|
return new HistorySyncConfig(properties);
|
|
27714
27826
|
};
|
|
@@ -27758,6 +27870,8 @@ export const proto = $root.proto = (() => {
|
|
|
27758
27870
|
w.uint32(160).uint32(m.initialSyncMaxMessagesPerChat);
|
|
27759
27871
|
if (m.supportManusHistory != null && Object.hasOwnProperty.call(m, "supportManusHistory"))
|
|
27760
27872
|
w.uint32(168).bool(m.supportManusHistory);
|
|
27873
|
+
if (m.supportHatchHistory != null && Object.hasOwnProperty.call(m, "supportHatchHistory"))
|
|
27874
|
+
w.uint32(176).bool(m.supportHatchHistory);
|
|
27761
27875
|
return w;
|
|
27762
27876
|
};
|
|
27763
27877
|
|
|
@@ -27854,6 +27968,10 @@ export const proto = $root.proto = (() => {
|
|
|
27854
27968
|
m.supportManusHistory = r.bool();
|
|
27855
27969
|
break;
|
|
27856
27970
|
}
|
|
27971
|
+
case 22: {
|
|
27972
|
+
m.supportHatchHistory = r.bool();
|
|
27973
|
+
break;
|
|
27974
|
+
}
|
|
27857
27975
|
default:
|
|
27858
27976
|
r.skipType(t & 7);
|
|
27859
27977
|
break;
|
|
@@ -27929,6 +28047,9 @@ export const proto = $root.proto = (() => {
|
|
|
27929
28047
|
if (d.supportManusHistory != null) {
|
|
27930
28048
|
m.supportManusHistory = Boolean(d.supportManusHistory);
|
|
27931
28049
|
}
|
|
28050
|
+
if (d.supportHatchHistory != null) {
|
|
28051
|
+
m.supportHatchHistory = Boolean(d.supportHatchHistory);
|
|
28052
|
+
}
|
|
27932
28053
|
return m;
|
|
27933
28054
|
};
|
|
27934
28055
|
|
|
@@ -28041,6 +28162,11 @@ export const proto = $root.proto = (() => {
|
|
|
28041
28162
|
if (o.oneofs)
|
|
28042
28163
|
d._supportManusHistory = "supportManusHistory";
|
|
28043
28164
|
}
|
|
28165
|
+
if (m.supportHatchHistory != null && m.hasOwnProperty("supportHatchHistory")) {
|
|
28166
|
+
d.supportHatchHistory = m.supportHatchHistory;
|
|
28167
|
+
if (o.oneofs)
|
|
28168
|
+
d._supportHatchHistory = "supportHatchHistory";
|
|
28169
|
+
}
|
|
28044
28170
|
return d;
|
|
28045
28171
|
};
|
|
28046
28172
|
|
|
@@ -48320,6 +48446,16 @@ export const proto = $root.proto = (() => {
|
|
|
48320
48446
|
return InitialSecurityNotificationSettingSync;
|
|
48321
48447
|
})();
|
|
48322
48448
|
|
|
48449
|
+
Message.InsightDeliveryState = (function() {
|
|
48450
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
48451
|
+
values[valuesById[0] = "SENT"] = 0;
|
|
48452
|
+
values[valuesById[1] = "DELIVERED"] = 1;
|
|
48453
|
+
values[valuesById[2] = "READ"] = 2;
|
|
48454
|
+
values[valuesById[3] = "REPLIED"] = 3;
|
|
48455
|
+
values[valuesById[4] = "QUICK_REPLIED"] = 4;
|
|
48456
|
+
return values;
|
|
48457
|
+
})();
|
|
48458
|
+
|
|
48323
48459
|
Message.InteractiveMessage = (function() {
|
|
48324
48460
|
|
|
48325
48461
|
function InteractiveMessage(p) {
|
|
@@ -55166,6 +55302,8 @@ export const proto = $root.proto = (() => {
|
|
|
55166
55302
|
PeerDataOperationRequestMessage.prototype.historySyncChunkRetryRequest = null;
|
|
55167
55303
|
PeerDataOperationRequestMessage.prototype.galaxyFlowAction = null;
|
|
55168
55304
|
PeerDataOperationRequestMessage.prototype.companionCanonicalUserNonceFetchRequest = null;
|
|
55305
|
+
PeerDataOperationRequestMessage.prototype.bizBroadcastInsightsContactListRequest = null;
|
|
55306
|
+
PeerDataOperationRequestMessage.prototype.bizBroadcastInsightsRefreshRequest = null;
|
|
55169
55307
|
|
|
55170
55308
|
let $oneOfFields;
|
|
55171
55309
|
|
|
@@ -55204,6 +55342,16 @@ export const proto = $root.proto = (() => {
|
|
|
55204
55342
|
set: $util.oneOfSetter($oneOfFields)
|
|
55205
55343
|
});
|
|
55206
55344
|
|
|
55345
|
+
Object.defineProperty(PeerDataOperationRequestMessage.prototype, "_bizBroadcastInsightsContactListRequest", {
|
|
55346
|
+
get: $util.oneOfGetter($oneOfFields = ["bizBroadcastInsightsContactListRequest"]),
|
|
55347
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55348
|
+
});
|
|
55349
|
+
|
|
55350
|
+
Object.defineProperty(PeerDataOperationRequestMessage.prototype, "_bizBroadcastInsightsRefreshRequest", {
|
|
55351
|
+
get: $util.oneOfGetter($oneOfFields = ["bizBroadcastInsightsRefreshRequest"]),
|
|
55352
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55353
|
+
});
|
|
55354
|
+
|
|
55207
55355
|
PeerDataOperationRequestMessage.create = function create(properties) {
|
|
55208
55356
|
return new PeerDataOperationRequestMessage(properties);
|
|
55209
55357
|
};
|
|
@@ -55237,6 +55385,10 @@ export const proto = $root.proto = (() => {
|
|
|
55237
55385
|
$root.proto.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.encode(m.galaxyFlowAction, w.uint32(74).fork()).ldelim();
|
|
55238
55386
|
if (m.companionCanonicalUserNonceFetchRequest != null && Object.hasOwnProperty.call(m, "companionCanonicalUserNonceFetchRequest"))
|
|
55239
55387
|
$root.proto.Message.PeerDataOperationRequestMessage.CompanionCanonicalUserNonceFetchRequest.encode(m.companionCanonicalUserNonceFetchRequest, w.uint32(82).fork()).ldelim();
|
|
55388
|
+
if (m.bizBroadcastInsightsContactListRequest != null && Object.hasOwnProperty.call(m, "bizBroadcastInsightsContactListRequest"))
|
|
55389
|
+
$root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest.encode(m.bizBroadcastInsightsContactListRequest, w.uint32(90).fork()).ldelim();
|
|
55390
|
+
if (m.bizBroadcastInsightsRefreshRequest != null && Object.hasOwnProperty.call(m, "bizBroadcastInsightsRefreshRequest"))
|
|
55391
|
+
$root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest.encode(m.bizBroadcastInsightsRefreshRequest, w.uint32(98).fork()).ldelim();
|
|
55240
55392
|
return w;
|
|
55241
55393
|
};
|
|
55242
55394
|
|
|
@@ -55295,6 +55447,14 @@ export const proto = $root.proto = (() => {
|
|
|
55295
55447
|
m.companionCanonicalUserNonceFetchRequest = $root.proto.Message.PeerDataOperationRequestMessage.CompanionCanonicalUserNonceFetchRequest.decode(r, r.uint32());
|
|
55296
55448
|
break;
|
|
55297
55449
|
}
|
|
55450
|
+
case 11: {
|
|
55451
|
+
m.bizBroadcastInsightsContactListRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest.decode(r, r.uint32());
|
|
55452
|
+
break;
|
|
55453
|
+
}
|
|
55454
|
+
case 12: {
|
|
55455
|
+
m.bizBroadcastInsightsRefreshRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest.decode(r, r.uint32());
|
|
55456
|
+
break;
|
|
55457
|
+
}
|
|
55298
55458
|
default:
|
|
55299
55459
|
r.skipType(t & 7);
|
|
55300
55460
|
break;
|
|
@@ -55362,6 +55522,14 @@ export const proto = $root.proto = (() => {
|
|
|
55362
55522
|
case 11:
|
|
55363
55523
|
m.peerDataOperationRequestType = 11;
|
|
55364
55524
|
break;
|
|
55525
|
+
case "BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO":
|
|
55526
|
+
case 12:
|
|
55527
|
+
m.peerDataOperationRequestType = 12;
|
|
55528
|
+
break;
|
|
55529
|
+
case "BUSINESS_BROADCAST_INSIGHTS_REFRESH":
|
|
55530
|
+
case 13:
|
|
55531
|
+
m.peerDataOperationRequestType = 13;
|
|
55532
|
+
break;
|
|
55365
55533
|
}
|
|
55366
55534
|
if (d.requestStickerReupload) {
|
|
55367
55535
|
if (!Array.isArray(d.requestStickerReupload))
|
|
@@ -55423,6 +55591,16 @@ export const proto = $root.proto = (() => {
|
|
|
55423
55591
|
throw TypeError(".proto.Message.PeerDataOperationRequestMessage.companionCanonicalUserNonceFetchRequest: object expected");
|
|
55424
55592
|
m.companionCanonicalUserNonceFetchRequest = $root.proto.Message.PeerDataOperationRequestMessage.CompanionCanonicalUserNonceFetchRequest.fromObject(d.companionCanonicalUserNonceFetchRequest);
|
|
55425
55593
|
}
|
|
55594
|
+
if (d.bizBroadcastInsightsContactListRequest != null) {
|
|
55595
|
+
if (typeof d.bizBroadcastInsightsContactListRequest !== "object")
|
|
55596
|
+
throw TypeError(".proto.Message.PeerDataOperationRequestMessage.bizBroadcastInsightsContactListRequest: object expected");
|
|
55597
|
+
m.bizBroadcastInsightsContactListRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest.fromObject(d.bizBroadcastInsightsContactListRequest);
|
|
55598
|
+
}
|
|
55599
|
+
if (d.bizBroadcastInsightsRefreshRequest != null) {
|
|
55600
|
+
if (typeof d.bizBroadcastInsightsRefreshRequest !== "object")
|
|
55601
|
+
throw TypeError(".proto.Message.PeerDataOperationRequestMessage.bizBroadcastInsightsRefreshRequest: object expected");
|
|
55602
|
+
m.bizBroadcastInsightsRefreshRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest.fromObject(d.bizBroadcastInsightsRefreshRequest);
|
|
55603
|
+
}
|
|
55426
55604
|
return m;
|
|
55427
55605
|
};
|
|
55428
55606
|
|
|
@@ -55488,6 +55666,16 @@ export const proto = $root.proto = (() => {
|
|
|
55488
55666
|
if (o.oneofs)
|
|
55489
55667
|
d._companionCanonicalUserNonceFetchRequest = "companionCanonicalUserNonceFetchRequest";
|
|
55490
55668
|
}
|
|
55669
|
+
if (m.bizBroadcastInsightsContactListRequest != null && m.hasOwnProperty("bizBroadcastInsightsContactListRequest")) {
|
|
55670
|
+
d.bizBroadcastInsightsContactListRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest.toObject(m.bizBroadcastInsightsContactListRequest, o);
|
|
55671
|
+
if (o.oneofs)
|
|
55672
|
+
d._bizBroadcastInsightsContactListRequest = "bizBroadcastInsightsContactListRequest";
|
|
55673
|
+
}
|
|
55674
|
+
if (m.bizBroadcastInsightsRefreshRequest != null && m.hasOwnProperty("bizBroadcastInsightsRefreshRequest")) {
|
|
55675
|
+
d.bizBroadcastInsightsRefreshRequest = $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest.toObject(m.bizBroadcastInsightsRefreshRequest, o);
|
|
55676
|
+
if (o.oneofs)
|
|
55677
|
+
d._bizBroadcastInsightsRefreshRequest = "bizBroadcastInsightsRefreshRequest";
|
|
55678
|
+
}
|
|
55491
55679
|
return d;
|
|
55492
55680
|
};
|
|
55493
55681
|
|
|
@@ -55502,6 +55690,180 @@ export const proto = $root.proto = (() => {
|
|
|
55502
55690
|
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestMessage";
|
|
55503
55691
|
};
|
|
55504
55692
|
|
|
55693
|
+
PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest = (function() {
|
|
55694
|
+
|
|
55695
|
+
function BizBroadcastInsightsContactListRequest(p) {
|
|
55696
|
+
if (p)
|
|
55697
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
55698
|
+
if (p[ks[i]] != null)
|
|
55699
|
+
this[ks[i]] = p[ks[i]];
|
|
55700
|
+
}
|
|
55701
|
+
|
|
55702
|
+
BizBroadcastInsightsContactListRequest.prototype.campaignId = null;
|
|
55703
|
+
|
|
55704
|
+
let $oneOfFields;
|
|
55705
|
+
|
|
55706
|
+
Object.defineProperty(BizBroadcastInsightsContactListRequest.prototype, "_campaignId", {
|
|
55707
|
+
get: $util.oneOfGetter($oneOfFields = ["campaignId"]),
|
|
55708
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55709
|
+
});
|
|
55710
|
+
|
|
55711
|
+
BizBroadcastInsightsContactListRequest.create = function create(properties) {
|
|
55712
|
+
return new BizBroadcastInsightsContactListRequest(properties);
|
|
55713
|
+
};
|
|
55714
|
+
|
|
55715
|
+
BizBroadcastInsightsContactListRequest.encode = function encode(m, w) {
|
|
55716
|
+
if (!w)
|
|
55717
|
+
w = $Writer.create();
|
|
55718
|
+
if (m.campaignId != null && Object.hasOwnProperty.call(m, "campaignId"))
|
|
55719
|
+
w.uint32(10).string(m.campaignId);
|
|
55720
|
+
return w;
|
|
55721
|
+
};
|
|
55722
|
+
|
|
55723
|
+
BizBroadcastInsightsContactListRequest.decode = function decode(r, l, e) {
|
|
55724
|
+
if (!(r instanceof $Reader))
|
|
55725
|
+
r = $Reader.create(r);
|
|
55726
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest();
|
|
55727
|
+
while (r.pos < c) {
|
|
55728
|
+
var t = r.uint32();
|
|
55729
|
+
if (t === e)
|
|
55730
|
+
break;
|
|
55731
|
+
switch (t >>> 3) {
|
|
55732
|
+
case 1: {
|
|
55733
|
+
m.campaignId = r.string();
|
|
55734
|
+
break;
|
|
55735
|
+
}
|
|
55736
|
+
default:
|
|
55737
|
+
r.skipType(t & 7);
|
|
55738
|
+
break;
|
|
55739
|
+
}
|
|
55740
|
+
}
|
|
55741
|
+
return m;
|
|
55742
|
+
};
|
|
55743
|
+
|
|
55744
|
+
BizBroadcastInsightsContactListRequest.fromObject = function fromObject(d) {
|
|
55745
|
+
if (d instanceof $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest)
|
|
55746
|
+
return d;
|
|
55747
|
+
var m = new $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest();
|
|
55748
|
+
if (d.campaignId != null) {
|
|
55749
|
+
m.campaignId = String(d.campaignId);
|
|
55750
|
+
}
|
|
55751
|
+
return m;
|
|
55752
|
+
};
|
|
55753
|
+
|
|
55754
|
+
BizBroadcastInsightsContactListRequest.toObject = function toObject(m, o) {
|
|
55755
|
+
if (!o)
|
|
55756
|
+
o = {};
|
|
55757
|
+
var d = {};
|
|
55758
|
+
if (m.campaignId != null && m.hasOwnProperty("campaignId")) {
|
|
55759
|
+
d.campaignId = m.campaignId;
|
|
55760
|
+
if (o.oneofs)
|
|
55761
|
+
d._campaignId = "campaignId";
|
|
55762
|
+
}
|
|
55763
|
+
return d;
|
|
55764
|
+
};
|
|
55765
|
+
|
|
55766
|
+
BizBroadcastInsightsContactListRequest.prototype.toJSON = function toJSON() {
|
|
55767
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55768
|
+
};
|
|
55769
|
+
|
|
55770
|
+
BizBroadcastInsightsContactListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55771
|
+
if (typeUrlPrefix === undefined) {
|
|
55772
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55773
|
+
}
|
|
55774
|
+
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsContactListRequest";
|
|
55775
|
+
};
|
|
55776
|
+
|
|
55777
|
+
return BizBroadcastInsightsContactListRequest;
|
|
55778
|
+
})();
|
|
55779
|
+
|
|
55780
|
+
PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest = (function() {
|
|
55781
|
+
|
|
55782
|
+
function BizBroadcastInsightsRefreshRequest(p) {
|
|
55783
|
+
if (p)
|
|
55784
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
55785
|
+
if (p[ks[i]] != null)
|
|
55786
|
+
this[ks[i]] = p[ks[i]];
|
|
55787
|
+
}
|
|
55788
|
+
|
|
55789
|
+
BizBroadcastInsightsRefreshRequest.prototype.campaignId = null;
|
|
55790
|
+
|
|
55791
|
+
let $oneOfFields;
|
|
55792
|
+
|
|
55793
|
+
Object.defineProperty(BizBroadcastInsightsRefreshRequest.prototype, "_campaignId", {
|
|
55794
|
+
get: $util.oneOfGetter($oneOfFields = ["campaignId"]),
|
|
55795
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55796
|
+
});
|
|
55797
|
+
|
|
55798
|
+
BizBroadcastInsightsRefreshRequest.create = function create(properties) {
|
|
55799
|
+
return new BizBroadcastInsightsRefreshRequest(properties);
|
|
55800
|
+
};
|
|
55801
|
+
|
|
55802
|
+
BizBroadcastInsightsRefreshRequest.encode = function encode(m, w) {
|
|
55803
|
+
if (!w)
|
|
55804
|
+
w = $Writer.create();
|
|
55805
|
+
if (m.campaignId != null && Object.hasOwnProperty.call(m, "campaignId"))
|
|
55806
|
+
w.uint32(10).string(m.campaignId);
|
|
55807
|
+
return w;
|
|
55808
|
+
};
|
|
55809
|
+
|
|
55810
|
+
BizBroadcastInsightsRefreshRequest.decode = function decode(r, l, e) {
|
|
55811
|
+
if (!(r instanceof $Reader))
|
|
55812
|
+
r = $Reader.create(r);
|
|
55813
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest();
|
|
55814
|
+
while (r.pos < c) {
|
|
55815
|
+
var t = r.uint32();
|
|
55816
|
+
if (t === e)
|
|
55817
|
+
break;
|
|
55818
|
+
switch (t >>> 3) {
|
|
55819
|
+
case 1: {
|
|
55820
|
+
m.campaignId = r.string();
|
|
55821
|
+
break;
|
|
55822
|
+
}
|
|
55823
|
+
default:
|
|
55824
|
+
r.skipType(t & 7);
|
|
55825
|
+
break;
|
|
55826
|
+
}
|
|
55827
|
+
}
|
|
55828
|
+
return m;
|
|
55829
|
+
};
|
|
55830
|
+
|
|
55831
|
+
BizBroadcastInsightsRefreshRequest.fromObject = function fromObject(d) {
|
|
55832
|
+
if (d instanceof $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest)
|
|
55833
|
+
return d;
|
|
55834
|
+
var m = new $root.proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest();
|
|
55835
|
+
if (d.campaignId != null) {
|
|
55836
|
+
m.campaignId = String(d.campaignId);
|
|
55837
|
+
}
|
|
55838
|
+
return m;
|
|
55839
|
+
};
|
|
55840
|
+
|
|
55841
|
+
BizBroadcastInsightsRefreshRequest.toObject = function toObject(m, o) {
|
|
55842
|
+
if (!o)
|
|
55843
|
+
o = {};
|
|
55844
|
+
var d = {};
|
|
55845
|
+
if (m.campaignId != null && m.hasOwnProperty("campaignId")) {
|
|
55846
|
+
d.campaignId = m.campaignId;
|
|
55847
|
+
if (o.oneofs)
|
|
55848
|
+
d._campaignId = "campaignId";
|
|
55849
|
+
}
|
|
55850
|
+
return d;
|
|
55851
|
+
};
|
|
55852
|
+
|
|
55853
|
+
BizBroadcastInsightsRefreshRequest.prototype.toJSON = function toJSON() {
|
|
55854
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55855
|
+
};
|
|
55856
|
+
|
|
55857
|
+
BizBroadcastInsightsRefreshRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55858
|
+
if (typeUrlPrefix === undefined) {
|
|
55859
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55860
|
+
}
|
|
55861
|
+
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestMessage.BizBroadcastInsightsRefreshRequest";
|
|
55862
|
+
};
|
|
55863
|
+
|
|
55864
|
+
return BizBroadcastInsightsRefreshRequest;
|
|
55865
|
+
})();
|
|
55866
|
+
|
|
55505
55867
|
PeerDataOperationRequestMessage.CompanionCanonicalUserNonceFetchRequest = (function() {
|
|
55506
55868
|
|
|
55507
55869
|
function CompanionCanonicalUserNonceFetchRequest(p) {
|
|
@@ -56831,6 +57193,14 @@ export const proto = $root.proto = (() => {
|
|
|
56831
57193
|
case 11:
|
|
56832
57194
|
m.peerDataOperationRequestType = 11;
|
|
56833
57195
|
break;
|
|
57196
|
+
case "BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO":
|
|
57197
|
+
case 12:
|
|
57198
|
+
m.peerDataOperationRequestType = 12;
|
|
57199
|
+
break;
|
|
57200
|
+
case "BUSINESS_BROADCAST_INSIGHTS_REFRESH":
|
|
57201
|
+
case 13:
|
|
57202
|
+
m.peerDataOperationRequestType = 13;
|
|
57203
|
+
break;
|
|
56834
57204
|
}
|
|
56835
57205
|
if (d.stanzaId != null) {
|
|
56836
57206
|
m.stanzaId = String(d.stanzaId);
|
|
@@ -56905,6 +57275,7 @@ export const proto = $root.proto = (() => {
|
|
|
56905
57275
|
PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null;
|
|
56906
57276
|
PeerDataOperationResult.prototype.historySyncChunkRetryResponse = null;
|
|
56907
57277
|
PeerDataOperationResult.prototype.flowResponsesCsvBundle = null;
|
|
57278
|
+
PeerDataOperationResult.prototype.bizBroadcastInsightsContactListResponse = null;
|
|
56908
57279
|
|
|
56909
57280
|
let $oneOfFields;
|
|
56910
57281
|
|
|
@@ -56963,6 +57334,11 @@ export const proto = $root.proto = (() => {
|
|
|
56963
57334
|
set: $util.oneOfSetter($oneOfFields)
|
|
56964
57335
|
});
|
|
56965
57336
|
|
|
57337
|
+
Object.defineProperty(PeerDataOperationResult.prototype, "_bizBroadcastInsightsContactListResponse", {
|
|
57338
|
+
get: $util.oneOfGetter($oneOfFields = ["bizBroadcastInsightsContactListResponse"]),
|
|
57339
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57340
|
+
});
|
|
57341
|
+
|
|
56966
57342
|
PeerDataOperationResult.create = function create(properties) {
|
|
56967
57343
|
return new PeerDataOperationResult(properties);
|
|
56968
57344
|
};
|
|
@@ -56992,6 +57368,8 @@ export const proto = $root.proto = (() => {
|
|
|
56992
57368
|
$root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponse.encode(m.historySyncChunkRetryResponse, w.uint32(82).fork()).ldelim();
|
|
56993
57369
|
if (m.flowResponsesCsvBundle != null && Object.hasOwnProperty.call(m, "flowResponsesCsvBundle"))
|
|
56994
57370
|
$root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FlowResponsesCsvBundle.encode(m.flowResponsesCsvBundle, w.uint32(90).fork()).ldelim();
|
|
57371
|
+
if (m.bizBroadcastInsightsContactListResponse != null && Object.hasOwnProperty.call(m, "bizBroadcastInsightsContactListResponse"))
|
|
57372
|
+
$root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.encode(m.bizBroadcastInsightsContactListResponse, w.uint32(98).fork()).ldelim();
|
|
56995
57373
|
return w;
|
|
56996
57374
|
};
|
|
56997
57375
|
|
|
@@ -57048,6 +57426,10 @@ export const proto = $root.proto = (() => {
|
|
|
57048
57426
|
m.flowResponsesCsvBundle = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FlowResponsesCsvBundle.decode(r, r.uint32());
|
|
57049
57427
|
break;
|
|
57050
57428
|
}
|
|
57429
|
+
case 12: {
|
|
57430
|
+
m.bizBroadcastInsightsContactListResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.decode(r, r.uint32());
|
|
57431
|
+
break;
|
|
57432
|
+
}
|
|
57051
57433
|
default:
|
|
57052
57434
|
r.skipType(t & 7);
|
|
57053
57435
|
break;
|
|
@@ -57134,6 +57516,11 @@ export const proto = $root.proto = (() => {
|
|
|
57134
57516
|
throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.flowResponsesCsvBundle: object expected");
|
|
57135
57517
|
m.flowResponsesCsvBundle = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FlowResponsesCsvBundle.fromObject(d.flowResponsesCsvBundle);
|
|
57136
57518
|
}
|
|
57519
|
+
if (d.bizBroadcastInsightsContactListResponse != null) {
|
|
57520
|
+
if (typeof d.bizBroadcastInsightsContactListResponse !== "object")
|
|
57521
|
+
throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.bizBroadcastInsightsContactListResponse: object expected");
|
|
57522
|
+
m.bizBroadcastInsightsContactListResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.fromObject(d.bizBroadcastInsightsContactListResponse);
|
|
57523
|
+
}
|
|
57137
57524
|
return m;
|
|
57138
57525
|
};
|
|
57139
57526
|
|
|
@@ -57196,6 +57583,11 @@ export const proto = $root.proto = (() => {
|
|
|
57196
57583
|
if (o.oneofs)
|
|
57197
57584
|
d._flowResponsesCsvBundle = "flowResponsesCsvBundle";
|
|
57198
57585
|
}
|
|
57586
|
+
if (m.bizBroadcastInsightsContactListResponse != null && m.hasOwnProperty("bizBroadcastInsightsContactListResponse")) {
|
|
57587
|
+
d.bizBroadcastInsightsContactListResponse = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.toObject(m.bizBroadcastInsightsContactListResponse, o);
|
|
57588
|
+
if (o.oneofs)
|
|
57589
|
+
d._bizBroadcastInsightsContactListResponse = "bizBroadcastInsightsContactListResponse";
|
|
57590
|
+
}
|
|
57199
57591
|
return d;
|
|
57200
57592
|
};
|
|
57201
57593
|
|
|
@@ -57210,6 +57602,286 @@ export const proto = $root.proto = (() => {
|
|
|
57210
57602
|
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult";
|
|
57211
57603
|
};
|
|
57212
57604
|
|
|
57605
|
+
PeerDataOperationResult.BizBroadcastInsightsContactListResponse = (function() {
|
|
57606
|
+
|
|
57607
|
+
function BizBroadcastInsightsContactListResponse(p) {
|
|
57608
|
+
this.contacts = [];
|
|
57609
|
+
if (p)
|
|
57610
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
57611
|
+
if (p[ks[i]] != null)
|
|
57612
|
+
this[ks[i]] = p[ks[i]];
|
|
57613
|
+
}
|
|
57614
|
+
|
|
57615
|
+
BizBroadcastInsightsContactListResponse.prototype.campaignId = null;
|
|
57616
|
+
BizBroadcastInsightsContactListResponse.prototype.timestampMs = null;
|
|
57617
|
+
BizBroadcastInsightsContactListResponse.prototype.contacts = $util.emptyArray;
|
|
57618
|
+
|
|
57619
|
+
let $oneOfFields;
|
|
57620
|
+
|
|
57621
|
+
Object.defineProperty(BizBroadcastInsightsContactListResponse.prototype, "_campaignId", {
|
|
57622
|
+
get: $util.oneOfGetter($oneOfFields = ["campaignId"]),
|
|
57623
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57624
|
+
});
|
|
57625
|
+
|
|
57626
|
+
Object.defineProperty(BizBroadcastInsightsContactListResponse.prototype, "_timestampMs", {
|
|
57627
|
+
get: $util.oneOfGetter($oneOfFields = ["timestampMs"]),
|
|
57628
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57629
|
+
});
|
|
57630
|
+
|
|
57631
|
+
BizBroadcastInsightsContactListResponse.create = function create(properties) {
|
|
57632
|
+
return new BizBroadcastInsightsContactListResponse(properties);
|
|
57633
|
+
};
|
|
57634
|
+
|
|
57635
|
+
BizBroadcastInsightsContactListResponse.encode = function encode(m, w) {
|
|
57636
|
+
if (!w)
|
|
57637
|
+
w = $Writer.create();
|
|
57638
|
+
if (m.campaignId != null && Object.hasOwnProperty.call(m, "campaignId"))
|
|
57639
|
+
w.uint32(10).string(m.campaignId);
|
|
57640
|
+
if (m.timestampMs != null && Object.hasOwnProperty.call(m, "timestampMs"))
|
|
57641
|
+
w.uint32(16).int64(m.timestampMs);
|
|
57642
|
+
if (m.contacts != null && m.contacts.length) {
|
|
57643
|
+
for (var i = 0; i < m.contacts.length; ++i)
|
|
57644
|
+
$root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState.encode(m.contacts[i], w.uint32(26).fork()).ldelim();
|
|
57645
|
+
}
|
|
57646
|
+
return w;
|
|
57647
|
+
};
|
|
57648
|
+
|
|
57649
|
+
BizBroadcastInsightsContactListResponse.decode = function decode(r, l, e) {
|
|
57650
|
+
if (!(r instanceof $Reader))
|
|
57651
|
+
r = $Reader.create(r);
|
|
57652
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse();
|
|
57653
|
+
while (r.pos < c) {
|
|
57654
|
+
var t = r.uint32();
|
|
57655
|
+
if (t === e)
|
|
57656
|
+
break;
|
|
57657
|
+
switch (t >>> 3) {
|
|
57658
|
+
case 1: {
|
|
57659
|
+
m.campaignId = r.string();
|
|
57660
|
+
break;
|
|
57661
|
+
}
|
|
57662
|
+
case 2: {
|
|
57663
|
+
m.timestampMs = r.int64();
|
|
57664
|
+
break;
|
|
57665
|
+
}
|
|
57666
|
+
case 3: {
|
|
57667
|
+
if (!(m.contacts && m.contacts.length))
|
|
57668
|
+
m.contacts = [];
|
|
57669
|
+
m.contacts.push($root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState.decode(r, r.uint32()));
|
|
57670
|
+
break;
|
|
57671
|
+
}
|
|
57672
|
+
default:
|
|
57673
|
+
r.skipType(t & 7);
|
|
57674
|
+
break;
|
|
57675
|
+
}
|
|
57676
|
+
}
|
|
57677
|
+
return m;
|
|
57678
|
+
};
|
|
57679
|
+
|
|
57680
|
+
BizBroadcastInsightsContactListResponse.fromObject = function fromObject(d) {
|
|
57681
|
+
if (d instanceof $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse)
|
|
57682
|
+
return d;
|
|
57683
|
+
var m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse();
|
|
57684
|
+
if (d.campaignId != null) {
|
|
57685
|
+
m.campaignId = String(d.campaignId);
|
|
57686
|
+
}
|
|
57687
|
+
if (d.timestampMs != null) {
|
|
57688
|
+
if ($util.Long)
|
|
57689
|
+
(m.timestampMs = $util.Long.fromValue(d.timestampMs)).unsigned = false;
|
|
57690
|
+
else if (typeof d.timestampMs === "string")
|
|
57691
|
+
m.timestampMs = parseInt(d.timestampMs, 10);
|
|
57692
|
+
else if (typeof d.timestampMs === "number")
|
|
57693
|
+
m.timestampMs = d.timestampMs;
|
|
57694
|
+
else if (typeof d.timestampMs === "object")
|
|
57695
|
+
m.timestampMs = new $util.LongBits(d.timestampMs.low >>> 0, d.timestampMs.high >>> 0).toNumber();
|
|
57696
|
+
}
|
|
57697
|
+
if (d.contacts) {
|
|
57698
|
+
if (!Array.isArray(d.contacts))
|
|
57699
|
+
throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.contacts: array expected");
|
|
57700
|
+
m.contacts = [];
|
|
57701
|
+
for (var i = 0; i < d.contacts.length; ++i) {
|
|
57702
|
+
if (typeof d.contacts[i] !== "object")
|
|
57703
|
+
throw TypeError(".proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse.contacts: object expected");
|
|
57704
|
+
m.contacts[i] = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState.fromObject(d.contacts[i]);
|
|
57705
|
+
}
|
|
57706
|
+
}
|
|
57707
|
+
return m;
|
|
57708
|
+
};
|
|
57709
|
+
|
|
57710
|
+
BizBroadcastInsightsContactListResponse.toObject = function toObject(m, o) {
|
|
57711
|
+
if (!o)
|
|
57712
|
+
o = {};
|
|
57713
|
+
var d = {};
|
|
57714
|
+
if (o.arrays || o.defaults) {
|
|
57715
|
+
d.contacts = [];
|
|
57716
|
+
}
|
|
57717
|
+
if (m.campaignId != null && m.hasOwnProperty("campaignId")) {
|
|
57718
|
+
d.campaignId = m.campaignId;
|
|
57719
|
+
if (o.oneofs)
|
|
57720
|
+
d._campaignId = "campaignId";
|
|
57721
|
+
}
|
|
57722
|
+
if (m.timestampMs != null && m.hasOwnProperty("timestampMs")) {
|
|
57723
|
+
if (typeof m.timestampMs === "number")
|
|
57724
|
+
d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
|
|
57725
|
+
else
|
|
57726
|
+
d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
|
|
57727
|
+
if (o.oneofs)
|
|
57728
|
+
d._timestampMs = "timestampMs";
|
|
57729
|
+
}
|
|
57730
|
+
if (m.contacts && m.contacts.length) {
|
|
57731
|
+
d.contacts = [];
|
|
57732
|
+
for (var j = 0; j < m.contacts.length; ++j) {
|
|
57733
|
+
d.contacts[j] = $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState.toObject(m.contacts[j], o);
|
|
57734
|
+
}
|
|
57735
|
+
}
|
|
57736
|
+
return d;
|
|
57737
|
+
};
|
|
57738
|
+
|
|
57739
|
+
BizBroadcastInsightsContactListResponse.prototype.toJSON = function toJSON() {
|
|
57740
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57741
|
+
};
|
|
57742
|
+
|
|
57743
|
+
BizBroadcastInsightsContactListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
57744
|
+
if (typeUrlPrefix === undefined) {
|
|
57745
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
57746
|
+
}
|
|
57747
|
+
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactListResponse";
|
|
57748
|
+
};
|
|
57749
|
+
|
|
57750
|
+
return BizBroadcastInsightsContactListResponse;
|
|
57751
|
+
})();
|
|
57752
|
+
|
|
57753
|
+
PeerDataOperationResult.BizBroadcastInsightsContactState = (function() {
|
|
57754
|
+
|
|
57755
|
+
function BizBroadcastInsightsContactState(p) {
|
|
57756
|
+
if (p)
|
|
57757
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
57758
|
+
if (p[ks[i]] != null)
|
|
57759
|
+
this[ks[i]] = p[ks[i]];
|
|
57760
|
+
}
|
|
57761
|
+
|
|
57762
|
+
BizBroadcastInsightsContactState.prototype.contactJid = null;
|
|
57763
|
+
BizBroadcastInsightsContactState.prototype.state = null;
|
|
57764
|
+
|
|
57765
|
+
let $oneOfFields;
|
|
57766
|
+
|
|
57767
|
+
Object.defineProperty(BizBroadcastInsightsContactState.prototype, "_contactJid", {
|
|
57768
|
+
get: $util.oneOfGetter($oneOfFields = ["contactJid"]),
|
|
57769
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57770
|
+
});
|
|
57771
|
+
|
|
57772
|
+
Object.defineProperty(BizBroadcastInsightsContactState.prototype, "_state", {
|
|
57773
|
+
get: $util.oneOfGetter($oneOfFields = ["state"]),
|
|
57774
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
57775
|
+
});
|
|
57776
|
+
|
|
57777
|
+
BizBroadcastInsightsContactState.create = function create(properties) {
|
|
57778
|
+
return new BizBroadcastInsightsContactState(properties);
|
|
57779
|
+
};
|
|
57780
|
+
|
|
57781
|
+
BizBroadcastInsightsContactState.encode = function encode(m, w) {
|
|
57782
|
+
if (!w)
|
|
57783
|
+
w = $Writer.create();
|
|
57784
|
+
if (m.contactJid != null && Object.hasOwnProperty.call(m, "contactJid"))
|
|
57785
|
+
w.uint32(10).string(m.contactJid);
|
|
57786
|
+
if (m.state != null && Object.hasOwnProperty.call(m, "state"))
|
|
57787
|
+
w.uint32(16).int32(m.state);
|
|
57788
|
+
return w;
|
|
57789
|
+
};
|
|
57790
|
+
|
|
57791
|
+
BizBroadcastInsightsContactState.decode = function decode(r, l, e) {
|
|
57792
|
+
if (!(r instanceof $Reader))
|
|
57793
|
+
r = $Reader.create(r);
|
|
57794
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState();
|
|
57795
|
+
while (r.pos < c) {
|
|
57796
|
+
var t = r.uint32();
|
|
57797
|
+
if (t === e)
|
|
57798
|
+
break;
|
|
57799
|
+
switch (t >>> 3) {
|
|
57800
|
+
case 1: {
|
|
57801
|
+
m.contactJid = r.string();
|
|
57802
|
+
break;
|
|
57803
|
+
}
|
|
57804
|
+
case 2: {
|
|
57805
|
+
m.state = r.int32();
|
|
57806
|
+
break;
|
|
57807
|
+
}
|
|
57808
|
+
default:
|
|
57809
|
+
r.skipType(t & 7);
|
|
57810
|
+
break;
|
|
57811
|
+
}
|
|
57812
|
+
}
|
|
57813
|
+
return m;
|
|
57814
|
+
};
|
|
57815
|
+
|
|
57816
|
+
BizBroadcastInsightsContactState.fromObject = function fromObject(d) {
|
|
57817
|
+
if (d instanceof $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState)
|
|
57818
|
+
return d;
|
|
57819
|
+
var m = new $root.proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState();
|
|
57820
|
+
if (d.contactJid != null) {
|
|
57821
|
+
m.contactJid = String(d.contactJid);
|
|
57822
|
+
}
|
|
57823
|
+
switch (d.state) {
|
|
57824
|
+
default:
|
|
57825
|
+
if (typeof d.state === "number") {
|
|
57826
|
+
m.state = d.state;
|
|
57827
|
+
break;
|
|
57828
|
+
}
|
|
57829
|
+
break;
|
|
57830
|
+
case "SENT":
|
|
57831
|
+
case 0:
|
|
57832
|
+
m.state = 0;
|
|
57833
|
+
break;
|
|
57834
|
+
case "DELIVERED":
|
|
57835
|
+
case 1:
|
|
57836
|
+
m.state = 1;
|
|
57837
|
+
break;
|
|
57838
|
+
case "READ":
|
|
57839
|
+
case 2:
|
|
57840
|
+
m.state = 2;
|
|
57841
|
+
break;
|
|
57842
|
+
case "REPLIED":
|
|
57843
|
+
case 3:
|
|
57844
|
+
m.state = 3;
|
|
57845
|
+
break;
|
|
57846
|
+
case "QUICK_REPLIED":
|
|
57847
|
+
case 4:
|
|
57848
|
+
m.state = 4;
|
|
57849
|
+
break;
|
|
57850
|
+
}
|
|
57851
|
+
return m;
|
|
57852
|
+
};
|
|
57853
|
+
|
|
57854
|
+
BizBroadcastInsightsContactState.toObject = function toObject(m, o) {
|
|
57855
|
+
if (!o)
|
|
57856
|
+
o = {};
|
|
57857
|
+
var d = {};
|
|
57858
|
+
if (m.contactJid != null && m.hasOwnProperty("contactJid")) {
|
|
57859
|
+
d.contactJid = m.contactJid;
|
|
57860
|
+
if (o.oneofs)
|
|
57861
|
+
d._contactJid = "contactJid";
|
|
57862
|
+
}
|
|
57863
|
+
if (m.state != null && m.hasOwnProperty("state")) {
|
|
57864
|
+
d.state = o.enums === String ? $root.proto.Message.InsightDeliveryState[m.state] === undefined ? m.state : $root.proto.Message.InsightDeliveryState[m.state] : m.state;
|
|
57865
|
+
if (o.oneofs)
|
|
57866
|
+
d._state = "state";
|
|
57867
|
+
}
|
|
57868
|
+
return d;
|
|
57869
|
+
};
|
|
57870
|
+
|
|
57871
|
+
BizBroadcastInsightsContactState.prototype.toJSON = function toJSON() {
|
|
57872
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57873
|
+
};
|
|
57874
|
+
|
|
57875
|
+
BizBroadcastInsightsContactState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
57876
|
+
if (typeUrlPrefix === undefined) {
|
|
57877
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
57878
|
+
}
|
|
57879
|
+
return typeUrlPrefix + "/proto.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.BizBroadcastInsightsContactState";
|
|
57880
|
+
};
|
|
57881
|
+
|
|
57882
|
+
return BizBroadcastInsightsContactState;
|
|
57883
|
+
})();
|
|
57884
|
+
|
|
57213
57885
|
PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() {
|
|
57214
57886
|
|
|
57215
57887
|
function CompanionCanonicalUserNonceFetchResponse(p) {
|
|
@@ -59070,6 +59742,8 @@ export const proto = $root.proto = (() => {
|
|
|
59070
59742
|
values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
|
|
59071
59743
|
values[valuesById[10] = "HISTORY_SYNC_CHUNK_RETRY"] = 10;
|
|
59072
59744
|
values[valuesById[11] = "GALAXY_FLOW_ACTION"] = 11;
|
|
59745
|
+
values[valuesById[12] = "BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO"] = 12;
|
|
59746
|
+
values[valuesById[13] = "BUSINESS_BROADCAST_INSIGHTS_REFRESH"] = 13;
|
|
59073
59747
|
return values;
|
|
59074
59748
|
})();
|
|
59075
59749
|
|
|
@@ -69163,6 +69837,7 @@ export const proto = $root.proto = (() => {
|
|
|
69163
69837
|
MsgOpaqueData.prototype.quarantineExtractedText = null;
|
|
69164
69838
|
MsgOpaqueData.prototype.pollEndTime = null;
|
|
69165
69839
|
MsgOpaqueData.prototype.pollHideVoterNames = null;
|
|
69840
|
+
MsgOpaqueData.prototype.pollAllowAddOption = null;
|
|
69166
69841
|
|
|
69167
69842
|
let $oneOfFields;
|
|
69168
69843
|
|
|
@@ -69391,6 +70066,11 @@ export const proto = $root.proto = (() => {
|
|
|
69391
70066
|
set: $util.oneOfSetter($oneOfFields)
|
|
69392
70067
|
});
|
|
69393
70068
|
|
|
70069
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_pollAllowAddOption", {
|
|
70070
|
+
get: $util.oneOfGetter($oneOfFields = ["pollAllowAddOption"]),
|
|
70071
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70072
|
+
});
|
|
70073
|
+
|
|
69394
70074
|
MsgOpaqueData.create = function create(properties) {
|
|
69395
70075
|
return new MsgOpaqueData(properties);
|
|
69396
70076
|
};
|
|
@@ -69492,6 +70172,8 @@ export const proto = $root.proto = (() => {
|
|
|
69492
70172
|
w.uint32(400).bool(m.pollHideVoterNames);
|
|
69493
70173
|
if (m.originalSelfAuthor != null && Object.hasOwnProperty.call(m, "originalSelfAuthor"))
|
|
69494
70174
|
w.uint32(410).string(m.originalSelfAuthor);
|
|
70175
|
+
if (m.pollAllowAddOption != null && Object.hasOwnProperty.call(m, "pollAllowAddOption"))
|
|
70176
|
+
w.uint32(416).bool(m.pollAllowAddOption);
|
|
69495
70177
|
return w;
|
|
69496
70178
|
};
|
|
69497
70179
|
|
|
@@ -69690,6 +70372,10 @@ export const proto = $root.proto = (() => {
|
|
|
69690
70372
|
m.pollHideVoterNames = r.bool();
|
|
69691
70373
|
break;
|
|
69692
70374
|
}
|
|
70375
|
+
case 52: {
|
|
70376
|
+
m.pollAllowAddOption = r.bool();
|
|
70377
|
+
break;
|
|
70378
|
+
}
|
|
69693
70379
|
default:
|
|
69694
70380
|
r.skipType(t & 7);
|
|
69695
70381
|
break;
|
|
@@ -69935,6 +70621,9 @@ export const proto = $root.proto = (() => {
|
|
|
69935
70621
|
if (d.pollHideVoterNames != null) {
|
|
69936
70622
|
m.pollHideVoterNames = Boolean(d.pollHideVoterNames);
|
|
69937
70623
|
}
|
|
70624
|
+
if (d.pollAllowAddOption != null) {
|
|
70625
|
+
m.pollAllowAddOption = Boolean(d.pollAllowAddOption);
|
|
70626
|
+
}
|
|
69938
70627
|
return m;
|
|
69939
70628
|
};
|
|
69940
70629
|
|
|
@@ -70188,6 +70877,11 @@ export const proto = $root.proto = (() => {
|
|
|
70188
70877
|
if (o.oneofs)
|
|
70189
70878
|
d._originalSelfAuthor = "originalSelfAuthor";
|
|
70190
70879
|
}
|
|
70880
|
+
if (m.pollAllowAddOption != null && m.hasOwnProperty("pollAllowAddOption")) {
|
|
70881
|
+
d.pollAllowAddOption = m.pollAllowAddOption;
|
|
70882
|
+
if (o.oneofs)
|
|
70883
|
+
d._pollAllowAddOption = "pollAllowAddOption";
|
|
70884
|
+
}
|
|
70191
70885
|
return d;
|
|
70192
70886
|
};
|
|
70193
70887
|
|
|
@@ -70911,6 +71605,7 @@ export const proto = $root.proto = (() => {
|
|
|
70911
71605
|
values[valuesById[80] = "NCT_SALT_SYNC_ACTION"] = 80;
|
|
70912
71606
|
values[valuesById[81] = "BUSINESS_BROADCAST_CAMPAIGN_ACTION"] = 81;
|
|
70913
71607
|
values[valuesById[82] = "BUSINESS_BROADCAST_INSIGHTS_ACTION"] = 82;
|
|
71608
|
+
values[valuesById[83] = "CUSTOMER_DATA_ACTION"] = 83;
|
|
70914
71609
|
values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
|
|
70915
71610
|
values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
|
|
70916
71611
|
values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
|
|
@@ -80933,6 +81628,7 @@ export const proto = $root.proto = (() => {
|
|
|
80933
81628
|
SyncActionValue.prototype.nctSaltSyncAction = null;
|
|
80934
81629
|
SyncActionValue.prototype.businessBroadcastCampaignAction = null;
|
|
80935
81630
|
SyncActionValue.prototype.businessBroadcastInsightsAction = null;
|
|
81631
|
+
SyncActionValue.prototype.customerDataAction = null;
|
|
80936
81632
|
|
|
80937
81633
|
let $oneOfFields;
|
|
80938
81634
|
|
|
@@ -81301,6 +81997,11 @@ export const proto = $root.proto = (() => {
|
|
|
81301
81997
|
set: $util.oneOfSetter($oneOfFields)
|
|
81302
81998
|
});
|
|
81303
81999
|
|
|
82000
|
+
Object.defineProperty(SyncActionValue.prototype, "_customerDataAction", {
|
|
82001
|
+
get: $util.oneOfGetter($oneOfFields = ["customerDataAction"]),
|
|
82002
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
82003
|
+
});
|
|
82004
|
+
|
|
81304
82005
|
SyncActionValue.create = function create(properties) {
|
|
81305
82006
|
return new SyncActionValue(properties);
|
|
81306
82007
|
};
|
|
@@ -81454,6 +82155,8 @@ export const proto = $root.proto = (() => {
|
|
|
81454
82155
|
$root.proto.SyncActionValue.BusinessBroadcastCampaignAction.encode(m.businessBroadcastCampaignAction, w.uint32(650).fork()).ldelim();
|
|
81455
82156
|
if (m.businessBroadcastInsightsAction != null && Object.hasOwnProperty.call(m, "businessBroadcastInsightsAction"))
|
|
81456
82157
|
$root.proto.SyncActionValue.BusinessBroadcastInsightsAction.encode(m.businessBroadcastInsightsAction, w.uint32(658).fork()).ldelim();
|
|
82158
|
+
if (m.customerDataAction != null && Object.hasOwnProperty.call(m, "customerDataAction"))
|
|
82159
|
+
$root.proto.SyncActionValue.CustomerDataAction.encode(m.customerDataAction, w.uint32(666).fork()).ldelim();
|
|
81457
82160
|
return w;
|
|
81458
82161
|
};
|
|
81459
82162
|
|
|
@@ -81758,6 +82461,10 @@ export const proto = $root.proto = (() => {
|
|
|
81758
82461
|
m.businessBroadcastInsightsAction = $root.proto.SyncActionValue.BusinessBroadcastInsightsAction.decode(r, r.uint32());
|
|
81759
82462
|
break;
|
|
81760
82463
|
}
|
|
82464
|
+
case 83: {
|
|
82465
|
+
m.customerDataAction = $root.proto.SyncActionValue.CustomerDataAction.decode(r, r.uint32());
|
|
82466
|
+
break;
|
|
82467
|
+
}
|
|
81761
82468
|
default:
|
|
81762
82469
|
r.skipType(t & 7);
|
|
81763
82470
|
break;
|
|
@@ -82140,6 +82847,11 @@ export const proto = $root.proto = (() => {
|
|
|
82140
82847
|
throw TypeError(".proto.SyncActionValue.businessBroadcastInsightsAction: object expected");
|
|
82141
82848
|
m.businessBroadcastInsightsAction = $root.proto.SyncActionValue.BusinessBroadcastInsightsAction.fromObject(d.businessBroadcastInsightsAction);
|
|
82142
82849
|
}
|
|
82850
|
+
if (d.customerDataAction != null) {
|
|
82851
|
+
if (typeof d.customerDataAction !== "object")
|
|
82852
|
+
throw TypeError(".proto.SyncActionValue.customerDataAction: object expected");
|
|
82853
|
+
m.customerDataAction = $root.proto.SyncActionValue.CustomerDataAction.fromObject(d.customerDataAction);
|
|
82854
|
+
}
|
|
82143
82855
|
return m;
|
|
82144
82856
|
};
|
|
82145
82857
|
|
|
@@ -82515,6 +83227,11 @@ export const proto = $root.proto = (() => {
|
|
|
82515
83227
|
if (o.oneofs)
|
|
82516
83228
|
d._businessBroadcastInsightsAction = "businessBroadcastInsightsAction";
|
|
82517
83229
|
}
|
|
83230
|
+
if (m.customerDataAction != null && m.hasOwnProperty("customerDataAction")) {
|
|
83231
|
+
d.customerDataAction = $root.proto.SyncActionValue.CustomerDataAction.toObject(m.customerDataAction, o);
|
|
83232
|
+
if (o.oneofs)
|
|
83233
|
+
d._customerDataAction = "customerDataAction";
|
|
83234
|
+
}
|
|
82518
83235
|
return d;
|
|
82519
83236
|
};
|
|
82520
83237
|
|
|
@@ -84984,6 +85701,333 @@ export const proto = $root.proto = (() => {
|
|
|
84984
85701
|
return CustomPaymentMethodsAction;
|
|
84985
85702
|
})();
|
|
84986
85703
|
|
|
85704
|
+
SyncActionValue.CustomerDataAction = (function() {
|
|
85705
|
+
|
|
85706
|
+
function CustomerDataAction(p) {
|
|
85707
|
+
if (p)
|
|
85708
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
85709
|
+
if (p[ks[i]] != null)
|
|
85710
|
+
this[ks[i]] = p[ks[i]];
|
|
85711
|
+
}
|
|
85712
|
+
|
|
85713
|
+
CustomerDataAction.prototype.chatJid = null;
|
|
85714
|
+
CustomerDataAction.prototype.contactType = null;
|
|
85715
|
+
CustomerDataAction.prototype.email = null;
|
|
85716
|
+
CustomerDataAction.prototype.altPhoneNumbers = null;
|
|
85717
|
+
CustomerDataAction.prototype.birthday = null;
|
|
85718
|
+
CustomerDataAction.prototype.address = null;
|
|
85719
|
+
CustomerDataAction.prototype.acquisitionSource = null;
|
|
85720
|
+
CustomerDataAction.prototype.leadStage = null;
|
|
85721
|
+
CustomerDataAction.prototype.lastOrder = null;
|
|
85722
|
+
CustomerDataAction.prototype.createdAt = null;
|
|
85723
|
+
CustomerDataAction.prototype.modifiedAt = null;
|
|
85724
|
+
|
|
85725
|
+
let $oneOfFields;
|
|
85726
|
+
|
|
85727
|
+
Object.defineProperty(CustomerDataAction.prototype, "_chatJid", {
|
|
85728
|
+
get: $util.oneOfGetter($oneOfFields = ["chatJid"]),
|
|
85729
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85730
|
+
});
|
|
85731
|
+
|
|
85732
|
+
Object.defineProperty(CustomerDataAction.prototype, "_contactType", {
|
|
85733
|
+
get: $util.oneOfGetter($oneOfFields = ["contactType"]),
|
|
85734
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85735
|
+
});
|
|
85736
|
+
|
|
85737
|
+
Object.defineProperty(CustomerDataAction.prototype, "_email", {
|
|
85738
|
+
get: $util.oneOfGetter($oneOfFields = ["email"]),
|
|
85739
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85740
|
+
});
|
|
85741
|
+
|
|
85742
|
+
Object.defineProperty(CustomerDataAction.prototype, "_altPhoneNumbers", {
|
|
85743
|
+
get: $util.oneOfGetter($oneOfFields = ["altPhoneNumbers"]),
|
|
85744
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85745
|
+
});
|
|
85746
|
+
|
|
85747
|
+
Object.defineProperty(CustomerDataAction.prototype, "_birthday", {
|
|
85748
|
+
get: $util.oneOfGetter($oneOfFields = ["birthday"]),
|
|
85749
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85750
|
+
});
|
|
85751
|
+
|
|
85752
|
+
Object.defineProperty(CustomerDataAction.prototype, "_address", {
|
|
85753
|
+
get: $util.oneOfGetter($oneOfFields = ["address"]),
|
|
85754
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85755
|
+
});
|
|
85756
|
+
|
|
85757
|
+
Object.defineProperty(CustomerDataAction.prototype, "_acquisitionSource", {
|
|
85758
|
+
get: $util.oneOfGetter($oneOfFields = ["acquisitionSource"]),
|
|
85759
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85760
|
+
});
|
|
85761
|
+
|
|
85762
|
+
Object.defineProperty(CustomerDataAction.prototype, "_leadStage", {
|
|
85763
|
+
get: $util.oneOfGetter($oneOfFields = ["leadStage"]),
|
|
85764
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85765
|
+
});
|
|
85766
|
+
|
|
85767
|
+
Object.defineProperty(CustomerDataAction.prototype, "_lastOrder", {
|
|
85768
|
+
get: $util.oneOfGetter($oneOfFields = ["lastOrder"]),
|
|
85769
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85770
|
+
});
|
|
85771
|
+
|
|
85772
|
+
Object.defineProperty(CustomerDataAction.prototype, "_createdAt", {
|
|
85773
|
+
get: $util.oneOfGetter($oneOfFields = ["createdAt"]),
|
|
85774
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85775
|
+
});
|
|
85776
|
+
|
|
85777
|
+
Object.defineProperty(CustomerDataAction.prototype, "_modifiedAt", {
|
|
85778
|
+
get: $util.oneOfGetter($oneOfFields = ["modifiedAt"]),
|
|
85779
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85780
|
+
});
|
|
85781
|
+
|
|
85782
|
+
CustomerDataAction.create = function create(properties) {
|
|
85783
|
+
return new CustomerDataAction(properties);
|
|
85784
|
+
};
|
|
85785
|
+
|
|
85786
|
+
CustomerDataAction.encode = function encode(m, w) {
|
|
85787
|
+
if (!w)
|
|
85788
|
+
w = $Writer.create();
|
|
85789
|
+
if (m.chatJid != null && Object.hasOwnProperty.call(m, "chatJid"))
|
|
85790
|
+
w.uint32(10).string(m.chatJid);
|
|
85791
|
+
if (m.contactType != null && Object.hasOwnProperty.call(m, "contactType"))
|
|
85792
|
+
w.uint32(16).int32(m.contactType);
|
|
85793
|
+
if (m.email != null && Object.hasOwnProperty.call(m, "email"))
|
|
85794
|
+
w.uint32(26).string(m.email);
|
|
85795
|
+
if (m.altPhoneNumbers != null && Object.hasOwnProperty.call(m, "altPhoneNumbers"))
|
|
85796
|
+
w.uint32(34).string(m.altPhoneNumbers);
|
|
85797
|
+
if (m.birthday != null && Object.hasOwnProperty.call(m, "birthday"))
|
|
85798
|
+
w.uint32(40).int64(m.birthday);
|
|
85799
|
+
if (m.address != null && Object.hasOwnProperty.call(m, "address"))
|
|
85800
|
+
w.uint32(50).string(m.address);
|
|
85801
|
+
if (m.acquisitionSource != null && Object.hasOwnProperty.call(m, "acquisitionSource"))
|
|
85802
|
+
w.uint32(56).int32(m.acquisitionSource);
|
|
85803
|
+
if (m.leadStage != null && Object.hasOwnProperty.call(m, "leadStage"))
|
|
85804
|
+
w.uint32(64).int32(m.leadStage);
|
|
85805
|
+
if (m.lastOrder != null && Object.hasOwnProperty.call(m, "lastOrder"))
|
|
85806
|
+
w.uint32(72).int64(m.lastOrder);
|
|
85807
|
+
if (m.createdAt != null && Object.hasOwnProperty.call(m, "createdAt"))
|
|
85808
|
+
w.uint32(80).int64(m.createdAt);
|
|
85809
|
+
if (m.modifiedAt != null && Object.hasOwnProperty.call(m, "modifiedAt"))
|
|
85810
|
+
w.uint32(88).int64(m.modifiedAt);
|
|
85811
|
+
return w;
|
|
85812
|
+
};
|
|
85813
|
+
|
|
85814
|
+
CustomerDataAction.decode = function decode(r, l, e) {
|
|
85815
|
+
if (!(r instanceof $Reader))
|
|
85816
|
+
r = $Reader.create(r);
|
|
85817
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.CustomerDataAction();
|
|
85818
|
+
while (r.pos < c) {
|
|
85819
|
+
var t = r.uint32();
|
|
85820
|
+
if (t === e)
|
|
85821
|
+
break;
|
|
85822
|
+
switch (t >>> 3) {
|
|
85823
|
+
case 1: {
|
|
85824
|
+
m.chatJid = r.string();
|
|
85825
|
+
break;
|
|
85826
|
+
}
|
|
85827
|
+
case 2: {
|
|
85828
|
+
m.contactType = r.int32();
|
|
85829
|
+
break;
|
|
85830
|
+
}
|
|
85831
|
+
case 3: {
|
|
85832
|
+
m.email = r.string();
|
|
85833
|
+
break;
|
|
85834
|
+
}
|
|
85835
|
+
case 4: {
|
|
85836
|
+
m.altPhoneNumbers = r.string();
|
|
85837
|
+
break;
|
|
85838
|
+
}
|
|
85839
|
+
case 5: {
|
|
85840
|
+
m.birthday = r.int64();
|
|
85841
|
+
break;
|
|
85842
|
+
}
|
|
85843
|
+
case 6: {
|
|
85844
|
+
m.address = r.string();
|
|
85845
|
+
break;
|
|
85846
|
+
}
|
|
85847
|
+
case 7: {
|
|
85848
|
+
m.acquisitionSource = r.int32();
|
|
85849
|
+
break;
|
|
85850
|
+
}
|
|
85851
|
+
case 8: {
|
|
85852
|
+
m.leadStage = r.int32();
|
|
85853
|
+
break;
|
|
85854
|
+
}
|
|
85855
|
+
case 9: {
|
|
85856
|
+
m.lastOrder = r.int64();
|
|
85857
|
+
break;
|
|
85858
|
+
}
|
|
85859
|
+
case 10: {
|
|
85860
|
+
m.createdAt = r.int64();
|
|
85861
|
+
break;
|
|
85862
|
+
}
|
|
85863
|
+
case 11: {
|
|
85864
|
+
m.modifiedAt = r.int64();
|
|
85865
|
+
break;
|
|
85866
|
+
}
|
|
85867
|
+
default:
|
|
85868
|
+
r.skipType(t & 7);
|
|
85869
|
+
break;
|
|
85870
|
+
}
|
|
85871
|
+
}
|
|
85872
|
+
return m;
|
|
85873
|
+
};
|
|
85874
|
+
|
|
85875
|
+
CustomerDataAction.fromObject = function fromObject(d) {
|
|
85876
|
+
if (d instanceof $root.proto.SyncActionValue.CustomerDataAction)
|
|
85877
|
+
return d;
|
|
85878
|
+
var m = new $root.proto.SyncActionValue.CustomerDataAction();
|
|
85879
|
+
if (d.chatJid != null) {
|
|
85880
|
+
m.chatJid = String(d.chatJid);
|
|
85881
|
+
}
|
|
85882
|
+
if (d.contactType != null) {
|
|
85883
|
+
m.contactType = d.contactType | 0;
|
|
85884
|
+
}
|
|
85885
|
+
if (d.email != null) {
|
|
85886
|
+
m.email = String(d.email);
|
|
85887
|
+
}
|
|
85888
|
+
if (d.altPhoneNumbers != null) {
|
|
85889
|
+
m.altPhoneNumbers = String(d.altPhoneNumbers);
|
|
85890
|
+
}
|
|
85891
|
+
if (d.birthday != null) {
|
|
85892
|
+
if ($util.Long)
|
|
85893
|
+
(m.birthday = $util.Long.fromValue(d.birthday)).unsigned = false;
|
|
85894
|
+
else if (typeof d.birthday === "string")
|
|
85895
|
+
m.birthday = parseInt(d.birthday, 10);
|
|
85896
|
+
else if (typeof d.birthday === "number")
|
|
85897
|
+
m.birthday = d.birthday;
|
|
85898
|
+
else if (typeof d.birthday === "object")
|
|
85899
|
+
m.birthday = new $util.LongBits(d.birthday.low >>> 0, d.birthday.high >>> 0).toNumber();
|
|
85900
|
+
}
|
|
85901
|
+
if (d.address != null) {
|
|
85902
|
+
m.address = String(d.address);
|
|
85903
|
+
}
|
|
85904
|
+
if (d.acquisitionSource != null) {
|
|
85905
|
+
m.acquisitionSource = d.acquisitionSource | 0;
|
|
85906
|
+
}
|
|
85907
|
+
if (d.leadStage != null) {
|
|
85908
|
+
m.leadStage = d.leadStage | 0;
|
|
85909
|
+
}
|
|
85910
|
+
if (d.lastOrder != null) {
|
|
85911
|
+
if ($util.Long)
|
|
85912
|
+
(m.lastOrder = $util.Long.fromValue(d.lastOrder)).unsigned = false;
|
|
85913
|
+
else if (typeof d.lastOrder === "string")
|
|
85914
|
+
m.lastOrder = parseInt(d.lastOrder, 10);
|
|
85915
|
+
else if (typeof d.lastOrder === "number")
|
|
85916
|
+
m.lastOrder = d.lastOrder;
|
|
85917
|
+
else if (typeof d.lastOrder === "object")
|
|
85918
|
+
m.lastOrder = new $util.LongBits(d.lastOrder.low >>> 0, d.lastOrder.high >>> 0).toNumber();
|
|
85919
|
+
}
|
|
85920
|
+
if (d.createdAt != null) {
|
|
85921
|
+
if ($util.Long)
|
|
85922
|
+
(m.createdAt = $util.Long.fromValue(d.createdAt)).unsigned = false;
|
|
85923
|
+
else if (typeof d.createdAt === "string")
|
|
85924
|
+
m.createdAt = parseInt(d.createdAt, 10);
|
|
85925
|
+
else if (typeof d.createdAt === "number")
|
|
85926
|
+
m.createdAt = d.createdAt;
|
|
85927
|
+
else if (typeof d.createdAt === "object")
|
|
85928
|
+
m.createdAt = new $util.LongBits(d.createdAt.low >>> 0, d.createdAt.high >>> 0).toNumber();
|
|
85929
|
+
}
|
|
85930
|
+
if (d.modifiedAt != null) {
|
|
85931
|
+
if ($util.Long)
|
|
85932
|
+
(m.modifiedAt = $util.Long.fromValue(d.modifiedAt)).unsigned = false;
|
|
85933
|
+
else if (typeof d.modifiedAt === "string")
|
|
85934
|
+
m.modifiedAt = parseInt(d.modifiedAt, 10);
|
|
85935
|
+
else if (typeof d.modifiedAt === "number")
|
|
85936
|
+
m.modifiedAt = d.modifiedAt;
|
|
85937
|
+
else if (typeof d.modifiedAt === "object")
|
|
85938
|
+
m.modifiedAt = new $util.LongBits(d.modifiedAt.low >>> 0, d.modifiedAt.high >>> 0).toNumber();
|
|
85939
|
+
}
|
|
85940
|
+
return m;
|
|
85941
|
+
};
|
|
85942
|
+
|
|
85943
|
+
CustomerDataAction.toObject = function toObject(m, o) {
|
|
85944
|
+
if (!o)
|
|
85945
|
+
o = {};
|
|
85946
|
+
var d = {};
|
|
85947
|
+
if (m.chatJid != null && m.hasOwnProperty("chatJid")) {
|
|
85948
|
+
d.chatJid = m.chatJid;
|
|
85949
|
+
if (o.oneofs)
|
|
85950
|
+
d._chatJid = "chatJid";
|
|
85951
|
+
}
|
|
85952
|
+
if (m.contactType != null && m.hasOwnProperty("contactType")) {
|
|
85953
|
+
d.contactType = m.contactType;
|
|
85954
|
+
if (o.oneofs)
|
|
85955
|
+
d._contactType = "contactType";
|
|
85956
|
+
}
|
|
85957
|
+
if (m.email != null && m.hasOwnProperty("email")) {
|
|
85958
|
+
d.email = m.email;
|
|
85959
|
+
if (o.oneofs)
|
|
85960
|
+
d._email = "email";
|
|
85961
|
+
}
|
|
85962
|
+
if (m.altPhoneNumbers != null && m.hasOwnProperty("altPhoneNumbers")) {
|
|
85963
|
+
d.altPhoneNumbers = m.altPhoneNumbers;
|
|
85964
|
+
if (o.oneofs)
|
|
85965
|
+
d._altPhoneNumbers = "altPhoneNumbers";
|
|
85966
|
+
}
|
|
85967
|
+
if (m.birthday != null && m.hasOwnProperty("birthday")) {
|
|
85968
|
+
if (typeof m.birthday === "number")
|
|
85969
|
+
d.birthday = o.longs === String ? String(m.birthday) : m.birthday;
|
|
85970
|
+
else
|
|
85971
|
+
d.birthday = o.longs === String ? longToString(m.birthday) : o.longs === Number ? longToNumber(m.birthday) : m.birthday;
|
|
85972
|
+
if (o.oneofs)
|
|
85973
|
+
d._birthday = "birthday";
|
|
85974
|
+
}
|
|
85975
|
+
if (m.address != null && m.hasOwnProperty("address")) {
|
|
85976
|
+
d.address = m.address;
|
|
85977
|
+
if (o.oneofs)
|
|
85978
|
+
d._address = "address";
|
|
85979
|
+
}
|
|
85980
|
+
if (m.acquisitionSource != null && m.hasOwnProperty("acquisitionSource")) {
|
|
85981
|
+
d.acquisitionSource = m.acquisitionSource;
|
|
85982
|
+
if (o.oneofs)
|
|
85983
|
+
d._acquisitionSource = "acquisitionSource";
|
|
85984
|
+
}
|
|
85985
|
+
if (m.leadStage != null && m.hasOwnProperty("leadStage")) {
|
|
85986
|
+
d.leadStage = m.leadStage;
|
|
85987
|
+
if (o.oneofs)
|
|
85988
|
+
d._leadStage = "leadStage";
|
|
85989
|
+
}
|
|
85990
|
+
if (m.lastOrder != null && m.hasOwnProperty("lastOrder")) {
|
|
85991
|
+
if (typeof m.lastOrder === "number")
|
|
85992
|
+
d.lastOrder = o.longs === String ? String(m.lastOrder) : m.lastOrder;
|
|
85993
|
+
else
|
|
85994
|
+
d.lastOrder = o.longs === String ? longToString(m.lastOrder) : o.longs === Number ? longToNumber(m.lastOrder) : m.lastOrder;
|
|
85995
|
+
if (o.oneofs)
|
|
85996
|
+
d._lastOrder = "lastOrder";
|
|
85997
|
+
}
|
|
85998
|
+
if (m.createdAt != null && m.hasOwnProperty("createdAt")) {
|
|
85999
|
+
if (typeof m.createdAt === "number")
|
|
86000
|
+
d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
|
|
86001
|
+
else
|
|
86002
|
+
d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
|
|
86003
|
+
if (o.oneofs)
|
|
86004
|
+
d._createdAt = "createdAt";
|
|
86005
|
+
}
|
|
86006
|
+
if (m.modifiedAt != null && m.hasOwnProperty("modifiedAt")) {
|
|
86007
|
+
if (typeof m.modifiedAt === "number")
|
|
86008
|
+
d.modifiedAt = o.longs === String ? String(m.modifiedAt) : m.modifiedAt;
|
|
86009
|
+
else
|
|
86010
|
+
d.modifiedAt = o.longs === String ? longToString(m.modifiedAt) : o.longs === Number ? longToNumber(m.modifiedAt) : m.modifiedAt;
|
|
86011
|
+
if (o.oneofs)
|
|
86012
|
+
d._modifiedAt = "modifiedAt";
|
|
86013
|
+
}
|
|
86014
|
+
return d;
|
|
86015
|
+
};
|
|
86016
|
+
|
|
86017
|
+
CustomerDataAction.prototype.toJSON = function toJSON() {
|
|
86018
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86019
|
+
};
|
|
86020
|
+
|
|
86021
|
+
CustomerDataAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86022
|
+
if (typeUrlPrefix === undefined) {
|
|
86023
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86024
|
+
}
|
|
86025
|
+
return typeUrlPrefix + "/proto.SyncActionValue.CustomerDataAction";
|
|
86026
|
+
};
|
|
86027
|
+
|
|
86028
|
+
return CustomerDataAction;
|
|
86029
|
+
})();
|
|
86030
|
+
|
|
84987
86031
|
SyncActionValue.DeleteChatAction = (function() {
|
|
84988
86032
|
|
|
84989
86033
|
function DeleteChatAction(p) {
|
|
@@ -94025,7 +95069,6 @@ export const proto = $root.proto = (() => {
|
|
|
94025
95069
|
|
|
94026
95070
|
ThreadID.prototype.threadType = null;
|
|
94027
95071
|
ThreadID.prototype.threadKey = null;
|
|
94028
|
-
ThreadID.prototype.sourceChatJid = null;
|
|
94029
95072
|
|
|
94030
95073
|
let $oneOfFields;
|
|
94031
95074
|
|
|
@@ -94039,11 +95082,6 @@ export const proto = $root.proto = (() => {
|
|
|
94039
95082
|
set: $util.oneOfSetter($oneOfFields)
|
|
94040
95083
|
});
|
|
94041
95084
|
|
|
94042
|
-
Object.defineProperty(ThreadID.prototype, "_sourceChatJid", {
|
|
94043
|
-
get: $util.oneOfGetter($oneOfFields = ["sourceChatJid"]),
|
|
94044
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
94045
|
-
});
|
|
94046
|
-
|
|
94047
95085
|
ThreadID.create = function create(properties) {
|
|
94048
95086
|
return new ThreadID(properties);
|
|
94049
95087
|
};
|
|
@@ -94055,8 +95093,6 @@ export const proto = $root.proto = (() => {
|
|
|
94055
95093
|
w.uint32(8).int32(m.threadType);
|
|
94056
95094
|
if (m.threadKey != null && Object.hasOwnProperty.call(m, "threadKey"))
|
|
94057
95095
|
$root.proto.MessageKey.encode(m.threadKey, w.uint32(18).fork()).ldelim();
|
|
94058
|
-
if (m.sourceChatJid != null && Object.hasOwnProperty.call(m, "sourceChatJid"))
|
|
94059
|
-
w.uint32(26).string(m.sourceChatJid);
|
|
94060
95096
|
return w;
|
|
94061
95097
|
};
|
|
94062
95098
|
|
|
@@ -94077,10 +95113,6 @@ export const proto = $root.proto = (() => {
|
|
|
94077
95113
|
m.threadKey = $root.proto.MessageKey.decode(r, r.uint32());
|
|
94078
95114
|
break;
|
|
94079
95115
|
}
|
|
94080
|
-
case 3: {
|
|
94081
|
-
m.sourceChatJid = r.string();
|
|
94082
|
-
break;
|
|
94083
|
-
}
|
|
94084
95116
|
default:
|
|
94085
95117
|
r.skipType(t & 7);
|
|
94086
95118
|
break;
|
|
@@ -94118,9 +95150,6 @@ export const proto = $root.proto = (() => {
|
|
|
94118
95150
|
throw TypeError(".proto.ThreadID.threadKey: object expected");
|
|
94119
95151
|
m.threadKey = $root.proto.MessageKey.fromObject(d.threadKey);
|
|
94120
95152
|
}
|
|
94121
|
-
if (d.sourceChatJid != null) {
|
|
94122
|
-
m.sourceChatJid = String(d.sourceChatJid);
|
|
94123
|
-
}
|
|
94124
95153
|
return m;
|
|
94125
95154
|
};
|
|
94126
95155
|
|
|
@@ -94138,11 +95167,6 @@ export const proto = $root.proto = (() => {
|
|
|
94138
95167
|
if (o.oneofs)
|
|
94139
95168
|
d._threadKey = "threadKey";
|
|
94140
95169
|
}
|
|
94141
|
-
if (m.sourceChatJid != null && m.hasOwnProperty("sourceChatJid")) {
|
|
94142
|
-
d.sourceChatJid = m.sourceChatJid;
|
|
94143
|
-
if (o.oneofs)
|
|
94144
|
-
d._sourceChatJid = "sourceChatJid";
|
|
94145
|
-
}
|
|
94146
95170
|
return d;
|
|
94147
95171
|
};
|
|
94148
95172
|
|