@avaprotocol/sdk-js 2.5.2-dev.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +597 -1600
- package/dist/index.mjs +612 -1603
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +2 -11
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +1 -14
- package/dist/models/node/contractWrite.d.ts +1 -1
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +0 -14
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +1 -14
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +6 -11
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +20 -18
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +5 -11
- package/dist/models/node/interface.d.ts +0 -1
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/interface.js +0 -8
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +58 -85
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +1 -15
- package/dist/models/step.d.ts +3 -1
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +104 -365
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +18 -20
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +9 -28
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +1 -12
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +9 -20
- package/dist/models/trigger/interface.d.ts +1 -1
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/interface.js +7 -2
- package/dist/models/trigger/manual.d.ts +0 -3
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +33 -44
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1338,8 +1338,7 @@ var require_avs_pb = __commonJS({
|
|
|
1338
1338
|
};
|
|
1339
1339
|
proto.aggregator.FixedTimeTrigger.toObject = function(includeInstance, msg) {
|
|
1340
1340
|
var f, obj = {
|
|
1341
|
-
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
|
|
1342
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1341
|
+
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
|
|
1343
1342
|
};
|
|
1344
1343
|
if (includeInstance) {
|
|
1345
1344
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1364,11 +1363,6 @@ var require_avs_pb = __commonJS({
|
|
|
1364
1363
|
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Config.deserializeBinaryFromReader);
|
|
1365
1364
|
msg.setConfig(value);
|
|
1366
1365
|
break;
|
|
1367
|
-
case 2:
|
|
1368
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
1369
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1370
|
-
msg.setInput(value);
|
|
1371
|
-
break;
|
|
1372
1366
|
default:
|
|
1373
1367
|
reader.skipField();
|
|
1374
1368
|
break;
|
|
@@ -1391,14 +1385,6 @@ var require_avs_pb = __commonJS({
|
|
|
1391
1385
|
proto.aggregator.FixedTimeTrigger.Config.serializeBinaryToWriter
|
|
1392
1386
|
);
|
|
1393
1387
|
}
|
|
1394
|
-
f = message.getInput();
|
|
1395
|
-
if (f != null) {
|
|
1396
|
-
writer.writeMessage(
|
|
1397
|
-
2,
|
|
1398
|
-
f,
|
|
1399
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
1388
|
};
|
|
1403
1389
|
proto.aggregator.FixedTimeTrigger.Config.repeatedFields_ = [1];
|
|
1404
1390
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1479,8 +1465,7 @@ var require_avs_pb = __commonJS({
|
|
|
1479
1465
|
};
|
|
1480
1466
|
proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1481
1467
|
var f, obj = {
|
|
1482
|
-
|
|
1483
|
-
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1468
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1484
1469
|
};
|
|
1485
1470
|
if (includeInstance) {
|
|
1486
1471
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1501,18 +1486,9 @@ var require_avs_pb = __commonJS({
|
|
|
1501
1486
|
var field = reader.getFieldNumber();
|
|
1502
1487
|
switch (field) {
|
|
1503
1488
|
case 1:
|
|
1504
|
-
var value = (
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
);
|
|
1508
|
-
msg.setTimestamp(value);
|
|
1509
|
-
break;
|
|
1510
|
-
case 2:
|
|
1511
|
-
var value = (
|
|
1512
|
-
/** @type {string} */
|
|
1513
|
-
reader.readString()
|
|
1514
|
-
);
|
|
1515
|
-
msg.setTimestampIso(value);
|
|
1489
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1490
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1491
|
+
msg.setData(value);
|
|
1516
1492
|
break;
|
|
1517
1493
|
default:
|
|
1518
1494
|
reader.skipField();
|
|
@@ -1528,38 +1504,29 @@ var require_avs_pb = __commonJS({
|
|
|
1528
1504
|
};
|
|
1529
1505
|
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1530
1506
|
var f = void 0;
|
|
1531
|
-
f = message.
|
|
1532
|
-
if (f
|
|
1533
|
-
writer.
|
|
1507
|
+
f = message.getData();
|
|
1508
|
+
if (f != null) {
|
|
1509
|
+
writer.writeMessage(
|
|
1534
1510
|
1,
|
|
1535
|
-
f
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1538
|
-
f = message.getTimestampIso();
|
|
1539
|
-
if (f.length > 0) {
|
|
1540
|
-
writer.writeString(
|
|
1541
|
-
2,
|
|
1542
|
-
f
|
|
1511
|
+
f,
|
|
1512
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1543
1513
|
);
|
|
1544
1514
|
}
|
|
1545
1515
|
};
|
|
1546
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1516
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
|
|
1547
1517
|
return (
|
|
1548
|
-
/** @type
|
|
1549
|
-
jspb.Message.
|
|
1518
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1519
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
1550
1520
|
);
|
|
1551
1521
|
};
|
|
1552
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1553
|
-
return jspb.Message.
|
|
1522
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.setData = function(value) {
|
|
1523
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1554
1524
|
};
|
|
1555
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1556
|
-
return (
|
|
1557
|
-
/** @type {string} */
|
|
1558
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1559
|
-
);
|
|
1525
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.clearData = function() {
|
|
1526
|
+
return this.setData(void 0);
|
|
1560
1527
|
};
|
|
1561
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1562
|
-
return jspb.Message.
|
|
1528
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.hasData = function() {
|
|
1529
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1563
1530
|
};
|
|
1564
1531
|
proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
|
|
1565
1532
|
return (
|
|
@@ -1576,29 +1543,13 @@ var require_avs_pb = __commonJS({
|
|
|
1576
1543
|
proto.aggregator.FixedTimeTrigger.prototype.hasConfig = function() {
|
|
1577
1544
|
return jspb.Message.getField(this, 1) != null;
|
|
1578
1545
|
};
|
|
1579
|
-
proto.aggregator.FixedTimeTrigger.prototype.getInput = function() {
|
|
1580
|
-
return (
|
|
1581
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
1582
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1583
|
-
);
|
|
1584
|
-
};
|
|
1585
|
-
proto.aggregator.FixedTimeTrigger.prototype.setInput = function(value) {
|
|
1586
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1587
|
-
};
|
|
1588
|
-
proto.aggregator.FixedTimeTrigger.prototype.clearInput = function() {
|
|
1589
|
-
return this.setInput(void 0);
|
|
1590
|
-
};
|
|
1591
|
-
proto.aggregator.FixedTimeTrigger.prototype.hasInput = function() {
|
|
1592
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1593
|
-
};
|
|
1594
1546
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1595
1547
|
proto.aggregator.CronTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1596
1548
|
return proto.aggregator.CronTrigger.toObject(opt_includeInstance, this);
|
|
1597
1549
|
};
|
|
1598
1550
|
proto.aggregator.CronTrigger.toObject = function(includeInstance, msg) {
|
|
1599
1551
|
var f, obj = {
|
|
1600
|
-
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
|
|
1601
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1552
|
+
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
|
|
1602
1553
|
};
|
|
1603
1554
|
if (includeInstance) {
|
|
1604
1555
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1623,11 +1574,6 @@ var require_avs_pb = __commonJS({
|
|
|
1623
1574
|
reader.readMessage(value, proto.aggregator.CronTrigger.Config.deserializeBinaryFromReader);
|
|
1624
1575
|
msg.setConfig(value);
|
|
1625
1576
|
break;
|
|
1626
|
-
case 2:
|
|
1627
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
1628
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1629
|
-
msg.setInput(value);
|
|
1630
|
-
break;
|
|
1631
1577
|
default:
|
|
1632
1578
|
reader.skipField();
|
|
1633
1579
|
break;
|
|
@@ -1650,14 +1596,6 @@ var require_avs_pb = __commonJS({
|
|
|
1650
1596
|
proto.aggregator.CronTrigger.Config.serializeBinaryToWriter
|
|
1651
1597
|
);
|
|
1652
1598
|
}
|
|
1653
|
-
f = message.getInput();
|
|
1654
|
-
if (f != null) {
|
|
1655
|
-
writer.writeMessage(
|
|
1656
|
-
2,
|
|
1657
|
-
f,
|
|
1658
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1659
|
-
);
|
|
1660
|
-
}
|
|
1661
1599
|
};
|
|
1662
1600
|
proto.aggregator.CronTrigger.Config.repeatedFields_ = [1];
|
|
1663
1601
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1736,8 +1674,7 @@ var require_avs_pb = __commonJS({
|
|
|
1736
1674
|
};
|
|
1737
1675
|
proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1738
1676
|
var f, obj = {
|
|
1739
|
-
|
|
1740
|
-
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1677
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1741
1678
|
};
|
|
1742
1679
|
if (includeInstance) {
|
|
1743
1680
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1758,18 +1695,9 @@ var require_avs_pb = __commonJS({
|
|
|
1758
1695
|
var field = reader.getFieldNumber();
|
|
1759
1696
|
switch (field) {
|
|
1760
1697
|
case 1:
|
|
1761
|
-
var value = (
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
);
|
|
1765
|
-
msg.setTimestamp(value);
|
|
1766
|
-
break;
|
|
1767
|
-
case 2:
|
|
1768
|
-
var value = (
|
|
1769
|
-
/** @type {string} */
|
|
1770
|
-
reader.readString()
|
|
1771
|
-
);
|
|
1772
|
-
msg.setTimestampIso(value);
|
|
1698
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1699
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1700
|
+
msg.setData(value);
|
|
1773
1701
|
break;
|
|
1774
1702
|
default:
|
|
1775
1703
|
reader.skipField();
|
|
@@ -1785,38 +1713,29 @@ var require_avs_pb = __commonJS({
|
|
|
1785
1713
|
};
|
|
1786
1714
|
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1787
1715
|
var f = void 0;
|
|
1788
|
-
f = message.
|
|
1789
|
-
if (f
|
|
1790
|
-
writer.
|
|
1716
|
+
f = message.getData();
|
|
1717
|
+
if (f != null) {
|
|
1718
|
+
writer.writeMessage(
|
|
1791
1719
|
1,
|
|
1792
|
-
f
|
|
1793
|
-
|
|
1794
|
-
}
|
|
1795
|
-
f = message.getTimestampIso();
|
|
1796
|
-
if (f.length > 0) {
|
|
1797
|
-
writer.writeString(
|
|
1798
|
-
2,
|
|
1799
|
-
f
|
|
1720
|
+
f,
|
|
1721
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1800
1722
|
);
|
|
1801
1723
|
}
|
|
1802
1724
|
};
|
|
1803
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1725
|
+
proto.aggregator.CronTrigger.Output.prototype.getData = function() {
|
|
1804
1726
|
return (
|
|
1805
|
-
/** @type
|
|
1806
|
-
jspb.Message.
|
|
1727
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1728
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
1807
1729
|
);
|
|
1808
1730
|
};
|
|
1809
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1810
|
-
return jspb.Message.
|
|
1731
|
+
proto.aggregator.CronTrigger.Output.prototype.setData = function(value) {
|
|
1732
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1811
1733
|
};
|
|
1812
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1813
|
-
return (
|
|
1814
|
-
/** @type {string} */
|
|
1815
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1816
|
-
);
|
|
1734
|
+
proto.aggregator.CronTrigger.Output.prototype.clearData = function() {
|
|
1735
|
+
return this.setData(void 0);
|
|
1817
1736
|
};
|
|
1818
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1819
|
-
return jspb.Message.
|
|
1737
|
+
proto.aggregator.CronTrigger.Output.prototype.hasData = function() {
|
|
1738
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1820
1739
|
};
|
|
1821
1740
|
proto.aggregator.CronTrigger.prototype.getConfig = function() {
|
|
1822
1741
|
return (
|
|
@@ -1833,29 +1752,13 @@ var require_avs_pb = __commonJS({
|
|
|
1833
1752
|
proto.aggregator.CronTrigger.prototype.hasConfig = function() {
|
|
1834
1753
|
return jspb.Message.getField(this, 1) != null;
|
|
1835
1754
|
};
|
|
1836
|
-
proto.aggregator.CronTrigger.prototype.getInput = function() {
|
|
1837
|
-
return (
|
|
1838
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
1839
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1840
|
-
);
|
|
1841
|
-
};
|
|
1842
|
-
proto.aggregator.CronTrigger.prototype.setInput = function(value) {
|
|
1843
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1844
|
-
};
|
|
1845
|
-
proto.aggregator.CronTrigger.prototype.clearInput = function() {
|
|
1846
|
-
return this.setInput(void 0);
|
|
1847
|
-
};
|
|
1848
|
-
proto.aggregator.CronTrigger.prototype.hasInput = function() {
|
|
1849
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1850
|
-
};
|
|
1851
1755
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1852
1756
|
proto.aggregator.BlockTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1853
1757
|
return proto.aggregator.BlockTrigger.toObject(opt_includeInstance, this);
|
|
1854
1758
|
};
|
|
1855
1759
|
proto.aggregator.BlockTrigger.toObject = function(includeInstance, msg) {
|
|
1856
1760
|
var f, obj = {
|
|
1857
|
-
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
|
|
1858
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1761
|
+
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
|
|
1859
1762
|
};
|
|
1860
1763
|
if (includeInstance) {
|
|
1861
1764
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1880,11 +1783,6 @@ var require_avs_pb = __commonJS({
|
|
|
1880
1783
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Config.deserializeBinaryFromReader);
|
|
1881
1784
|
msg.setConfig(value);
|
|
1882
1785
|
break;
|
|
1883
|
-
case 2:
|
|
1884
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
1885
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1886
|
-
msg.setInput(value);
|
|
1887
|
-
break;
|
|
1888
1786
|
default:
|
|
1889
1787
|
reader.skipField();
|
|
1890
1788
|
break;
|
|
@@ -1907,14 +1805,6 @@ var require_avs_pb = __commonJS({
|
|
|
1907
1805
|
proto.aggregator.BlockTrigger.Config.serializeBinaryToWriter
|
|
1908
1806
|
);
|
|
1909
1807
|
}
|
|
1910
|
-
f = message.getInput();
|
|
1911
|
-
if (f != null) {
|
|
1912
|
-
writer.writeMessage(
|
|
1913
|
-
2,
|
|
1914
|
-
f,
|
|
1915
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1916
|
-
);
|
|
1917
|
-
}
|
|
1918
1808
|
};
|
|
1919
1809
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1920
1810
|
proto.aggregator.BlockTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -1986,13 +1876,7 @@ var require_avs_pb = __commonJS({
|
|
|
1986
1876
|
};
|
|
1987
1877
|
proto.aggregator.BlockTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1988
1878
|
var f, obj = {
|
|
1989
|
-
|
|
1990
|
-
blockHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1991
|
-
timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1992
|
-
parentHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1993
|
-
difficulty: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1994
|
-
gasLimit: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
1995
|
-
gasUsed: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
1879
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1996
1880
|
};
|
|
1997
1881
|
if (includeInstance) {
|
|
1998
1882
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2013,53 +1897,9 @@ var require_avs_pb = __commonJS({
|
|
|
2013
1897
|
var field = reader.getFieldNumber();
|
|
2014
1898
|
switch (field) {
|
|
2015
1899
|
case 1:
|
|
2016
|
-
var value = (
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
);
|
|
2020
|
-
msg.setBlockNumber(value);
|
|
2021
|
-
break;
|
|
2022
|
-
case 2:
|
|
2023
|
-
var value = (
|
|
2024
|
-
/** @type {string} */
|
|
2025
|
-
reader.readString()
|
|
2026
|
-
);
|
|
2027
|
-
msg.setBlockHash(value);
|
|
2028
|
-
break;
|
|
2029
|
-
case 3:
|
|
2030
|
-
var value = (
|
|
2031
|
-
/** @type {number} */
|
|
2032
|
-
reader.readUint64()
|
|
2033
|
-
);
|
|
2034
|
-
msg.setTimestamp(value);
|
|
2035
|
-
break;
|
|
2036
|
-
case 4:
|
|
2037
|
-
var value = (
|
|
2038
|
-
/** @type {string} */
|
|
2039
|
-
reader.readString()
|
|
2040
|
-
);
|
|
2041
|
-
msg.setParentHash(value);
|
|
2042
|
-
break;
|
|
2043
|
-
case 5:
|
|
2044
|
-
var value = (
|
|
2045
|
-
/** @type {string} */
|
|
2046
|
-
reader.readString()
|
|
2047
|
-
);
|
|
2048
|
-
msg.setDifficulty(value);
|
|
2049
|
-
break;
|
|
2050
|
-
case 6:
|
|
2051
|
-
var value = (
|
|
2052
|
-
/** @type {number} */
|
|
2053
|
-
reader.readUint64()
|
|
2054
|
-
);
|
|
2055
|
-
msg.setGasLimit(value);
|
|
2056
|
-
break;
|
|
2057
|
-
case 7:
|
|
2058
|
-
var value = (
|
|
2059
|
-
/** @type {number} */
|
|
2060
|
-
reader.readUint64()
|
|
2061
|
-
);
|
|
2062
|
-
msg.setGasUsed(value);
|
|
1900
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1901
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1902
|
+
msg.setData(value);
|
|
2063
1903
|
break;
|
|
2064
1904
|
default:
|
|
2065
1905
|
reader.skipField();
|
|
@@ -2075,118 +1915,29 @@ var require_avs_pb = __commonJS({
|
|
|
2075
1915
|
};
|
|
2076
1916
|
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
2077
1917
|
var f = void 0;
|
|
2078
|
-
f = message.
|
|
2079
|
-
if (f
|
|
2080
|
-
writer.
|
|
1918
|
+
f = message.getData();
|
|
1919
|
+
if (f != null) {
|
|
1920
|
+
writer.writeMessage(
|
|
2081
1921
|
1,
|
|
2082
|
-
f
|
|
2083
|
-
|
|
2084
|
-
}
|
|
2085
|
-
f = message.getBlockHash();
|
|
2086
|
-
if (f.length > 0) {
|
|
2087
|
-
writer.writeString(
|
|
2088
|
-
2,
|
|
2089
|
-
f
|
|
2090
|
-
);
|
|
2091
|
-
}
|
|
2092
|
-
f = message.getTimestamp();
|
|
2093
|
-
if (f !== 0) {
|
|
2094
|
-
writer.writeUint64(
|
|
2095
|
-
3,
|
|
2096
|
-
f
|
|
2097
|
-
);
|
|
2098
|
-
}
|
|
2099
|
-
f = message.getParentHash();
|
|
2100
|
-
if (f.length > 0) {
|
|
2101
|
-
writer.writeString(
|
|
2102
|
-
4,
|
|
2103
|
-
f
|
|
2104
|
-
);
|
|
2105
|
-
}
|
|
2106
|
-
f = message.getDifficulty();
|
|
2107
|
-
if (f.length > 0) {
|
|
2108
|
-
writer.writeString(
|
|
2109
|
-
5,
|
|
2110
|
-
f
|
|
2111
|
-
);
|
|
2112
|
-
}
|
|
2113
|
-
f = message.getGasLimit();
|
|
2114
|
-
if (f !== 0) {
|
|
2115
|
-
writer.writeUint64(
|
|
2116
|
-
6,
|
|
2117
|
-
f
|
|
2118
|
-
);
|
|
2119
|
-
}
|
|
2120
|
-
f = message.getGasUsed();
|
|
2121
|
-
if (f !== 0) {
|
|
2122
|
-
writer.writeUint64(
|
|
2123
|
-
7,
|
|
2124
|
-
f
|
|
1922
|
+
f,
|
|
1923
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
2125
1924
|
);
|
|
2126
1925
|
}
|
|
2127
1926
|
};
|
|
2128
|
-
proto.aggregator.BlockTrigger.Output.prototype.
|
|
2129
|
-
return (
|
|
2130
|
-
/** @type {number} */
|
|
2131
|
-
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
2132
|
-
);
|
|
2133
|
-
};
|
|
2134
|
-
proto.aggregator.BlockTrigger.Output.prototype.setBlockNumber = function(value) {
|
|
2135
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2136
|
-
};
|
|
2137
|
-
proto.aggregator.BlockTrigger.Output.prototype.getBlockHash = function() {
|
|
2138
|
-
return (
|
|
2139
|
-
/** @type {string} */
|
|
2140
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
2141
|
-
);
|
|
2142
|
-
};
|
|
2143
|
-
proto.aggregator.BlockTrigger.Output.prototype.setBlockHash = function(value) {
|
|
2144
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2145
|
-
};
|
|
2146
|
-
proto.aggregator.BlockTrigger.Output.prototype.getTimestamp = function() {
|
|
1927
|
+
proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
|
|
2147
1928
|
return (
|
|
2148
|
-
/** @type
|
|
2149
|
-
jspb.Message.
|
|
2150
|
-
);
|
|
2151
|
-
};
|
|
2152
|
-
proto.aggregator.BlockTrigger.Output.prototype.setTimestamp = function(value) {
|
|
2153
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
2154
|
-
};
|
|
2155
|
-
proto.aggregator.BlockTrigger.Output.prototype.getParentHash = function() {
|
|
2156
|
-
return (
|
|
2157
|
-
/** @type {string} */
|
|
2158
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
2159
|
-
);
|
|
2160
|
-
};
|
|
2161
|
-
proto.aggregator.BlockTrigger.Output.prototype.setParentHash = function(value) {
|
|
2162
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2163
|
-
};
|
|
2164
|
-
proto.aggregator.BlockTrigger.Output.prototype.getDifficulty = function() {
|
|
2165
|
-
return (
|
|
2166
|
-
/** @type {string} */
|
|
2167
|
-
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
2168
|
-
);
|
|
2169
|
-
};
|
|
2170
|
-
proto.aggregator.BlockTrigger.Output.prototype.setDifficulty = function(value) {
|
|
2171
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2172
|
-
};
|
|
2173
|
-
proto.aggregator.BlockTrigger.Output.prototype.getGasLimit = function() {
|
|
2174
|
-
return (
|
|
2175
|
-
/** @type {number} */
|
|
2176
|
-
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
1929
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1930
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
2177
1931
|
);
|
|
2178
1932
|
};
|
|
2179
|
-
proto.aggregator.BlockTrigger.Output.prototype.
|
|
2180
|
-
return jspb.Message.
|
|
1933
|
+
proto.aggregator.BlockTrigger.Output.prototype.setData = function(value) {
|
|
1934
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2181
1935
|
};
|
|
2182
|
-
proto.aggregator.BlockTrigger.Output.prototype.
|
|
2183
|
-
return (
|
|
2184
|
-
/** @type {number} */
|
|
2185
|
-
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
2186
|
-
);
|
|
1936
|
+
proto.aggregator.BlockTrigger.Output.prototype.clearData = function() {
|
|
1937
|
+
return this.setData(void 0);
|
|
2187
1938
|
};
|
|
2188
|
-
proto.aggregator.BlockTrigger.Output.prototype.
|
|
2189
|
-
return jspb.Message.
|
|
1939
|
+
proto.aggregator.BlockTrigger.Output.prototype.hasData = function() {
|
|
1940
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2190
1941
|
};
|
|
2191
1942
|
proto.aggregator.BlockTrigger.prototype.getConfig = function() {
|
|
2192
1943
|
return (
|
|
@@ -2203,29 +1954,13 @@ var require_avs_pb = __commonJS({
|
|
|
2203
1954
|
proto.aggregator.BlockTrigger.prototype.hasConfig = function() {
|
|
2204
1955
|
return jspb.Message.getField(this, 1) != null;
|
|
2205
1956
|
};
|
|
2206
|
-
proto.aggregator.BlockTrigger.prototype.getInput = function() {
|
|
2207
|
-
return (
|
|
2208
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
2209
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
2210
|
-
);
|
|
2211
|
-
};
|
|
2212
|
-
proto.aggregator.BlockTrigger.prototype.setInput = function(value) {
|
|
2213
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2214
|
-
};
|
|
2215
|
-
proto.aggregator.BlockTrigger.prototype.clearInput = function() {
|
|
2216
|
-
return this.setInput(void 0);
|
|
2217
|
-
};
|
|
2218
|
-
proto.aggregator.BlockTrigger.prototype.hasInput = function() {
|
|
2219
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2220
|
-
};
|
|
2221
1957
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2222
1958
|
proto.aggregator.EventTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2223
1959
|
return proto.aggregator.EventTrigger.toObject(opt_includeInstance, this);
|
|
2224
1960
|
};
|
|
2225
1961
|
proto.aggregator.EventTrigger.toObject = function(includeInstance, msg) {
|
|
2226
1962
|
var f, obj = {
|
|
2227
|
-
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
|
|
2228
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1963
|
+
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
|
|
2229
1964
|
};
|
|
2230
1965
|
if (includeInstance) {
|
|
2231
1966
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2250,11 +1985,6 @@ var require_avs_pb = __commonJS({
|
|
|
2250
1985
|
reader.readMessage(value, proto.aggregator.EventTrigger.Config.deserializeBinaryFromReader);
|
|
2251
1986
|
msg.setConfig(value);
|
|
2252
1987
|
break;
|
|
2253
|
-
case 2:
|
|
2254
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
2255
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
2256
|
-
msg.setInput(value);
|
|
2257
|
-
break;
|
|
2258
1988
|
default:
|
|
2259
1989
|
reader.skipField();
|
|
2260
1990
|
break;
|
|
@@ -2277,14 +2007,6 @@ var require_avs_pb = __commonJS({
|
|
|
2277
2007
|
proto.aggregator.EventTrigger.Config.serializeBinaryToWriter
|
|
2278
2008
|
);
|
|
2279
2009
|
}
|
|
2280
|
-
f = message.getInput();
|
|
2281
|
-
if (f != null) {
|
|
2282
|
-
writer.writeMessage(
|
|
2283
|
-
2,
|
|
2284
|
-
f,
|
|
2285
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
2286
|
-
);
|
|
2287
|
-
}
|
|
2288
2010
|
};
|
|
2289
2011
|
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 5, 6];
|
|
2290
2012
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2859,29 +2581,13 @@ var require_avs_pb = __commonJS({
|
|
|
2859
2581
|
proto.aggregator.EventTrigger.prototype.hasConfig = function() {
|
|
2860
2582
|
return jspb.Message.getField(this, 1) != null;
|
|
2861
2583
|
};
|
|
2862
|
-
proto.aggregator.EventTrigger.prototype.getInput = function() {
|
|
2863
|
-
return (
|
|
2864
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
2865
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
2866
|
-
);
|
|
2867
|
-
};
|
|
2868
|
-
proto.aggregator.EventTrigger.prototype.setInput = function(value) {
|
|
2869
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2870
|
-
};
|
|
2871
|
-
proto.aggregator.EventTrigger.prototype.clearInput = function() {
|
|
2872
|
-
return this.setInput(void 0);
|
|
2873
|
-
};
|
|
2874
|
-
proto.aggregator.EventTrigger.prototype.hasInput = function() {
|
|
2875
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2876
|
-
};
|
|
2877
2584
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2878
2585
|
proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2879
2586
|
return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
|
|
2880
2587
|
};
|
|
2881
2588
|
proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
|
|
2882
2589
|
var f, obj = {
|
|
2883
|
-
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
2884
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2590
|
+
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
2885
2591
|
};
|
|
2886
2592
|
if (includeInstance) {
|
|
2887
2593
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2906,11 +2612,6 @@ var require_avs_pb = __commonJS({
|
|
|
2906
2612
|
reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
|
|
2907
2613
|
msg.setConfig(value);
|
|
2908
2614
|
break;
|
|
2909
|
-
case 2:
|
|
2910
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
2911
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
2912
|
-
msg.setInput(value);
|
|
2913
|
-
break;
|
|
2914
2615
|
default:
|
|
2915
2616
|
reader.skipField();
|
|
2916
2617
|
break;
|
|
@@ -2933,14 +2634,6 @@ var require_avs_pb = __commonJS({
|
|
|
2933
2634
|
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
|
|
2934
2635
|
);
|
|
2935
2636
|
}
|
|
2936
|
-
f = message.getInput();
|
|
2937
|
-
if (f != null) {
|
|
2938
|
-
writer.writeMessage(
|
|
2939
|
-
2,
|
|
2940
|
-
f,
|
|
2941
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
2942
|
-
);
|
|
2943
|
-
}
|
|
2944
2637
|
};
|
|
2945
2638
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2946
2639
|
proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3069,9 +2762,7 @@ var require_avs_pb = __commonJS({
|
|
|
3069
2762
|
};
|
|
3070
2763
|
proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
|
|
3071
2764
|
var f, obj = {
|
|
3072
|
-
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3073
|
-
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
3074
|
-
pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
|
|
2765
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3075
2766
|
};
|
|
3076
2767
|
if (includeInstance) {
|
|
3077
2768
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3096,18 +2787,6 @@ var require_avs_pb = __commonJS({
|
|
|
3096
2787
|
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3097
2788
|
msg.setData(value);
|
|
3098
2789
|
break;
|
|
3099
|
-
case 2:
|
|
3100
|
-
var value = msg.getHeadersMap();
|
|
3101
|
-
reader.readMessage(value, function(message, reader2) {
|
|
3102
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
3103
|
-
});
|
|
3104
|
-
break;
|
|
3105
|
-
case 3:
|
|
3106
|
-
var value = msg.getPathparamsMap();
|
|
3107
|
-
reader.readMessage(value, function(message, reader2) {
|
|
3108
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
3109
|
-
});
|
|
3110
|
-
break;
|
|
3111
2790
|
default:
|
|
3112
2791
|
reader.skipField();
|
|
3113
2792
|
break;
|
|
@@ -3130,14 +2809,6 @@ var require_avs_pb = __commonJS({
|
|
|
3130
2809
|
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3131
2810
|
);
|
|
3132
2811
|
}
|
|
3133
|
-
f = message.getHeadersMap(true);
|
|
3134
|
-
if (f && f.getLength() > 0) {
|
|
3135
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3136
|
-
}
|
|
3137
|
-
f = message.getPathparamsMap(true);
|
|
3138
|
-
if (f && f.getLength() > 0) {
|
|
3139
|
-
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3140
|
-
}
|
|
3141
2812
|
};
|
|
3142
2813
|
proto.aggregator.ManualTrigger.Output.prototype.getData = function() {
|
|
3143
2814
|
return (
|
|
@@ -3154,36 +2825,6 @@ var require_avs_pb = __commonJS({
|
|
|
3154
2825
|
proto.aggregator.ManualTrigger.Output.prototype.hasData = function() {
|
|
3155
2826
|
return jspb.Message.getField(this, 1) != null;
|
|
3156
2827
|
};
|
|
3157
|
-
proto.aggregator.ManualTrigger.Output.prototype.getHeadersMap = function(opt_noLazyCreate) {
|
|
3158
|
-
return (
|
|
3159
|
-
/** @type {!jspb.Map<string,string>} */
|
|
3160
|
-
jspb.Message.getMapField(
|
|
3161
|
-
this,
|
|
3162
|
-
2,
|
|
3163
|
-
opt_noLazyCreate,
|
|
3164
|
-
null
|
|
3165
|
-
)
|
|
3166
|
-
);
|
|
3167
|
-
};
|
|
3168
|
-
proto.aggregator.ManualTrigger.Output.prototype.clearHeadersMap = function() {
|
|
3169
|
-
this.getHeadersMap().clear();
|
|
3170
|
-
return this;
|
|
3171
|
-
};
|
|
3172
|
-
proto.aggregator.ManualTrigger.Output.prototype.getPathparamsMap = function(opt_noLazyCreate) {
|
|
3173
|
-
return (
|
|
3174
|
-
/** @type {!jspb.Map<string,string>} */
|
|
3175
|
-
jspb.Message.getMapField(
|
|
3176
|
-
this,
|
|
3177
|
-
3,
|
|
3178
|
-
opt_noLazyCreate,
|
|
3179
|
-
null
|
|
3180
|
-
)
|
|
3181
|
-
);
|
|
3182
|
-
};
|
|
3183
|
-
proto.aggregator.ManualTrigger.Output.prototype.clearPathparamsMap = function() {
|
|
3184
|
-
this.getPathparamsMap().clear();
|
|
3185
|
-
return this;
|
|
3186
|
-
};
|
|
3187
2828
|
proto.aggregator.ManualTrigger.prototype.getConfig = function() {
|
|
3188
2829
|
return (
|
|
3189
2830
|
/** @type{?proto.aggregator.ManualTrigger.Config} */
|
|
@@ -3199,21 +2840,6 @@ var require_avs_pb = __commonJS({
|
|
|
3199
2840
|
proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
|
|
3200
2841
|
return jspb.Message.getField(this, 1) != null;
|
|
3201
2842
|
};
|
|
3202
|
-
proto.aggregator.ManualTrigger.prototype.getInput = function() {
|
|
3203
|
-
return (
|
|
3204
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3205
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3206
|
-
);
|
|
3207
|
-
};
|
|
3208
|
-
proto.aggregator.ManualTrigger.prototype.setInput = function(value) {
|
|
3209
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3210
|
-
};
|
|
3211
|
-
proto.aggregator.ManualTrigger.prototype.clearInput = function() {
|
|
3212
|
-
return this.setInput(void 0);
|
|
3213
|
-
};
|
|
3214
|
-
proto.aggregator.ManualTrigger.prototype.hasInput = function() {
|
|
3215
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3216
|
-
};
|
|
3217
2843
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
3218
2844
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
3219
2845
|
TRIGGER_TYPE_NOT_SET: 0,
|
|
@@ -3242,8 +2868,7 @@ var require_avs_pb = __commonJS({
|
|
|
3242
2868
|
cron: (f = msg.getCron()) && proto.aggregator.CronTrigger.toObject(includeInstance, f),
|
|
3243
2869
|
block: (f = msg.getBlock()) && proto.aggregator.BlockTrigger.toObject(includeInstance, f),
|
|
3244
2870
|
event: (f = msg.getEvent()) && proto.aggregator.EventTrigger.toObject(includeInstance, f),
|
|
3245
|
-
id: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3246
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2871
|
+
id: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3247
2872
|
};
|
|
3248
2873
|
if (includeInstance) {
|
|
3249
2874
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3309,11 +2934,6 @@ var require_avs_pb = __commonJS({
|
|
|
3309
2934
|
);
|
|
3310
2935
|
msg.setId(value);
|
|
3311
2936
|
break;
|
|
3312
|
-
case 9:
|
|
3313
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
3314
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3315
|
-
msg.setInput(value);
|
|
3316
|
-
break;
|
|
3317
2937
|
default:
|
|
3318
2938
|
reader.skipField();
|
|
3319
2939
|
break;
|
|
@@ -3389,14 +3009,6 @@ var require_avs_pb = __commonJS({
|
|
|
3389
3009
|
f
|
|
3390
3010
|
);
|
|
3391
3011
|
}
|
|
3392
|
-
f = message.getInput();
|
|
3393
|
-
if (f != null) {
|
|
3394
|
-
writer.writeMessage(
|
|
3395
|
-
9,
|
|
3396
|
-
f,
|
|
3397
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3398
|
-
);
|
|
3399
|
-
}
|
|
3400
3012
|
};
|
|
3401
3013
|
proto.aggregator.TaskTrigger.prototype.getName = function() {
|
|
3402
3014
|
return (
|
|
@@ -3500,29 +3112,13 @@ var require_avs_pb = __commonJS({
|
|
|
3500
3112
|
proto.aggregator.TaskTrigger.prototype.setId = function(value) {
|
|
3501
3113
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3502
3114
|
};
|
|
3503
|
-
proto.aggregator.TaskTrigger.prototype.getInput = function() {
|
|
3504
|
-
return (
|
|
3505
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3506
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 9)
|
|
3507
|
-
);
|
|
3508
|
-
};
|
|
3509
|
-
proto.aggregator.TaskTrigger.prototype.setInput = function(value) {
|
|
3510
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
3511
|
-
};
|
|
3512
|
-
proto.aggregator.TaskTrigger.prototype.clearInput = function() {
|
|
3513
|
-
return this.setInput(void 0);
|
|
3514
|
-
};
|
|
3515
|
-
proto.aggregator.TaskTrigger.prototype.hasInput = function() {
|
|
3516
|
-
return jspb.Message.getField(this, 9) != null;
|
|
3517
|
-
};
|
|
3518
3115
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3519
3116
|
proto.aggregator.ETHTransferNode.prototype.toObject = function(opt_includeInstance) {
|
|
3520
3117
|
return proto.aggregator.ETHTransferNode.toObject(opt_includeInstance, this);
|
|
3521
3118
|
};
|
|
3522
3119
|
proto.aggregator.ETHTransferNode.toObject = function(includeInstance, msg) {
|
|
3523
3120
|
var f, obj = {
|
|
3524
|
-
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
|
|
3525
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3121
|
+
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
|
|
3526
3122
|
};
|
|
3527
3123
|
if (includeInstance) {
|
|
3528
3124
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3547,11 +3143,6 @@ var require_avs_pb = __commonJS({
|
|
|
3547
3143
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Config.deserializeBinaryFromReader);
|
|
3548
3144
|
msg.setConfig(value);
|
|
3549
3145
|
break;
|
|
3550
|
-
case 2:
|
|
3551
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
3552
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3553
|
-
msg.setInput(value);
|
|
3554
|
-
break;
|
|
3555
3146
|
default:
|
|
3556
3147
|
reader.skipField();
|
|
3557
3148
|
break;
|
|
@@ -3574,14 +3165,6 @@ var require_avs_pb = __commonJS({
|
|
|
3574
3165
|
proto.aggregator.ETHTransferNode.Config.serializeBinaryToWriter
|
|
3575
3166
|
);
|
|
3576
3167
|
}
|
|
3577
|
-
f = message.getInput();
|
|
3578
|
-
if (f != null) {
|
|
3579
|
-
writer.writeMessage(
|
|
3580
|
-
2,
|
|
3581
|
-
f,
|
|
3582
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3583
|
-
);
|
|
3584
|
-
}
|
|
3585
3168
|
};
|
|
3586
3169
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3587
3170
|
proto.aggregator.ETHTransferNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3677,7 +3260,7 @@ var require_avs_pb = __commonJS({
|
|
|
3677
3260
|
};
|
|
3678
3261
|
proto.aggregator.ETHTransferNode.Output.toObject = function(includeInstance, msg) {
|
|
3679
3262
|
var f, obj = {
|
|
3680
|
-
|
|
3263
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3681
3264
|
};
|
|
3682
3265
|
if (includeInstance) {
|
|
3683
3266
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3698,11 +3281,9 @@ var require_avs_pb = __commonJS({
|
|
|
3698
3281
|
var field = reader.getFieldNumber();
|
|
3699
3282
|
switch (field) {
|
|
3700
3283
|
case 1:
|
|
3701
|
-
var value = (
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
);
|
|
3705
|
-
msg.setTransactionHash(value);
|
|
3284
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3285
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3286
|
+
msg.setData(value);
|
|
3706
3287
|
break;
|
|
3707
3288
|
default:
|
|
3708
3289
|
reader.skipField();
|
|
@@ -3718,22 +3299,29 @@ var require_avs_pb = __commonJS({
|
|
|
3718
3299
|
};
|
|
3719
3300
|
proto.aggregator.ETHTransferNode.Output.serializeBinaryToWriter = function(message, writer) {
|
|
3720
3301
|
var f = void 0;
|
|
3721
|
-
f = message.
|
|
3722
|
-
if (f
|
|
3723
|
-
writer.
|
|
3302
|
+
f = message.getData();
|
|
3303
|
+
if (f != null) {
|
|
3304
|
+
writer.writeMessage(
|
|
3724
3305
|
1,
|
|
3725
|
-
f
|
|
3306
|
+
f,
|
|
3307
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3726
3308
|
);
|
|
3727
3309
|
}
|
|
3728
3310
|
};
|
|
3729
|
-
proto.aggregator.ETHTransferNode.Output.prototype.
|
|
3311
|
+
proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
|
|
3730
3312
|
return (
|
|
3731
|
-
/** @type
|
|
3732
|
-
jspb.Message.
|
|
3313
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3314
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
3733
3315
|
);
|
|
3734
3316
|
};
|
|
3735
|
-
proto.aggregator.ETHTransferNode.Output.prototype.
|
|
3736
|
-
return jspb.Message.
|
|
3317
|
+
proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
|
|
3318
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3319
|
+
};
|
|
3320
|
+
proto.aggregator.ETHTransferNode.Output.prototype.clearData = function() {
|
|
3321
|
+
return this.setData(void 0);
|
|
3322
|
+
};
|
|
3323
|
+
proto.aggregator.ETHTransferNode.Output.prototype.hasData = function() {
|
|
3324
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3737
3325
|
};
|
|
3738
3326
|
proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
|
|
3739
3327
|
return (
|
|
@@ -3750,29 +3338,13 @@ var require_avs_pb = __commonJS({
|
|
|
3750
3338
|
proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
|
|
3751
3339
|
return jspb.Message.getField(this, 1) != null;
|
|
3752
3340
|
};
|
|
3753
|
-
proto.aggregator.ETHTransferNode.prototype.getInput = function() {
|
|
3754
|
-
return (
|
|
3755
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3756
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3757
|
-
);
|
|
3758
|
-
};
|
|
3759
|
-
proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
|
|
3760
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3761
|
-
};
|
|
3762
|
-
proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
|
|
3763
|
-
return this.setInput(void 0);
|
|
3764
|
-
};
|
|
3765
|
-
proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
|
|
3766
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3767
|
-
};
|
|
3768
3341
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3769
3342
|
proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
|
|
3770
3343
|
return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
|
|
3771
3344
|
};
|
|
3772
3345
|
proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
|
|
3773
3346
|
var f, obj = {
|
|
3774
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3775
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3347
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3776
3348
|
};
|
|
3777
3349
|
if (includeInstance) {
|
|
3778
3350
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3797,11 +3369,6 @@ var require_avs_pb = __commonJS({
|
|
|
3797
3369
|
reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
|
|
3798
3370
|
msg.setConfig(value);
|
|
3799
3371
|
break;
|
|
3800
|
-
case 2:
|
|
3801
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
3802
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3803
|
-
msg.setInput(value);
|
|
3804
|
-
break;
|
|
3805
3372
|
default:
|
|
3806
3373
|
reader.skipField();
|
|
3807
3374
|
break;
|
|
@@ -3824,14 +3391,6 @@ var require_avs_pb = __commonJS({
|
|
|
3824
3391
|
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
|
|
3825
3392
|
);
|
|
3826
3393
|
}
|
|
3827
|
-
f = message.getInput();
|
|
3828
|
-
if (f != null) {
|
|
3829
|
-
writer.writeMessage(
|
|
3830
|
-
2,
|
|
3831
|
-
f,
|
|
3832
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3833
|
-
);
|
|
3834
|
-
}
|
|
3835
3394
|
};
|
|
3836
3395
|
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3837
3396
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -5249,29 +4808,13 @@ var require_avs_pb = __commonJS({
|
|
|
5249
4808
|
proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
|
|
5250
4809
|
return jspb.Message.getField(this, 1) != null;
|
|
5251
4810
|
};
|
|
5252
|
-
proto.aggregator.ContractWriteNode.prototype.getInput = function() {
|
|
5253
|
-
return (
|
|
5254
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
5255
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5256
|
-
);
|
|
5257
|
-
};
|
|
5258
|
-
proto.aggregator.ContractWriteNode.prototype.setInput = function(value) {
|
|
5259
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
5260
|
-
};
|
|
5261
|
-
proto.aggregator.ContractWriteNode.prototype.clearInput = function() {
|
|
5262
|
-
return this.setInput(void 0);
|
|
5263
|
-
};
|
|
5264
|
-
proto.aggregator.ContractWriteNode.prototype.hasInput = function() {
|
|
5265
|
-
return jspb.Message.getField(this, 2) != null;
|
|
5266
|
-
};
|
|
5267
4811
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5268
4812
|
proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
|
|
5269
4813
|
return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
|
|
5270
4814
|
};
|
|
5271
4815
|
proto.aggregator.ContractReadNode.toObject = function(includeInstance, msg) {
|
|
5272
4816
|
var f, obj = {
|
|
5273
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
|
|
5274
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
4817
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
|
|
5275
4818
|
};
|
|
5276
4819
|
if (includeInstance) {
|
|
5277
4820
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5296,11 +4839,6 @@ var require_avs_pb = __commonJS({
|
|
|
5296
4839
|
reader.readMessage(value, proto.aggregator.ContractReadNode.Config.deserializeBinaryFromReader);
|
|
5297
4840
|
msg.setConfig(value);
|
|
5298
4841
|
break;
|
|
5299
|
-
case 2:
|
|
5300
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
5301
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5302
|
-
msg.setInput(value);
|
|
5303
|
-
break;
|
|
5304
4842
|
default:
|
|
5305
4843
|
reader.skipField();
|
|
5306
4844
|
break;
|
|
@@ -5323,14 +4861,6 @@ var require_avs_pb = __commonJS({
|
|
|
5323
4861
|
proto.aggregator.ContractReadNode.Config.serializeBinaryToWriter
|
|
5324
4862
|
);
|
|
5325
4863
|
}
|
|
5326
|
-
f = message.getInput();
|
|
5327
|
-
if (f != null) {
|
|
5328
|
-
writer.writeMessage(
|
|
5329
|
-
2,
|
|
5330
|
-
f,
|
|
5331
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5332
|
-
);
|
|
5333
|
-
}
|
|
5334
4864
|
};
|
|
5335
4865
|
proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3];
|
|
5336
4866
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -5915,29 +5445,13 @@ var require_avs_pb = __commonJS({
|
|
|
5915
5445
|
proto.aggregator.ContractReadNode.prototype.hasConfig = function() {
|
|
5916
5446
|
return jspb.Message.getField(this, 1) != null;
|
|
5917
5447
|
};
|
|
5918
|
-
proto.aggregator.ContractReadNode.prototype.getInput = function() {
|
|
5919
|
-
return (
|
|
5920
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
5921
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5922
|
-
);
|
|
5923
|
-
};
|
|
5924
|
-
proto.aggregator.ContractReadNode.prototype.setInput = function(value) {
|
|
5925
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
5926
|
-
};
|
|
5927
|
-
proto.aggregator.ContractReadNode.prototype.clearInput = function() {
|
|
5928
|
-
return this.setInput(void 0);
|
|
5929
|
-
};
|
|
5930
|
-
proto.aggregator.ContractReadNode.prototype.hasInput = function() {
|
|
5931
|
-
return jspb.Message.getField(this, 2) != null;
|
|
5932
|
-
};
|
|
5933
5448
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5934
5449
|
proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
|
|
5935
5450
|
return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
|
|
5936
5451
|
};
|
|
5937
5452
|
proto.aggregator.GraphQLQueryNode.toObject = function(includeInstance, msg) {
|
|
5938
5453
|
var f, obj = {
|
|
5939
|
-
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
|
|
5940
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5454
|
+
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
|
|
5941
5455
|
};
|
|
5942
5456
|
if (includeInstance) {
|
|
5943
5457
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5962,11 +5476,6 @@ var require_avs_pb = __commonJS({
|
|
|
5962
5476
|
reader.readMessage(value, proto.aggregator.GraphQLQueryNode.Config.deserializeBinaryFromReader);
|
|
5963
5477
|
msg.setConfig(value);
|
|
5964
5478
|
break;
|
|
5965
|
-
case 2:
|
|
5966
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
5967
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5968
|
-
msg.setInput(value);
|
|
5969
|
-
break;
|
|
5970
5479
|
default:
|
|
5971
5480
|
reader.skipField();
|
|
5972
5481
|
break;
|
|
@@ -5989,14 +5498,6 @@ var require_avs_pb = __commonJS({
|
|
|
5989
5498
|
proto.aggregator.GraphQLQueryNode.Config.serializeBinaryToWriter
|
|
5990
5499
|
);
|
|
5991
5500
|
}
|
|
5992
|
-
f = message.getInput();
|
|
5993
|
-
if (f != null) {
|
|
5994
|
-
writer.writeMessage(
|
|
5995
|
-
2,
|
|
5996
|
-
f,
|
|
5997
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5998
|
-
);
|
|
5999
|
-
}
|
|
6000
5501
|
};
|
|
6001
5502
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6002
5503
|
proto.aggregator.GraphQLQueryNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6118,7 +5619,7 @@ var require_avs_pb = __commonJS({
|
|
|
6118
5619
|
};
|
|
6119
5620
|
proto.aggregator.GraphQLQueryNode.Output.toObject = function(includeInstance, msg) {
|
|
6120
5621
|
var f, obj = {
|
|
6121
|
-
data: (f = msg.getData()) &&
|
|
5622
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6122
5623
|
};
|
|
6123
5624
|
if (includeInstance) {
|
|
6124
5625
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6139,8 +5640,8 @@ var require_avs_pb = __commonJS({
|
|
|
6139
5640
|
var field = reader.getFieldNumber();
|
|
6140
5641
|
switch (field) {
|
|
6141
5642
|
case 1:
|
|
6142
|
-
var value = new
|
|
6143
|
-
reader.readMessage(value,
|
|
5643
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
5644
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6144
5645
|
msg.setData(value);
|
|
6145
5646
|
break;
|
|
6146
5647
|
default:
|
|
@@ -6162,14 +5663,14 @@ var require_avs_pb = __commonJS({
|
|
|
6162
5663
|
writer.writeMessage(
|
|
6163
5664
|
1,
|
|
6164
5665
|
f,
|
|
6165
|
-
|
|
5666
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6166
5667
|
);
|
|
6167
5668
|
}
|
|
6168
5669
|
};
|
|
6169
5670
|
proto.aggregator.GraphQLQueryNode.Output.prototype.getData = function() {
|
|
6170
5671
|
return (
|
|
6171
|
-
/** @type{?proto.google.protobuf.
|
|
6172
|
-
jspb.Message.getWrapperField(this,
|
|
5672
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5673
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
6173
5674
|
);
|
|
6174
5675
|
};
|
|
6175
5676
|
proto.aggregator.GraphQLQueryNode.Output.prototype.setData = function(value) {
|
|
@@ -6196,29 +5697,13 @@ var require_avs_pb = __commonJS({
|
|
|
6196
5697
|
proto.aggregator.GraphQLQueryNode.prototype.hasConfig = function() {
|
|
6197
5698
|
return jspb.Message.getField(this, 1) != null;
|
|
6198
5699
|
};
|
|
6199
|
-
proto.aggregator.GraphQLQueryNode.prototype.getInput = function() {
|
|
6200
|
-
return (
|
|
6201
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
6202
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6203
|
-
);
|
|
6204
|
-
};
|
|
6205
|
-
proto.aggregator.GraphQLQueryNode.prototype.setInput = function(value) {
|
|
6206
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
6207
|
-
};
|
|
6208
|
-
proto.aggregator.GraphQLQueryNode.prototype.clearInput = function() {
|
|
6209
|
-
return this.setInput(void 0);
|
|
6210
|
-
};
|
|
6211
|
-
proto.aggregator.GraphQLQueryNode.prototype.hasInput = function() {
|
|
6212
|
-
return jspb.Message.getField(this, 2) != null;
|
|
6213
|
-
};
|
|
6214
5700
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6215
5701
|
proto.aggregator.RestAPINode.prototype.toObject = function(opt_includeInstance) {
|
|
6216
5702
|
return proto.aggregator.RestAPINode.toObject(opt_includeInstance, this);
|
|
6217
5703
|
};
|
|
6218
5704
|
proto.aggregator.RestAPINode.toObject = function(includeInstance, msg) {
|
|
6219
5705
|
var f, obj = {
|
|
6220
|
-
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
|
|
6221
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5706
|
+
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
|
|
6222
5707
|
};
|
|
6223
5708
|
if (includeInstance) {
|
|
6224
5709
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6243,11 +5728,6 @@ var require_avs_pb = __commonJS({
|
|
|
6243
5728
|
reader.readMessage(value, proto.aggregator.RestAPINode.Config.deserializeBinaryFromReader);
|
|
6244
5729
|
msg.setConfig(value);
|
|
6245
5730
|
break;
|
|
6246
|
-
case 2:
|
|
6247
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
6248
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6249
|
-
msg.setInput(value);
|
|
6250
|
-
break;
|
|
6251
5731
|
default:
|
|
6252
5732
|
reader.skipField();
|
|
6253
5733
|
break;
|
|
@@ -6270,14 +5750,6 @@ var require_avs_pb = __commonJS({
|
|
|
6270
5750
|
proto.aggregator.RestAPINode.Config.serializeBinaryToWriter
|
|
6271
5751
|
);
|
|
6272
5752
|
}
|
|
6273
|
-
f = message.getInput();
|
|
6274
|
-
if (f != null) {
|
|
6275
|
-
writer.writeMessage(
|
|
6276
|
-
2,
|
|
6277
|
-
f,
|
|
6278
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6279
|
-
);
|
|
6280
|
-
}
|
|
6281
5753
|
};
|
|
6282
5754
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6283
5755
|
proto.aggregator.RestAPINode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6501,29 +5973,13 @@ var require_avs_pb = __commonJS({
|
|
|
6501
5973
|
proto.aggregator.RestAPINode.prototype.hasConfig = function() {
|
|
6502
5974
|
return jspb.Message.getField(this, 1) != null;
|
|
6503
5975
|
};
|
|
6504
|
-
proto.aggregator.RestAPINode.prototype.getInput = function() {
|
|
6505
|
-
return (
|
|
6506
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
6507
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6508
|
-
);
|
|
6509
|
-
};
|
|
6510
|
-
proto.aggregator.RestAPINode.prototype.setInput = function(value) {
|
|
6511
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
6512
|
-
};
|
|
6513
|
-
proto.aggregator.RestAPINode.prototype.clearInput = function() {
|
|
6514
|
-
return this.setInput(void 0);
|
|
6515
|
-
};
|
|
6516
|
-
proto.aggregator.RestAPINode.prototype.hasInput = function() {
|
|
6517
|
-
return jspb.Message.getField(this, 2) != null;
|
|
6518
|
-
};
|
|
6519
5976
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6520
5977
|
proto.aggregator.CustomCodeNode.prototype.toObject = function(opt_includeInstance) {
|
|
6521
5978
|
return proto.aggregator.CustomCodeNode.toObject(opt_includeInstance, this);
|
|
6522
5979
|
};
|
|
6523
5980
|
proto.aggregator.CustomCodeNode.toObject = function(includeInstance, msg) {
|
|
6524
5981
|
var f, obj = {
|
|
6525
|
-
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
|
|
6526
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5982
|
+
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
|
|
6527
5983
|
};
|
|
6528
5984
|
if (includeInstance) {
|
|
6529
5985
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6548,11 +6004,6 @@ var require_avs_pb = __commonJS({
|
|
|
6548
6004
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.Config.deserializeBinaryFromReader);
|
|
6549
6005
|
msg.setConfig(value);
|
|
6550
6006
|
break;
|
|
6551
|
-
case 2:
|
|
6552
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
6553
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6554
|
-
msg.setInput(value);
|
|
6555
|
-
break;
|
|
6556
6007
|
default:
|
|
6557
6008
|
reader.skipField();
|
|
6558
6009
|
break;
|
|
@@ -6575,14 +6026,6 @@ var require_avs_pb = __commonJS({
|
|
|
6575
6026
|
proto.aggregator.CustomCodeNode.Config.serializeBinaryToWriter
|
|
6576
6027
|
);
|
|
6577
6028
|
}
|
|
6578
|
-
f = message.getInput();
|
|
6579
|
-
if (f != null) {
|
|
6580
|
-
writer.writeMessage(
|
|
6581
|
-
2,
|
|
6582
|
-
f,
|
|
6583
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6584
|
-
);
|
|
6585
|
-
}
|
|
6586
6029
|
};
|
|
6587
6030
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6588
6031
|
proto.aggregator.CustomCodeNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6756,29 +6199,13 @@ var require_avs_pb = __commonJS({
|
|
|
6756
6199
|
proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
|
|
6757
6200
|
return jspb.Message.getField(this, 1) != null;
|
|
6758
6201
|
};
|
|
6759
|
-
proto.aggregator.CustomCodeNode.prototype.getInput = function() {
|
|
6760
|
-
return (
|
|
6761
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
6762
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6763
|
-
);
|
|
6764
|
-
};
|
|
6765
|
-
proto.aggregator.CustomCodeNode.prototype.setInput = function(value) {
|
|
6766
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
6767
|
-
};
|
|
6768
|
-
proto.aggregator.CustomCodeNode.prototype.clearInput = function() {
|
|
6769
|
-
return this.setInput(void 0);
|
|
6770
|
-
};
|
|
6771
|
-
proto.aggregator.CustomCodeNode.prototype.hasInput = function() {
|
|
6772
|
-
return jspb.Message.getField(this, 2) != null;
|
|
6773
|
-
};
|
|
6774
6202
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6775
6203
|
proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
|
|
6776
6204
|
return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
|
|
6777
6205
|
};
|
|
6778
6206
|
proto.aggregator.BranchNode.toObject = function(includeInstance, msg) {
|
|
6779
6207
|
var f, obj = {
|
|
6780
|
-
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
|
|
6781
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6208
|
+
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
|
|
6782
6209
|
};
|
|
6783
6210
|
if (includeInstance) {
|
|
6784
6211
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6803,11 +6230,6 @@ var require_avs_pb = __commonJS({
|
|
|
6803
6230
|
reader.readMessage(value, proto.aggregator.BranchNode.Config.deserializeBinaryFromReader);
|
|
6804
6231
|
msg.setConfig(value);
|
|
6805
6232
|
break;
|
|
6806
|
-
case 2:
|
|
6807
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
6808
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6809
|
-
msg.setInput(value);
|
|
6810
|
-
break;
|
|
6811
6233
|
default:
|
|
6812
6234
|
reader.skipField();
|
|
6813
6235
|
break;
|
|
@@ -6830,14 +6252,6 @@ var require_avs_pb = __commonJS({
|
|
|
6830
6252
|
proto.aggregator.BranchNode.Config.serializeBinaryToWriter
|
|
6831
6253
|
);
|
|
6832
6254
|
}
|
|
6833
|
-
f = message.getInput();
|
|
6834
|
-
if (f != null) {
|
|
6835
|
-
writer.writeMessage(
|
|
6836
|
-
2,
|
|
6837
|
-
f,
|
|
6838
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6839
|
-
);
|
|
6840
|
-
}
|
|
6841
6255
|
};
|
|
6842
6256
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6843
6257
|
proto.aggregator.BranchNode.Condition.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7031,7 +6445,7 @@ var require_avs_pb = __commonJS({
|
|
|
7031
6445
|
};
|
|
7032
6446
|
proto.aggregator.BranchNode.Output.toObject = function(includeInstance, msg) {
|
|
7033
6447
|
var f, obj = {
|
|
7034
|
-
|
|
6448
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7035
6449
|
};
|
|
7036
6450
|
if (includeInstance) {
|
|
7037
6451
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7052,11 +6466,9 @@ var require_avs_pb = __commonJS({
|
|
|
7052
6466
|
var field = reader.getFieldNumber();
|
|
7053
6467
|
switch (field) {
|
|
7054
6468
|
case 1:
|
|
7055
|
-
var value = (
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
);
|
|
7059
|
-
msg.setConditionId(value);
|
|
6469
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6470
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6471
|
+
msg.setData(value);
|
|
7060
6472
|
break;
|
|
7061
6473
|
default:
|
|
7062
6474
|
reader.skipField();
|
|
@@ -7072,22 +6484,29 @@ var require_avs_pb = __commonJS({
|
|
|
7072
6484
|
};
|
|
7073
6485
|
proto.aggregator.BranchNode.Output.serializeBinaryToWriter = function(message, writer) {
|
|
7074
6486
|
var f = void 0;
|
|
7075
|
-
f = message.
|
|
7076
|
-
if (f
|
|
7077
|
-
writer.
|
|
6487
|
+
f = message.getData();
|
|
6488
|
+
if (f != null) {
|
|
6489
|
+
writer.writeMessage(
|
|
7078
6490
|
1,
|
|
7079
|
-
f
|
|
6491
|
+
f,
|
|
6492
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7080
6493
|
);
|
|
7081
6494
|
}
|
|
7082
6495
|
};
|
|
7083
|
-
proto.aggregator.BranchNode.Output.prototype.
|
|
6496
|
+
proto.aggregator.BranchNode.Output.prototype.getData = function() {
|
|
7084
6497
|
return (
|
|
7085
|
-
/** @type
|
|
7086
|
-
jspb.Message.
|
|
6498
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6499
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
7087
6500
|
);
|
|
7088
6501
|
};
|
|
7089
|
-
proto.aggregator.BranchNode.Output.prototype.
|
|
7090
|
-
return jspb.Message.
|
|
6502
|
+
proto.aggregator.BranchNode.Output.prototype.setData = function(value) {
|
|
6503
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
6504
|
+
};
|
|
6505
|
+
proto.aggregator.BranchNode.Output.prototype.clearData = function() {
|
|
6506
|
+
return this.setData(void 0);
|
|
6507
|
+
};
|
|
6508
|
+
proto.aggregator.BranchNode.Output.prototype.hasData = function() {
|
|
6509
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7091
6510
|
};
|
|
7092
6511
|
proto.aggregator.BranchNode.prototype.getConfig = function() {
|
|
7093
6512
|
return (
|
|
@@ -7104,29 +6523,13 @@ var require_avs_pb = __commonJS({
|
|
|
7104
6523
|
proto.aggregator.BranchNode.prototype.hasConfig = function() {
|
|
7105
6524
|
return jspb.Message.getField(this, 1) != null;
|
|
7106
6525
|
};
|
|
7107
|
-
proto.aggregator.BranchNode.prototype.getInput = function() {
|
|
7108
|
-
return (
|
|
7109
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
7110
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7111
|
-
);
|
|
7112
|
-
};
|
|
7113
|
-
proto.aggregator.BranchNode.prototype.setInput = function(value) {
|
|
7114
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
7115
|
-
};
|
|
7116
|
-
proto.aggregator.BranchNode.prototype.clearInput = function() {
|
|
7117
|
-
return this.setInput(void 0);
|
|
7118
|
-
};
|
|
7119
|
-
proto.aggregator.BranchNode.prototype.hasInput = function() {
|
|
7120
|
-
return jspb.Message.getField(this, 2) != null;
|
|
7121
|
-
};
|
|
7122
6526
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7123
6527
|
proto.aggregator.FilterNode.prototype.toObject = function(opt_includeInstance) {
|
|
7124
6528
|
return proto.aggregator.FilterNode.toObject(opt_includeInstance, this);
|
|
7125
6529
|
};
|
|
7126
6530
|
proto.aggregator.FilterNode.toObject = function(includeInstance, msg) {
|
|
7127
6531
|
var f, obj = {
|
|
7128
|
-
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
|
|
7129
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6532
|
+
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
|
|
7130
6533
|
};
|
|
7131
6534
|
if (includeInstance) {
|
|
7132
6535
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7151,11 +6554,6 @@ var require_avs_pb = __commonJS({
|
|
|
7151
6554
|
reader.readMessage(value, proto.aggregator.FilterNode.Config.deserializeBinaryFromReader);
|
|
7152
6555
|
msg.setConfig(value);
|
|
7153
6556
|
break;
|
|
7154
|
-
case 2:
|
|
7155
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
7156
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7157
|
-
msg.setInput(value);
|
|
7158
|
-
break;
|
|
7159
6557
|
default:
|
|
7160
6558
|
reader.skipField();
|
|
7161
6559
|
break;
|
|
@@ -7178,14 +6576,6 @@ var require_avs_pb = __commonJS({
|
|
|
7178
6576
|
proto.aggregator.FilterNode.Config.serializeBinaryToWriter
|
|
7179
6577
|
);
|
|
7180
6578
|
}
|
|
7181
|
-
f = message.getInput();
|
|
7182
|
-
if (f != null) {
|
|
7183
|
-
writer.writeMessage(
|
|
7184
|
-
2,
|
|
7185
|
-
f,
|
|
7186
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7187
|
-
);
|
|
7188
|
-
}
|
|
7189
6579
|
};
|
|
7190
6580
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7191
6581
|
proto.aggregator.FilterNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7194,7 +6584,7 @@ var require_avs_pb = __commonJS({
|
|
|
7194
6584
|
proto.aggregator.FilterNode.Config.toObject = function(includeInstance, msg) {
|
|
7195
6585
|
var f, obj = {
|
|
7196
6586
|
expression: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7197
|
-
|
|
6587
|
+
inputNodeName: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7198
6588
|
};
|
|
7199
6589
|
if (includeInstance) {
|
|
7200
6590
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7226,7 +6616,7 @@ var require_avs_pb = __commonJS({
|
|
|
7226
6616
|
/** @type {string} */
|
|
7227
6617
|
reader.readString()
|
|
7228
6618
|
);
|
|
7229
|
-
msg.
|
|
6619
|
+
msg.setInputNodeName(value);
|
|
7230
6620
|
break;
|
|
7231
6621
|
default:
|
|
7232
6622
|
reader.skipField();
|
|
@@ -7249,7 +6639,7 @@ var require_avs_pb = __commonJS({
|
|
|
7249
6639
|
f
|
|
7250
6640
|
);
|
|
7251
6641
|
}
|
|
7252
|
-
f = message.
|
|
6642
|
+
f = message.getInputNodeName();
|
|
7253
6643
|
if (f.length > 0) {
|
|
7254
6644
|
writer.writeString(
|
|
7255
6645
|
2,
|
|
@@ -7266,13 +6656,13 @@ var require_avs_pb = __commonJS({
|
|
|
7266
6656
|
proto.aggregator.FilterNode.Config.prototype.setExpression = function(value) {
|
|
7267
6657
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7268
6658
|
};
|
|
7269
|
-
proto.aggregator.FilterNode.Config.prototype.
|
|
6659
|
+
proto.aggregator.FilterNode.Config.prototype.getInputNodeName = function() {
|
|
7270
6660
|
return (
|
|
7271
6661
|
/** @type {string} */
|
|
7272
6662
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
7273
6663
|
);
|
|
7274
6664
|
};
|
|
7275
|
-
proto.aggregator.FilterNode.Config.prototype.
|
|
6665
|
+
proto.aggregator.FilterNode.Config.prototype.setInputNodeName = function(value) {
|
|
7276
6666
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7277
6667
|
};
|
|
7278
6668
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -7281,7 +6671,7 @@ var require_avs_pb = __commonJS({
|
|
|
7281
6671
|
};
|
|
7282
6672
|
proto.aggregator.FilterNode.Output.toObject = function(includeInstance, msg) {
|
|
7283
6673
|
var f, obj = {
|
|
7284
|
-
data: (f = msg.getData()) &&
|
|
6674
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7285
6675
|
};
|
|
7286
6676
|
if (includeInstance) {
|
|
7287
6677
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7302,8 +6692,8 @@ var require_avs_pb = __commonJS({
|
|
|
7302
6692
|
var field = reader.getFieldNumber();
|
|
7303
6693
|
switch (field) {
|
|
7304
6694
|
case 1:
|
|
7305
|
-
var value = new
|
|
7306
|
-
reader.readMessage(value,
|
|
6695
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6696
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7307
6697
|
msg.setData(value);
|
|
7308
6698
|
break;
|
|
7309
6699
|
default:
|
|
@@ -7325,14 +6715,14 @@ var require_avs_pb = __commonJS({
|
|
|
7325
6715
|
writer.writeMessage(
|
|
7326
6716
|
1,
|
|
7327
6717
|
f,
|
|
7328
|
-
|
|
6718
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7329
6719
|
);
|
|
7330
6720
|
}
|
|
7331
6721
|
};
|
|
7332
6722
|
proto.aggregator.FilterNode.Output.prototype.getData = function() {
|
|
7333
6723
|
return (
|
|
7334
|
-
/** @type{?proto.google.protobuf.
|
|
7335
|
-
jspb.Message.getWrapperField(this,
|
|
6724
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6725
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
7336
6726
|
);
|
|
7337
6727
|
};
|
|
7338
6728
|
proto.aggregator.FilterNode.Output.prototype.setData = function(value) {
|
|
@@ -7359,21 +6749,6 @@ var require_avs_pb = __commonJS({
|
|
|
7359
6749
|
proto.aggregator.FilterNode.prototype.hasConfig = function() {
|
|
7360
6750
|
return jspb.Message.getField(this, 1) != null;
|
|
7361
6751
|
};
|
|
7362
|
-
proto.aggregator.FilterNode.prototype.getInput = function() {
|
|
7363
|
-
return (
|
|
7364
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
7365
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7366
|
-
);
|
|
7367
|
-
};
|
|
7368
|
-
proto.aggregator.FilterNode.prototype.setInput = function(value) {
|
|
7369
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
7370
|
-
};
|
|
7371
|
-
proto.aggregator.FilterNode.prototype.clearInput = function() {
|
|
7372
|
-
return this.setInput(void 0);
|
|
7373
|
-
};
|
|
7374
|
-
proto.aggregator.FilterNode.prototype.hasInput = function() {
|
|
7375
|
-
return jspb.Message.getField(this, 2) != null;
|
|
7376
|
-
};
|
|
7377
6752
|
proto.aggregator.LoopNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15]];
|
|
7378
6753
|
proto.aggregator.LoopNode.RunnerCase = {
|
|
7379
6754
|
RUNNER_NOT_SET: 0,
|
|
@@ -7402,8 +6777,7 @@ var require_avs_pb = __commonJS({
|
|
|
7402
6777
|
graphqlDataQuery: (f = msg.getGraphqlDataQuery()) && proto.aggregator.GraphQLQueryNode.toObject(includeInstance, f),
|
|
7403
6778
|
restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.toObject(includeInstance, f),
|
|
7404
6779
|
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
7405
|
-
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
|
|
7406
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6780
|
+
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
|
|
7407
6781
|
};
|
|
7408
6782
|
if (includeInstance) {
|
|
7409
6783
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7458,11 +6832,6 @@ var require_avs_pb = __commonJS({
|
|
|
7458
6832
|
reader.readMessage(value, proto.aggregator.LoopNode.Config.deserializeBinaryFromReader);
|
|
7459
6833
|
msg.setConfig(value);
|
|
7460
6834
|
break;
|
|
7461
|
-
case 2:
|
|
7462
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
7463
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7464
|
-
msg.setInput(value);
|
|
7465
|
-
break;
|
|
7466
6835
|
default:
|
|
7467
6836
|
reader.skipField();
|
|
7468
6837
|
break;
|
|
@@ -7533,14 +6902,6 @@ var require_avs_pb = __commonJS({
|
|
|
7533
6902
|
proto.aggregator.LoopNode.Config.serializeBinaryToWriter
|
|
7534
6903
|
);
|
|
7535
6904
|
}
|
|
7536
|
-
f = message.getInput();
|
|
7537
|
-
if (f != null) {
|
|
7538
|
-
writer.writeMessage(
|
|
7539
|
-
2,
|
|
7540
|
-
f,
|
|
7541
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7542
|
-
);
|
|
7543
|
-
}
|
|
7544
6905
|
};
|
|
7545
6906
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7546
6907
|
proto.aggregator.LoopNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7548,7 +6909,7 @@ var require_avs_pb = __commonJS({
|
|
|
7548
6909
|
};
|
|
7549
6910
|
proto.aggregator.LoopNode.Config.toObject = function(includeInstance, msg) {
|
|
7550
6911
|
var f, obj = {
|
|
7551
|
-
|
|
6912
|
+
inputNodeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7552
6913
|
iterVal: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7553
6914
|
iterKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7554
6915
|
executionMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
@@ -7576,7 +6937,7 @@ var require_avs_pb = __commonJS({
|
|
|
7576
6937
|
/** @type {string} */
|
|
7577
6938
|
reader.readString()
|
|
7578
6939
|
);
|
|
7579
|
-
msg.
|
|
6940
|
+
msg.setInputNodeName(value);
|
|
7580
6941
|
break;
|
|
7581
6942
|
case 2:
|
|
7582
6943
|
var value = (
|
|
@@ -7613,7 +6974,7 @@ var require_avs_pb = __commonJS({
|
|
|
7613
6974
|
};
|
|
7614
6975
|
proto.aggregator.LoopNode.Config.serializeBinaryToWriter = function(message, writer) {
|
|
7615
6976
|
var f = void 0;
|
|
7616
|
-
f = message.
|
|
6977
|
+
f = message.getInputNodeName();
|
|
7617
6978
|
if (f.length > 0) {
|
|
7618
6979
|
writer.writeString(
|
|
7619
6980
|
1,
|
|
@@ -7642,13 +7003,13 @@ var require_avs_pb = __commonJS({
|
|
|
7642
7003
|
);
|
|
7643
7004
|
}
|
|
7644
7005
|
};
|
|
7645
|
-
proto.aggregator.LoopNode.Config.prototype.
|
|
7006
|
+
proto.aggregator.LoopNode.Config.prototype.getInputNodeName = function() {
|
|
7646
7007
|
return (
|
|
7647
7008
|
/** @type {string} */
|
|
7648
7009
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
7649
7010
|
);
|
|
7650
7011
|
};
|
|
7651
|
-
proto.aggregator.LoopNode.Config.prototype.
|
|
7012
|
+
proto.aggregator.LoopNode.Config.prototype.setInputNodeName = function(value) {
|
|
7652
7013
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7653
7014
|
};
|
|
7654
7015
|
proto.aggregator.LoopNode.Config.prototype.getIterVal = function() {
|
|
@@ -7684,7 +7045,7 @@ var require_avs_pb = __commonJS({
|
|
|
7684
7045
|
};
|
|
7685
7046
|
proto.aggregator.LoopNode.Output.toObject = function(includeInstance, msg) {
|
|
7686
7047
|
var f, obj = {
|
|
7687
|
-
data:
|
|
7048
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7688
7049
|
};
|
|
7689
7050
|
if (includeInstance) {
|
|
7690
7051
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7705,10 +7066,8 @@ var require_avs_pb = __commonJS({
|
|
|
7705
7066
|
var field = reader.getFieldNumber();
|
|
7706
7067
|
switch (field) {
|
|
7707
7068
|
case 1:
|
|
7708
|
-
var value = (
|
|
7709
|
-
|
|
7710
|
-
reader.readString()
|
|
7711
|
-
);
|
|
7069
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
7070
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7712
7071
|
msg.setData(value);
|
|
7713
7072
|
break;
|
|
7714
7073
|
default:
|
|
@@ -7726,21 +7085,28 @@ var require_avs_pb = __commonJS({
|
|
|
7726
7085
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter = function(message, writer) {
|
|
7727
7086
|
var f = void 0;
|
|
7728
7087
|
f = message.getData();
|
|
7729
|
-
if (f
|
|
7730
|
-
writer.
|
|
7088
|
+
if (f != null) {
|
|
7089
|
+
writer.writeMessage(
|
|
7731
7090
|
1,
|
|
7732
|
-
f
|
|
7091
|
+
f,
|
|
7092
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7733
7093
|
);
|
|
7734
7094
|
}
|
|
7735
7095
|
};
|
|
7736
7096
|
proto.aggregator.LoopNode.Output.prototype.getData = function() {
|
|
7737
7097
|
return (
|
|
7738
|
-
/** @type
|
|
7739
|
-
jspb.Message.
|
|
7098
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7099
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
7740
7100
|
);
|
|
7741
7101
|
};
|
|
7742
7102
|
proto.aggregator.LoopNode.Output.prototype.setData = function(value) {
|
|
7743
|
-
return jspb.Message.
|
|
7103
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
7104
|
+
};
|
|
7105
|
+
proto.aggregator.LoopNode.Output.prototype.clearData = function() {
|
|
7106
|
+
return this.setData(void 0);
|
|
7107
|
+
};
|
|
7108
|
+
proto.aggregator.LoopNode.Output.prototype.hasData = function() {
|
|
7109
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7744
7110
|
};
|
|
7745
7111
|
proto.aggregator.LoopNode.prototype.getEthTransfer = function() {
|
|
7746
7112
|
return (
|
|
@@ -7847,21 +7213,6 @@ var require_avs_pb = __commonJS({
|
|
|
7847
7213
|
proto.aggregator.LoopNode.prototype.hasConfig = function() {
|
|
7848
7214
|
return jspb.Message.getField(this, 1) != null;
|
|
7849
7215
|
};
|
|
7850
|
-
proto.aggregator.LoopNode.prototype.getInput = function() {
|
|
7851
|
-
return (
|
|
7852
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
7853
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7854
|
-
);
|
|
7855
|
-
};
|
|
7856
|
-
proto.aggregator.LoopNode.prototype.setInput = function(value) {
|
|
7857
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
7858
|
-
};
|
|
7859
|
-
proto.aggregator.LoopNode.prototype.clearInput = function() {
|
|
7860
|
-
return this.setInput(void 0);
|
|
7861
|
-
};
|
|
7862
|
-
proto.aggregator.LoopNode.prototype.hasInput = function() {
|
|
7863
|
-
return jspb.Message.getField(this, 2) != null;
|
|
7864
|
-
};
|
|
7865
7216
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7866
7217
|
proto.aggregator.TaskEdge.prototype.toObject = function(opt_includeInstance) {
|
|
7867
7218
|
return proto.aggregator.TaskEdge.toObject(opt_includeInstance, this);
|
|
@@ -8010,8 +7361,7 @@ var require_avs_pb = __commonJS({
|
|
|
8010
7361
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
|
|
8011
7362
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
|
|
8012
7363
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
|
|
8013
|
-
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
|
|
8014
|
-
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7364
|
+
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
|
|
8015
7365
|
};
|
|
8016
7366
|
if (includeInstance) {
|
|
8017
7367
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8097,11 +7447,6 @@ var require_avs_pb = __commonJS({
|
|
|
8097
7447
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
|
|
8098
7448
|
msg.setCustomCode(value);
|
|
8099
7449
|
break;
|
|
8100
|
-
case 19:
|
|
8101
|
-
var value = new google_protobuf_struct_pb2.Value();
|
|
8102
|
-
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8103
|
-
msg.setInput(value);
|
|
8104
|
-
break;
|
|
8105
7450
|
default:
|
|
8106
7451
|
reader.skipField();
|
|
8107
7452
|
break;
|
|
@@ -8201,20 +7546,12 @@ var require_avs_pb = __commonJS({
|
|
|
8201
7546
|
proto.aggregator.LoopNode.serializeBinaryToWriter
|
|
8202
7547
|
);
|
|
8203
7548
|
}
|
|
8204
|
-
f = message.getCustomCode();
|
|
8205
|
-
if (f != null) {
|
|
8206
|
-
writer.writeMessage(
|
|
8207
|
-
18,
|
|
8208
|
-
f,
|
|
8209
|
-
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
8210
|
-
);
|
|
8211
|
-
}
|
|
8212
|
-
f = message.getInput();
|
|
7549
|
+
f = message.getCustomCode();
|
|
8213
7550
|
if (f != null) {
|
|
8214
7551
|
writer.writeMessage(
|
|
8215
|
-
|
|
7552
|
+
18,
|
|
8216
7553
|
f,
|
|
8217
|
-
|
|
7554
|
+
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
8218
7555
|
);
|
|
8219
7556
|
}
|
|
8220
7557
|
};
|
|
@@ -8380,21 +7717,6 @@ var require_avs_pb = __commonJS({
|
|
|
8380
7717
|
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
8381
7718
|
return jspb.Message.getField(this, 18) != null;
|
|
8382
7719
|
};
|
|
8383
|
-
proto.aggregator.TaskNode.prototype.getInput = function() {
|
|
8384
|
-
return (
|
|
8385
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
8386
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
8387
|
-
);
|
|
8388
|
-
};
|
|
8389
|
-
proto.aggregator.TaskNode.prototype.setInput = function(value) {
|
|
8390
|
-
return jspb.Message.setWrapperField(this, 19, value);
|
|
8391
|
-
};
|
|
8392
|
-
proto.aggregator.TaskNode.prototype.clearInput = function() {
|
|
8393
|
-
return this.setInput(void 0);
|
|
8394
|
-
};
|
|
8395
|
-
proto.aggregator.TaskNode.prototype.hasInput = function() {
|
|
8396
|
-
return jspb.Message.getField(this, 19) != null;
|
|
8397
|
-
};
|
|
8398
7720
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
8399
7721
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8400
7722
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8567,7 +7889,7 @@ var require_avs_pb = __commonJS({
|
|
|
8567
7889
|
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
8568
7890
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
8569
7891
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
8570
|
-
|
|
7892
|
+
config: (f = msg.getConfig()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
|
|
8571
7893
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
8572
7894
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
8573
7895
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -8655,7 +7977,7 @@ var require_avs_pb = __commonJS({
|
|
|
8655
7977
|
case 19:
|
|
8656
7978
|
var value = new google_protobuf_struct_pb2.Value();
|
|
8657
7979
|
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8658
|
-
msg.
|
|
7980
|
+
msg.setConfig(value);
|
|
8659
7981
|
break;
|
|
8660
7982
|
case 20:
|
|
8661
7983
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
@@ -8804,7 +8126,7 @@ var require_avs_pb = __commonJS({
|
|
|
8804
8126
|
f
|
|
8805
8127
|
);
|
|
8806
8128
|
}
|
|
8807
|
-
f = message.
|
|
8129
|
+
f = message.getConfig();
|
|
8808
8130
|
if (f != null) {
|
|
8809
8131
|
writer.writeMessage(
|
|
8810
8132
|
19,
|
|
@@ -9008,19 +8330,19 @@ var require_avs_pb = __commonJS({
|
|
|
9008
8330
|
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
9009
8331
|
return this.setInputsList([]);
|
|
9010
8332
|
};
|
|
9011
|
-
proto.aggregator.Execution.Step.prototype.
|
|
8333
|
+
proto.aggregator.Execution.Step.prototype.getConfig = function() {
|
|
9012
8334
|
return (
|
|
9013
8335
|
/** @type{?proto.google.protobuf.Value} */
|
|
9014
8336
|
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
9015
8337
|
);
|
|
9016
8338
|
};
|
|
9017
|
-
proto.aggregator.Execution.Step.prototype.
|
|
8339
|
+
proto.aggregator.Execution.Step.prototype.setConfig = function(value) {
|
|
9018
8340
|
return jspb.Message.setWrapperField(this, 19, value);
|
|
9019
8341
|
};
|
|
9020
|
-
proto.aggregator.Execution.Step.prototype.
|
|
9021
|
-
return this.
|
|
8342
|
+
proto.aggregator.Execution.Step.prototype.clearConfig = function() {
|
|
8343
|
+
return this.setConfig(void 0);
|
|
9022
8344
|
};
|
|
9023
|
-
proto.aggregator.Execution.Step.prototype.
|
|
8345
|
+
proto.aggregator.Execution.Step.prototype.hasConfig = function() {
|
|
9024
8346
|
return jspb.Message.getField(this, 19) != null;
|
|
9025
8347
|
};
|
|
9026
8348
|
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
@@ -16823,11 +16145,17 @@ var Trigger = class {
|
|
|
16823
16145
|
this.type = props.type;
|
|
16824
16146
|
this.data = props.data;
|
|
16825
16147
|
this.output = props.output;
|
|
16826
|
-
this.input = props.input;
|
|
16827
16148
|
}
|
|
16828
16149
|
toRequest() {
|
|
16829
16150
|
throw new Error("Method not implemented.");
|
|
16830
16151
|
}
|
|
16152
|
+
static fromResponse(raw) {
|
|
16153
|
+
const obj = raw.toObject();
|
|
16154
|
+
return new this({
|
|
16155
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
16156
|
+
...obj
|
|
16157
|
+
});
|
|
16158
|
+
}
|
|
16831
16159
|
getOutput() {
|
|
16832
16160
|
return this.output;
|
|
16833
16161
|
}
|
|
@@ -16837,18 +16165,161 @@ var Trigger = class {
|
|
|
16837
16165
|
name: this.name,
|
|
16838
16166
|
type: this.type,
|
|
16839
16167
|
data: this.data,
|
|
16840
|
-
output: this.output
|
|
16841
|
-
input: this.input
|
|
16168
|
+
output: this.output
|
|
16842
16169
|
};
|
|
16843
16170
|
}
|
|
16844
16171
|
};
|
|
16845
16172
|
|
|
16846
16173
|
// src/models/trigger/block.ts
|
|
16174
|
+
var import_types = require("@avaprotocol/types");
|
|
16175
|
+
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
16176
|
+
constructor(props) {
|
|
16177
|
+
super({ ...props, type: import_types.TriggerType.Block, data: props.data });
|
|
16178
|
+
}
|
|
16179
|
+
toRequest() {
|
|
16180
|
+
const request = new avs_pb2.TaskTrigger();
|
|
16181
|
+
request.setName(this.name);
|
|
16182
|
+
request.setId(this.id);
|
|
16183
|
+
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
16184
|
+
if (!this.data) {
|
|
16185
|
+
throw new Error(`Trigger data is missing for block`);
|
|
16186
|
+
}
|
|
16187
|
+
const blockData = this.data;
|
|
16188
|
+
if (blockData.interval === null || blockData.interval === void 0) {
|
|
16189
|
+
throw new Error("Interval is required for block trigger");
|
|
16190
|
+
}
|
|
16191
|
+
if (!Number.isInteger(blockData.interval)) {
|
|
16192
|
+
throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
|
|
16193
|
+
}
|
|
16194
|
+
if (blockData.interval <= 0) {
|
|
16195
|
+
throw new Error(`Interval must be greater than 0`);
|
|
16196
|
+
}
|
|
16197
|
+
const trigger = new avs_pb2.BlockTrigger();
|
|
16198
|
+
const config = new avs_pb2.BlockTrigger.Config();
|
|
16199
|
+
config.setInterval(blockData.interval);
|
|
16200
|
+
trigger.setConfig(config);
|
|
16201
|
+
request.setBlock(trigger);
|
|
16202
|
+
return request;
|
|
16203
|
+
}
|
|
16204
|
+
static fromResponse(raw) {
|
|
16205
|
+
const obj = raw.toObject();
|
|
16206
|
+
let data = { interval: 0 };
|
|
16207
|
+
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
16208
|
+
const config = raw.getBlock().getConfig();
|
|
16209
|
+
if (config) {
|
|
16210
|
+
data = {
|
|
16211
|
+
interval: config.getInterval() || 0
|
|
16212
|
+
};
|
|
16213
|
+
}
|
|
16214
|
+
}
|
|
16215
|
+
return new _BlockTrigger({
|
|
16216
|
+
...obj,
|
|
16217
|
+
type: import_types.TriggerType.Block,
|
|
16218
|
+
data
|
|
16219
|
+
});
|
|
16220
|
+
}
|
|
16221
|
+
/**
|
|
16222
|
+
* Convert raw data from runNodeWithInputs response to BlockOutput format
|
|
16223
|
+
* @param rawData - The raw data from the gRPC response
|
|
16224
|
+
* @returns {BlockTriggerOutput | undefined} - The converted data
|
|
16225
|
+
*/
|
|
16226
|
+
getOutput() {
|
|
16227
|
+
return this.output;
|
|
16228
|
+
}
|
|
16229
|
+
/**
|
|
16230
|
+
* Extract output data from RunTriggerResp for block triggers
|
|
16231
|
+
* @param outputData - The RunTriggerResp containing block trigger output
|
|
16232
|
+
* @returns Plain JavaScript object with block trigger data
|
|
16233
|
+
*/
|
|
16234
|
+
static fromOutputData(outputData) {
|
|
16235
|
+
const blockOutput = outputData.getBlockTrigger();
|
|
16236
|
+
if (!blockOutput) return null;
|
|
16237
|
+
const dataValue = blockOutput.getData();
|
|
16238
|
+
if (!dataValue) return null;
|
|
16239
|
+
const result = dataValue.toJavaScript();
|
|
16240
|
+
return result;
|
|
16241
|
+
}
|
|
16242
|
+
};
|
|
16243
|
+
var block_default = BlockTrigger2;
|
|
16244
|
+
|
|
16245
|
+
// src/models/trigger/cron.ts
|
|
16246
|
+
var avs_pb3 = __toESM(require_avs_pb());
|
|
16847
16247
|
var import_types2 = require("@avaprotocol/types");
|
|
16248
|
+
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
16249
|
+
constructor(props) {
|
|
16250
|
+
super({ ...props, type: import_types2.TriggerType.Cron, data: props.data });
|
|
16251
|
+
}
|
|
16252
|
+
toRequest() {
|
|
16253
|
+
const request = new avs_pb3.TaskTrigger();
|
|
16254
|
+
request.setName(this.name);
|
|
16255
|
+
request.setId(this.id);
|
|
16256
|
+
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
16257
|
+
if (!this.data) {
|
|
16258
|
+
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
16259
|
+
}
|
|
16260
|
+
const cronData = this.data;
|
|
16261
|
+
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
16262
|
+
throw new Error("Schedules are required for cron trigger");
|
|
16263
|
+
}
|
|
16264
|
+
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
16265
|
+
throw new Error("Schedules are required for cron trigger");
|
|
16266
|
+
}
|
|
16267
|
+
const trigger = new avs_pb3.CronTrigger();
|
|
16268
|
+
const config = new avs_pb3.CronTrigger.Config();
|
|
16269
|
+
config.setSchedulesList(cronData.schedules);
|
|
16270
|
+
trigger.setConfig(config);
|
|
16271
|
+
request.setCron(trigger);
|
|
16272
|
+
return request;
|
|
16273
|
+
}
|
|
16274
|
+
static fromResponse(raw) {
|
|
16275
|
+
const obj = raw.toObject();
|
|
16276
|
+
let data = { schedules: [] };
|
|
16277
|
+
if (raw.getCron() && raw.getCron().hasConfig()) {
|
|
16278
|
+
const config = raw.getCron().getConfig();
|
|
16279
|
+
if (config) {
|
|
16280
|
+
data = {
|
|
16281
|
+
schedules: config.getSchedulesList() || []
|
|
16282
|
+
};
|
|
16283
|
+
}
|
|
16284
|
+
}
|
|
16285
|
+
return new _CronTrigger({
|
|
16286
|
+
...obj,
|
|
16287
|
+
type: import_types2.TriggerType.Cron,
|
|
16288
|
+
data
|
|
16289
|
+
});
|
|
16290
|
+
}
|
|
16291
|
+
/**
|
|
16292
|
+
* Convert raw data from runTrigger response to CronOutput format
|
|
16293
|
+
* @param rawData - The raw data from the gRPC response
|
|
16294
|
+
* @returns {CronTriggerOutput | undefined} - The converted data
|
|
16295
|
+
*/
|
|
16296
|
+
getOutput() {
|
|
16297
|
+
return this.output;
|
|
16298
|
+
}
|
|
16299
|
+
/**
|
|
16300
|
+
* Extract output data from RunTriggerResp for cron triggers
|
|
16301
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
16302
|
+
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
16303
|
+
* @returns Plain JavaScript object with cron trigger data
|
|
16304
|
+
*/
|
|
16305
|
+
static fromOutputData(outputData) {
|
|
16306
|
+
const cronOutput = outputData.getCronTrigger();
|
|
16307
|
+
if (!cronOutput) return null;
|
|
16308
|
+
const dataValue = cronOutput.getData();
|
|
16309
|
+
if (!dataValue) return null;
|
|
16310
|
+
const result = dataValue.toJavaScript();
|
|
16311
|
+
return result;
|
|
16312
|
+
}
|
|
16313
|
+
};
|
|
16314
|
+
var cron_default = CronTrigger2;
|
|
16315
|
+
|
|
16316
|
+
// src/models/trigger/event.ts
|
|
16317
|
+
var avs_pb4 = __toESM(require_avs_pb());
|
|
16318
|
+
var import_types4 = require("@avaprotocol/types");
|
|
16848
16319
|
|
|
16849
16320
|
// src/utils.ts
|
|
16850
16321
|
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16851
|
-
var
|
|
16322
|
+
var import_types3 = require("@avaprotocol/types");
|
|
16852
16323
|
function convertProtobufValueToJs(value) {
|
|
16853
16324
|
if (!value) {
|
|
16854
16325
|
return void 0;
|
|
@@ -16912,22 +16383,22 @@ function convertJSValueToProtobuf(value) {
|
|
|
16912
16383
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16913
16384
|
switch (protobufType) {
|
|
16914
16385
|
case "TRIGGER_TYPE_MANUAL":
|
|
16915
|
-
return
|
|
16386
|
+
return import_types3.TriggerType.Manual;
|
|
16916
16387
|
// "manualTrigger"
|
|
16917
16388
|
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16918
|
-
return
|
|
16389
|
+
return import_types3.TriggerType.FixedTime;
|
|
16919
16390
|
// "fixedTimeTrigger"
|
|
16920
16391
|
case "TRIGGER_TYPE_CRON":
|
|
16921
|
-
return
|
|
16392
|
+
return import_types3.TriggerType.Cron;
|
|
16922
16393
|
// "cronTrigger"
|
|
16923
16394
|
case "TRIGGER_TYPE_BLOCK":
|
|
16924
|
-
return
|
|
16395
|
+
return import_types3.TriggerType.Block;
|
|
16925
16396
|
// "blockTrigger"
|
|
16926
16397
|
case "TRIGGER_TYPE_EVENT":
|
|
16927
|
-
return
|
|
16398
|
+
return import_types3.TriggerType.Event;
|
|
16928
16399
|
// "eventTrigger"
|
|
16929
16400
|
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16930
|
-
return
|
|
16401
|
+
return import_types3.TriggerType.Unspecified;
|
|
16931
16402
|
// "unspecified"
|
|
16932
16403
|
default:
|
|
16933
16404
|
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
@@ -16937,261 +16408,95 @@ function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
|
16937
16408
|
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16938
16409
|
switch (protobufType) {
|
|
16939
16410
|
case "NODE_TYPE_ETH_TRANSFER":
|
|
16940
|
-
return
|
|
16411
|
+
return import_types3.NodeType.ETHTransfer;
|
|
16941
16412
|
// "ethTransfer"
|
|
16942
16413
|
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16943
|
-
return
|
|
16414
|
+
return import_types3.NodeType.ContractWrite;
|
|
16944
16415
|
// "contractWrite"
|
|
16945
16416
|
case "NODE_TYPE_CONTRACT_READ":
|
|
16946
|
-
return
|
|
16417
|
+
return import_types3.NodeType.ContractRead;
|
|
16947
16418
|
// "contractRead"
|
|
16948
16419
|
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16949
|
-
return
|
|
16420
|
+
return import_types3.NodeType.GraphQLQuery;
|
|
16950
16421
|
// "graphql"
|
|
16951
16422
|
case "NODE_TYPE_REST_API":
|
|
16952
|
-
return
|
|
16423
|
+
return import_types3.NodeType.RestAPI;
|
|
16953
16424
|
// "restApi"
|
|
16954
16425
|
case "NODE_TYPE_CUSTOM_CODE":
|
|
16955
|
-
return
|
|
16426
|
+
return import_types3.NodeType.CustomCode;
|
|
16956
16427
|
// "customCode"
|
|
16957
16428
|
case "NODE_TYPE_BRANCH":
|
|
16958
|
-
return
|
|
16429
|
+
return import_types3.NodeType.Branch;
|
|
16959
16430
|
// "branch"
|
|
16960
16431
|
case "NODE_TYPE_FILTER":
|
|
16961
|
-
return
|
|
16432
|
+
return import_types3.NodeType.Filter;
|
|
16962
16433
|
// "filter"
|
|
16963
|
-
case "NODE_TYPE_LOOP":
|
|
16964
|
-
return
|
|
16965
|
-
// "loop"
|
|
16966
|
-
case "NODE_TYPE_UNSPECIFIED":
|
|
16967
|
-
return
|
|
16968
|
-
// "unspecified"
|
|
16969
|
-
default:
|
|
16970
|
-
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16971
|
-
return protobufType;
|
|
16972
|
-
}
|
|
16973
|
-
}
|
|
16974
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16975
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16976
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16977
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16978
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16979
|
-
} else {
|
|
16980
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16981
|
-
return protobufType;
|
|
16982
|
-
}
|
|
16983
|
-
}
|
|
16984
|
-
function convertInputToProtobuf(input) {
|
|
16985
|
-
if (!input) {
|
|
16986
|
-
return void 0;
|
|
16987
|
-
}
|
|
16988
|
-
return convertJSValueToProtobuf(input);
|
|
16989
|
-
}
|
|
16990
|
-
function extractInputFromProtobuf(inputValue) {
|
|
16991
|
-
if (!inputValue) {
|
|
16992
|
-
return void 0;
|
|
16993
|
-
}
|
|
16994
|
-
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16995
|
-
if (!Array.isArray(inputValue)) {
|
|
16996
|
-
return inputValue;
|
|
16997
|
-
}
|
|
16998
|
-
return void 0;
|
|
16999
|
-
}
|
|
17000
|
-
try {
|
|
17001
|
-
const protobufValue = inputValue;
|
|
17002
|
-
const inputJavaScript = protobufValue.toJavaScript();
|
|
17003
|
-
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
17004
|
-
return inputJavaScript;
|
|
17005
|
-
}
|
|
17006
|
-
} catch (error) {
|
|
17007
|
-
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
17008
|
-
return inputValue;
|
|
17009
|
-
}
|
|
17010
|
-
}
|
|
17011
|
-
return void 0;
|
|
17012
|
-
}
|
|
17013
|
-
function cleanGrpcErrorMessage(message) {
|
|
17014
|
-
if (!message) return message;
|
|
17015
|
-
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
17016
|
-
const match = message.match(grpcErrorPattern);
|
|
17017
|
-
if (match && match[1]) {
|
|
17018
|
-
return match[1].trim();
|
|
17019
|
-
}
|
|
17020
|
-
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
17021
|
-
const statusMatch = message.match(statusCodePattern);
|
|
17022
|
-
if (statusMatch && statusMatch[1]) {
|
|
17023
|
-
return statusMatch[1].trim();
|
|
17024
|
-
}
|
|
17025
|
-
return message;
|
|
17026
|
-
}
|
|
17027
|
-
|
|
17028
|
-
// src/models/trigger/block.ts
|
|
17029
|
-
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
17030
|
-
constructor(props) {
|
|
17031
|
-
super({ ...props, type: import_types2.TriggerType.Block, data: props.data });
|
|
17032
|
-
}
|
|
17033
|
-
toRequest() {
|
|
17034
|
-
const request = new avs_pb2.TaskTrigger();
|
|
17035
|
-
request.setName(this.name);
|
|
17036
|
-
request.setId(this.id);
|
|
17037
|
-
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
17038
|
-
if (!this.data) {
|
|
17039
|
-
throw new Error(`Trigger data is missing for block`);
|
|
17040
|
-
}
|
|
17041
|
-
const blockData = this.data;
|
|
17042
|
-
if (blockData.interval === null || blockData.interval === void 0) {
|
|
17043
|
-
throw new Error("Interval is required for block trigger");
|
|
17044
|
-
}
|
|
17045
|
-
if (blockData.interval <= 0) {
|
|
17046
|
-
throw new Error("Interval must be greater than 0");
|
|
17047
|
-
}
|
|
17048
|
-
const trigger = new avs_pb2.BlockTrigger();
|
|
17049
|
-
const config = new avs_pb2.BlockTrigger.Config();
|
|
17050
|
-
config.setInterval(blockData.interval);
|
|
17051
|
-
trigger.setConfig(config);
|
|
17052
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17053
|
-
if (inputValue) {
|
|
17054
|
-
trigger.setInput(inputValue);
|
|
17055
|
-
}
|
|
17056
|
-
request.setBlock(trigger);
|
|
17057
|
-
return request;
|
|
17058
|
-
}
|
|
17059
|
-
static fromResponse(raw) {
|
|
17060
|
-
const obj = raw.toObject();
|
|
17061
|
-
let data = { interval: 0 };
|
|
17062
|
-
let input = void 0;
|
|
17063
|
-
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
17064
|
-
const config = raw.getBlock().getConfig();
|
|
17065
|
-
if (config) {
|
|
17066
|
-
data = {
|
|
17067
|
-
interval: config.getInterval() || 0
|
|
17068
|
-
};
|
|
17069
|
-
}
|
|
17070
|
-
const blockTrigger = raw.getBlock();
|
|
17071
|
-
if (blockTrigger.hasInput()) {
|
|
17072
|
-
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
17073
|
-
}
|
|
17074
|
-
}
|
|
17075
|
-
return new _BlockTrigger({
|
|
17076
|
-
...obj,
|
|
17077
|
-
type: import_types2.TriggerType.Block,
|
|
17078
|
-
data,
|
|
17079
|
-
input
|
|
17080
|
-
});
|
|
16434
|
+
case "NODE_TYPE_LOOP":
|
|
16435
|
+
return import_types3.NodeType.Loop;
|
|
16436
|
+
// "loop"
|
|
16437
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
16438
|
+
return import_types3.NodeType.Unspecified;
|
|
16439
|
+
// "unspecified"
|
|
16440
|
+
default:
|
|
16441
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16442
|
+
return protobufType;
|
|
17081
16443
|
}
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
16444
|
+
}
|
|
16445
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16446
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16447
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16448
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16449
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16450
|
+
} else {
|
|
16451
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16452
|
+
return protobufType;
|
|
17089
16453
|
}
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
*/
|
|
17095
|
-
static fromOutputData(outputData) {
|
|
17096
|
-
const blockOutput = outputData.getBlockTrigger();
|
|
17097
|
-
return blockOutput?.toObject() || null;
|
|
16454
|
+
}
|
|
16455
|
+
function convertInputToProtobuf(input) {
|
|
16456
|
+
if (!input) {
|
|
16457
|
+
return void 0;
|
|
17098
16458
|
}
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
17105
|
-
var import_types3 = require("@avaprotocol/types");
|
|
17106
|
-
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
17107
|
-
constructor(props) {
|
|
17108
|
-
super({ ...props, type: import_types3.TriggerType.Cron, data: props.data });
|
|
16459
|
+
return convertJSValueToProtobuf(input);
|
|
16460
|
+
}
|
|
16461
|
+
function extractInputFromProtobuf(inputValue) {
|
|
16462
|
+
if (!inputValue) {
|
|
16463
|
+
return void 0;
|
|
17109
16464
|
}
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
request.setId(this.id);
|
|
17114
|
-
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
17115
|
-
if (!this.data) {
|
|
17116
|
-
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
17117
|
-
}
|
|
17118
|
-
const cronData = this.data;
|
|
17119
|
-
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
17120
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17121
|
-
}
|
|
17122
|
-
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
17123
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17124
|
-
}
|
|
17125
|
-
const trigger = new avs_pb3.CronTrigger();
|
|
17126
|
-
const config = new avs_pb3.CronTrigger.Config();
|
|
17127
|
-
config.setSchedulesList(cronData.schedules);
|
|
17128
|
-
trigger.setConfig(config);
|
|
17129
|
-
if (this.input) {
|
|
17130
|
-
try {
|
|
17131
|
-
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
17132
|
-
trigger.setInput(inputValue);
|
|
17133
|
-
} catch (error) {
|
|
17134
|
-
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
17135
|
-
}
|
|
16465
|
+
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16466
|
+
if (!Array.isArray(inputValue)) {
|
|
16467
|
+
return inputValue;
|
|
17136
16468
|
}
|
|
17137
|
-
|
|
17138
|
-
return request;
|
|
16469
|
+
return void 0;
|
|
17139
16470
|
}
|
|
17140
|
-
|
|
17141
|
-
const
|
|
17142
|
-
|
|
17143
|
-
if (
|
|
17144
|
-
|
|
17145
|
-
if (config) {
|
|
17146
|
-
data = {
|
|
17147
|
-
schedules: config.getSchedulesList() || []
|
|
17148
|
-
};
|
|
17149
|
-
}
|
|
16471
|
+
try {
|
|
16472
|
+
const protobufValue = inputValue;
|
|
16473
|
+
const inputJavaScript = protobufValue.toJavaScript();
|
|
16474
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16475
|
+
return inputJavaScript;
|
|
17150
16476
|
}
|
|
17151
|
-
|
|
17152
|
-
if (
|
|
17153
|
-
|
|
17154
|
-
if (inputValue) {
|
|
17155
|
-
input = inputValue.toObject();
|
|
17156
|
-
}
|
|
16477
|
+
} catch (error) {
|
|
16478
|
+
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
16479
|
+
return inputValue;
|
|
17157
16480
|
}
|
|
17158
|
-
return new _CronTrigger({
|
|
17159
|
-
...obj,
|
|
17160
|
-
type: import_types3.TriggerType.Cron,
|
|
17161
|
-
data,
|
|
17162
|
-
input
|
|
17163
|
-
// ✨ NEW: Include input data
|
|
17164
|
-
});
|
|
17165
16481
|
}
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
|
|
16482
|
+
return void 0;
|
|
16483
|
+
}
|
|
16484
|
+
function cleanGrpcErrorMessage(message) {
|
|
16485
|
+
if (!message) return message;
|
|
16486
|
+
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
16487
|
+
const match = message.match(grpcErrorPattern);
|
|
16488
|
+
if (match && match[1]) {
|
|
16489
|
+
return match[1].trim();
|
|
17173
16490
|
}
|
|
17174
|
-
|
|
17175
|
-
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
* @returns Plain JavaScript object with cron trigger data
|
|
17179
|
-
*/
|
|
17180
|
-
static fromOutputData(outputData) {
|
|
17181
|
-
const cronOutput = outputData.getCronTrigger();
|
|
17182
|
-
if (!cronOutput) return null;
|
|
17183
|
-
const outputObj = cronOutput.toObject();
|
|
17184
|
-
return {
|
|
17185
|
-
timestamp: outputObj.timestamp,
|
|
17186
|
-
timestampIso: outputObj.timestampIso
|
|
17187
|
-
};
|
|
16491
|
+
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
16492
|
+
const statusMatch = message.match(statusCodePattern);
|
|
16493
|
+
if (statusMatch && statusMatch[1]) {
|
|
16494
|
+
return statusMatch[1].trim();
|
|
17188
16495
|
}
|
|
17189
|
-
|
|
17190
|
-
|
|
16496
|
+
return message;
|
|
16497
|
+
}
|
|
17191
16498
|
|
|
17192
16499
|
// src/models/trigger/event.ts
|
|
17193
|
-
var avs_pb4 = __toESM(require_avs_pb());
|
|
17194
|
-
var import_types4 = require("@avaprotocol/types");
|
|
17195
16500
|
var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
17196
16501
|
constructor(props) {
|
|
17197
16502
|
super({ ...props, type: import_types4.TriggerType.Event, data: props.data });
|
|
@@ -17264,17 +16569,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17264
16569
|
});
|
|
17265
16570
|
config.setQueriesList(queryMessages);
|
|
17266
16571
|
trigger.setConfig(config);
|
|
17267
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17268
|
-
if (inputValue) {
|
|
17269
|
-
trigger.setInput(inputValue);
|
|
17270
|
-
}
|
|
17271
16572
|
request.setEvent(trigger);
|
|
17272
16573
|
return request;
|
|
17273
16574
|
}
|
|
17274
16575
|
static fromResponse(raw) {
|
|
17275
16576
|
const obj = raw.toObject();
|
|
17276
16577
|
let data = { queries: [] };
|
|
17277
|
-
let input = void 0;
|
|
17278
16578
|
if (raw.getEvent() && raw.getEvent().hasConfig()) {
|
|
17279
16579
|
const config = raw.getEvent().getConfig();
|
|
17280
16580
|
if (config) {
|
|
@@ -17324,15 +16624,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17324
16624
|
}
|
|
17325
16625
|
data = { queries };
|
|
17326
16626
|
}
|
|
17327
|
-
if (raw.getEvent().hasInput()) {
|
|
17328
|
-
input = extractInputFromProtobuf(raw.getEvent().getInput());
|
|
17329
|
-
}
|
|
17330
16627
|
}
|
|
17331
16628
|
return new _EventTrigger({
|
|
17332
16629
|
...obj,
|
|
17333
16630
|
type: import_types4.TriggerType.Event,
|
|
17334
|
-
data
|
|
17335
|
-
input
|
|
16631
|
+
data
|
|
17336
16632
|
});
|
|
17337
16633
|
}
|
|
17338
16634
|
/**
|
|
@@ -17390,19 +16686,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17390
16686
|
}
|
|
17391
16687
|
const trigger = new avs_pb5.FixedTimeTrigger();
|
|
17392
16688
|
const config = new avs_pb5.FixedTimeTrigger.Config();
|
|
17393
|
-
config.setEpochsList(
|
|
16689
|
+
config.setEpochsList(
|
|
16690
|
+
this.data.epochsList || []
|
|
16691
|
+
);
|
|
17394
16692
|
trigger.setConfig(config);
|
|
17395
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17396
|
-
if (inputValue) {
|
|
17397
|
-
trigger.setInput(inputValue);
|
|
17398
|
-
}
|
|
17399
16693
|
request.setFixedTime(trigger);
|
|
17400
16694
|
return request;
|
|
17401
16695
|
}
|
|
17402
16696
|
static fromResponse(raw) {
|
|
17403
16697
|
const obj = raw.toObject();
|
|
17404
16698
|
let data = { epochsList: [] };
|
|
17405
|
-
let input = void 0;
|
|
17406
16699
|
if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
|
|
17407
16700
|
const config = raw.getFixedTime().getConfig();
|
|
17408
16701
|
if (config) {
|
|
@@ -17410,15 +16703,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17410
16703
|
epochsList: config.getEpochsList() || []
|
|
17411
16704
|
};
|
|
17412
16705
|
}
|
|
17413
|
-
if (raw.getFixedTime().hasInput()) {
|
|
17414
|
-
input = extractInputFromProtobuf(raw.getFixedTime().getInput());
|
|
17415
|
-
}
|
|
17416
16706
|
}
|
|
17417
16707
|
return new _FixedTimeTrigger({
|
|
17418
16708
|
...obj,
|
|
17419
16709
|
type: import_types5.TriggerType.FixedTime,
|
|
17420
|
-
data
|
|
17421
|
-
input
|
|
16710
|
+
data
|
|
17422
16711
|
});
|
|
17423
16712
|
}
|
|
17424
16713
|
/**
|
|
@@ -17438,11 +16727,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17438
16727
|
static fromOutputData(outputData) {
|
|
17439
16728
|
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
17440
16729
|
if (!fixedTimeOutput) return null;
|
|
17441
|
-
const
|
|
17442
|
-
return
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
};
|
|
16730
|
+
const dataValue = fixedTimeOutput.getData();
|
|
16731
|
+
if (!dataValue) return null;
|
|
16732
|
+
const result = dataValue.toJavaScript();
|
|
16733
|
+
return result;
|
|
17446
16734
|
}
|
|
17447
16735
|
};
|
|
17448
16736
|
var fixedTime_default = FixedTimeTrigger2;
|
|
@@ -17458,8 +16746,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17458
16746
|
data: props.data,
|
|
17459
16747
|
input: props.input
|
|
17460
16748
|
});
|
|
17461
|
-
this.headers = props.headers;
|
|
17462
|
-
this.pathParams = props.pathParams;
|
|
17463
16749
|
}
|
|
17464
16750
|
toRequest() {
|
|
17465
16751
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -17468,24 +16754,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17468
16754
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
17469
16755
|
const manualTrigger = new avs_pb6.ManualTrigger();
|
|
17470
16756
|
const config = new avs_pb6.ManualTrigger.Config();
|
|
17471
|
-
|
|
17472
|
-
if (dataToSend === null || dataToSend === void 0) {
|
|
16757
|
+
if (this.data === null || this.data === void 0) {
|
|
17473
16758
|
throw new Error("ManualTrigger data is required");
|
|
17474
16759
|
}
|
|
17475
|
-
|
|
17476
|
-
|
|
17477
|
-
|
|
16760
|
+
let actualData = this.data;
|
|
16761
|
+
let headers = {};
|
|
16762
|
+
let pathParams = {};
|
|
16763
|
+
if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
|
|
16764
|
+
const dataObj = this.data;
|
|
16765
|
+
if ("data" in dataObj) {
|
|
16766
|
+
actualData = dataObj.data;
|
|
16767
|
+
headers = dataObj.headers || {};
|
|
16768
|
+
pathParams = dataObj.pathParams || {};
|
|
16769
|
+
}
|
|
16770
|
+
}
|
|
16771
|
+
const dataValue = convertInputToProtobuf(actualData);
|
|
16772
|
+
if (!dataValue) {
|
|
16773
|
+
throw new Error(
|
|
16774
|
+
"Failed to convert ManualTrigger data to protobuf format"
|
|
16775
|
+
);
|
|
17478
16776
|
}
|
|
17479
|
-
config.setData(
|
|
17480
|
-
if (
|
|
16777
|
+
config.setData(dataValue);
|
|
16778
|
+
if (Object.keys(headers).length > 0) {
|
|
17481
16779
|
const headersMap = config.getHeadersMap();
|
|
17482
|
-
Object.entries(
|
|
16780
|
+
Object.entries(headers).forEach(([key, value]) => {
|
|
17483
16781
|
headersMap.set(key, value);
|
|
17484
16782
|
});
|
|
17485
16783
|
}
|
|
17486
|
-
if (
|
|
16784
|
+
if (Object.keys(pathParams).length > 0) {
|
|
17487
16785
|
const pathParamsMap = config.getPathparamsMap();
|
|
17488
|
-
Object.entries(
|
|
16786
|
+
Object.entries(pathParams).forEach(([key, value]) => {
|
|
17489
16787
|
pathParamsMap.set(key, value);
|
|
17490
16788
|
});
|
|
17491
16789
|
}
|
|
@@ -17495,45 +16793,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17495
16793
|
}
|
|
17496
16794
|
static fromResponse(raw) {
|
|
17497
16795
|
const obj = raw.toObject();
|
|
17498
|
-
let
|
|
17499
|
-
const input = void 0;
|
|
17500
|
-
let headers = void 0;
|
|
17501
|
-
let pathParams = void 0;
|
|
16796
|
+
let actualData = null;
|
|
17502
16797
|
const manualTrigger = raw.getManual();
|
|
17503
16798
|
if (manualTrigger) {
|
|
17504
16799
|
const config = manualTrigger.getConfig();
|
|
17505
16800
|
if (config) {
|
|
17506
16801
|
if (config.hasData()) {
|
|
17507
|
-
|
|
17508
|
-
}
|
|
17509
|
-
const headersMapProto = config.getHeadersMap();
|
|
17510
|
-
if (headersMapProto && headersMapProto.getLength() > 0) {
|
|
17511
|
-
headers = {};
|
|
17512
|
-
headersMapProto.forEach((value, key) => {
|
|
17513
|
-
headers[key] = value;
|
|
17514
|
-
});
|
|
17515
|
-
}
|
|
17516
|
-
const pathParamsMapProto = config.getPathparamsMap();
|
|
17517
|
-
if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
|
|
17518
|
-
pathParams = {};
|
|
17519
|
-
pathParamsMapProto.forEach((value, key) => {
|
|
17520
|
-
pathParams[key] = value;
|
|
17521
|
-
});
|
|
16802
|
+
actualData = extractInputFromProtobuf(config.getData());
|
|
17522
16803
|
}
|
|
17523
16804
|
}
|
|
17524
16805
|
}
|
|
16806
|
+
const manualTriggerData = {
|
|
16807
|
+
data: actualData
|
|
16808
|
+
};
|
|
17525
16809
|
return new _ManualTrigger({
|
|
17526
16810
|
...obj,
|
|
17527
16811
|
type: import_types6.TriggerType.Manual,
|
|
17528
|
-
data
|
|
17529
|
-
input,
|
|
17530
|
-
headers,
|
|
17531
|
-
pathParams
|
|
16812
|
+
data: manualTriggerData
|
|
17532
16813
|
});
|
|
17533
16814
|
}
|
|
17534
|
-
getInputVariables() {
|
|
17535
|
-
return this.input;
|
|
17536
|
-
}
|
|
17537
16815
|
/**
|
|
17538
16816
|
* Extract output data from RunTriggerResp for manual triggers
|
|
17539
16817
|
* @param outputData - The RunTriggerResp containing manual trigger output
|
|
@@ -17634,13 +16912,11 @@ var avs_pb8 = __toESM(require_avs_pb());
|
|
|
17634
16912
|
var import_types8 = require("@avaprotocol/types");
|
|
17635
16913
|
var import_lodash = __toESM(require("lodash"));
|
|
17636
16914
|
var Node = class {
|
|
17637
|
-
// Use JavaScript object type for internal storage
|
|
17638
16915
|
constructor(props) {
|
|
17639
16916
|
this.id = props.id;
|
|
17640
16917
|
this.name = props.name;
|
|
17641
16918
|
this.type = props.type;
|
|
17642
16919
|
this.data = props.data;
|
|
17643
|
-
this.input = props.input;
|
|
17644
16920
|
}
|
|
17645
16921
|
toRequest() {
|
|
17646
16922
|
const request = new avs_pb8.TaskNode();
|
|
@@ -17653,13 +16929,8 @@ var Node = class {
|
|
|
17653
16929
|
}
|
|
17654
16930
|
static fromResponse(raw) {
|
|
17655
16931
|
const obj = raw.toObject();
|
|
17656
|
-
let input = void 0;
|
|
17657
|
-
if (raw.hasInput()) {
|
|
17658
|
-
input = raw.getInput().toObject();
|
|
17659
|
-
}
|
|
17660
16932
|
return new this({
|
|
17661
|
-
...obj
|
|
17662
|
-
input
|
|
16933
|
+
...obj
|
|
17663
16934
|
});
|
|
17664
16935
|
}
|
|
17665
16936
|
};
|
|
@@ -17706,15 +16977,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17706
16977
|
methodName: call.methodName
|
|
17707
16978
|
})) || []
|
|
17708
16979
|
};
|
|
17709
|
-
let input = void 0;
|
|
17710
|
-
if (raw.hasInput()) {
|
|
17711
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17712
|
-
}
|
|
17713
16980
|
return new _ContractWriteNode({
|
|
17714
16981
|
...obj,
|
|
17715
16982
|
type: import_types9.NodeType.ContractWrite,
|
|
17716
|
-
data
|
|
17717
|
-
input
|
|
16983
|
+
data
|
|
17718
16984
|
});
|
|
17719
16985
|
}
|
|
17720
16986
|
toRequest() {
|
|
@@ -17724,10 +16990,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17724
16990
|
const node = _ContractWriteNode.createProtobufNode(
|
|
17725
16991
|
this.data
|
|
17726
16992
|
);
|
|
17727
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17728
|
-
if (inputValue) {
|
|
17729
|
-
request.setInput(inputValue);
|
|
17730
|
-
}
|
|
17731
16993
|
request.setContractWrite(node);
|
|
17732
16994
|
return request;
|
|
17733
16995
|
}
|
|
@@ -17769,15 +17031,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17769
17031
|
lang: rawConfig.lang,
|
|
17770
17032
|
source: rawConfig.source
|
|
17771
17033
|
};
|
|
17772
|
-
let input = void 0;
|
|
17773
|
-
if (raw.hasInput()) {
|
|
17774
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17775
|
-
}
|
|
17776
17034
|
return new _CustomCodeNode({
|
|
17777
17035
|
...obj,
|
|
17778
17036
|
type: import_types10.NodeType.CustomCode,
|
|
17779
|
-
data: convertedConfig
|
|
17780
|
-
input
|
|
17037
|
+
data: convertedConfig
|
|
17781
17038
|
});
|
|
17782
17039
|
}
|
|
17783
17040
|
toRequest() {
|
|
@@ -17787,10 +17044,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17787
17044
|
const node = _CustomCodeNode.createProtobufNode(
|
|
17788
17045
|
this.data
|
|
17789
17046
|
);
|
|
17790
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17791
|
-
if (inputValue) {
|
|
17792
|
-
request.setInput(inputValue);
|
|
17793
|
-
}
|
|
17794
17047
|
request.setCustomCode(node);
|
|
17795
17048
|
return request;
|
|
17796
17049
|
}
|
|
@@ -17840,12 +17093,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17840
17093
|
}
|
|
17841
17094
|
static fromResponse(raw) {
|
|
17842
17095
|
const obj = raw.toObject();
|
|
17843
|
-
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
17844
17096
|
return new _GraphQLQueryNode({
|
|
17845
17097
|
...obj,
|
|
17846
17098
|
type: import_types11.NodeType.GraphQLQuery,
|
|
17847
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17848
|
-
input
|
|
17099
|
+
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17849
17100
|
});
|
|
17850
17101
|
}
|
|
17851
17102
|
toRequest() {
|
|
@@ -17855,10 +17106,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17855
17106
|
const node = _GraphQLQueryNode.createProtobufNode(
|
|
17856
17107
|
this.data
|
|
17857
17108
|
);
|
|
17858
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17859
|
-
if (inputValue) {
|
|
17860
|
-
node.setInput(inputValue);
|
|
17861
|
-
}
|
|
17862
17109
|
request.setGraphqlQuery(node);
|
|
17863
17110
|
return request;
|
|
17864
17111
|
}
|
|
@@ -17898,10 +17145,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17898
17145
|
}
|
|
17899
17146
|
static fromResponse(raw) {
|
|
17900
17147
|
const obj = raw.toObject();
|
|
17901
|
-
let input = void 0;
|
|
17902
|
-
if (raw.hasInput()) {
|
|
17903
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17904
|
-
}
|
|
17905
17148
|
return new _RestAPINode({
|
|
17906
17149
|
...obj,
|
|
17907
17150
|
type: import_types12.NodeType.RestAPI,
|
|
@@ -17917,9 +17160,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17917
17160
|
});
|
|
17918
17161
|
return headers;
|
|
17919
17162
|
})()
|
|
17920
|
-
}
|
|
17921
|
-
input
|
|
17922
|
-
// Include input data from top-level TaskNode
|
|
17163
|
+
}
|
|
17923
17164
|
});
|
|
17924
17165
|
}
|
|
17925
17166
|
toRequest() {
|
|
@@ -17929,10 +17170,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17929
17170
|
const nodeData = _RestAPINode.createProtobufNode(
|
|
17930
17171
|
this.data
|
|
17931
17172
|
);
|
|
17932
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17933
|
-
if (inputValue) {
|
|
17934
|
-
request.setInput(inputValue);
|
|
17935
|
-
}
|
|
17936
17173
|
request.setRestApi(nodeData);
|
|
17937
17174
|
return request;
|
|
17938
17175
|
}
|
|
@@ -17995,15 +17232,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17995
17232
|
applyToFields: call.applyToFieldsList || []
|
|
17996
17233
|
})) || []
|
|
17997
17234
|
};
|
|
17998
|
-
let input = void 0;
|
|
17999
|
-
if (raw.hasInput()) {
|
|
18000
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
18001
|
-
}
|
|
18002
17235
|
return new _ContractReadNode({
|
|
18003
17236
|
...obj,
|
|
18004
17237
|
type: import_types13.NodeType.ContractRead,
|
|
18005
|
-
data
|
|
18006
|
-
input
|
|
17238
|
+
data
|
|
18007
17239
|
});
|
|
18008
17240
|
}
|
|
18009
17241
|
toRequest() {
|
|
@@ -18013,10 +17245,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
18013
17245
|
const node = _ContractReadNode.createProtobufNode(
|
|
18014
17246
|
this.data
|
|
18015
17247
|
);
|
|
18016
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18017
|
-
if (inputValue) {
|
|
18018
|
-
request.setInput(inputValue);
|
|
18019
|
-
}
|
|
18020
17248
|
request.setContractRead(node);
|
|
18021
17249
|
return request;
|
|
18022
17250
|
}
|
|
@@ -18065,12 +17293,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18065
17293
|
}
|
|
18066
17294
|
static fromResponse(raw) {
|
|
18067
17295
|
const obj = raw.toObject();
|
|
18068
|
-
const
|
|
17296
|
+
const data = raw.getEthTransfer().getConfig().toObject();
|
|
18069
17297
|
return new _ETHTransferNode({
|
|
18070
17298
|
...obj,
|
|
18071
17299
|
type: import_types14.NodeType.ETHTransfer,
|
|
18072
|
-
data
|
|
18073
|
-
input
|
|
17300
|
+
data
|
|
18074
17301
|
});
|
|
18075
17302
|
}
|
|
18076
17303
|
toRequest() {
|
|
@@ -18080,10 +17307,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18080
17307
|
const node = _ETHTransferNode.createProtobufNode(
|
|
18081
17308
|
this.data
|
|
18082
17309
|
);
|
|
18083
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18084
|
-
if (inputValue) {
|
|
18085
|
-
node.setInput(inputValue);
|
|
18086
|
-
}
|
|
18087
17310
|
request.setEthTransfer(node);
|
|
18088
17311
|
return request;
|
|
18089
17312
|
}
|
|
@@ -18111,12 +17334,10 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18111
17334
|
expression: condition.expression
|
|
18112
17335
|
})) || []
|
|
18113
17336
|
};
|
|
18114
|
-
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
18115
17337
|
return new _BranchNode({
|
|
18116
17338
|
...obj,
|
|
18117
17339
|
type: import_types15.NodeType.Branch,
|
|
18118
|
-
data
|
|
18119
|
-
input
|
|
17340
|
+
data
|
|
18120
17341
|
});
|
|
18121
17342
|
}
|
|
18122
17343
|
toRequest() {
|
|
@@ -18138,10 +17359,6 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18138
17359
|
config.setConditionsList(conditionsList);
|
|
18139
17360
|
}
|
|
18140
17361
|
node.setConfig(config);
|
|
18141
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18142
|
-
if (inputValue) {
|
|
18143
|
-
node.setInput(inputValue);
|
|
18144
|
-
}
|
|
18145
17362
|
request.setBranch(node);
|
|
18146
17363
|
return request;
|
|
18147
17364
|
}
|
|
@@ -18156,19 +17373,16 @@ var branch_default = BranchNode2;
|
|
|
18156
17373
|
// src/models/node/filter.ts
|
|
18157
17374
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
18158
17375
|
var import_types16 = require("@avaprotocol/types");
|
|
18159
|
-
var import_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb");
|
|
18160
17376
|
var FilterNode2 = class _FilterNode extends Node {
|
|
18161
17377
|
constructor(props) {
|
|
18162
17378
|
super({ ...props, type: import_types16.NodeType.Filter, data: props.data });
|
|
18163
17379
|
}
|
|
18164
17380
|
static fromResponse(raw) {
|
|
18165
17381
|
const obj = raw.toObject();
|
|
18166
|
-
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
18167
17382
|
return new _FilterNode({
|
|
18168
17383
|
...obj,
|
|
18169
17384
|
type: import_types16.NodeType.Filter,
|
|
18170
|
-
data: raw.getFilter().getConfig().toObject()
|
|
18171
|
-
input
|
|
17385
|
+
data: raw.getFilter().getConfig().toObject()
|
|
18172
17386
|
});
|
|
18173
17387
|
}
|
|
18174
17388
|
toRequest() {
|
|
@@ -18178,12 +17392,8 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18178
17392
|
const node = new avs_pb16.FilterNode();
|
|
18179
17393
|
const config = new avs_pb16.FilterNode.Config();
|
|
18180
17394
|
config.setExpression(this.data.expression);
|
|
18181
|
-
config.
|
|
17395
|
+
config.setInputNodeName(this.data.inputNodeName || "");
|
|
18182
17396
|
node.setConfig(config);
|
|
18183
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18184
|
-
if (inputValue) {
|
|
18185
|
-
node.setInput(inputValue);
|
|
18186
|
-
}
|
|
18187
17397
|
request.setFilter(node);
|
|
18188
17398
|
return request;
|
|
18189
17399
|
}
|
|
@@ -18196,11 +17406,16 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18196
17406
|
if (!anyData) {
|
|
18197
17407
|
throw new Error("FilterNode output data.getData() is missing");
|
|
18198
17408
|
}
|
|
18199
|
-
const
|
|
18200
|
-
|
|
18201
|
-
|
|
17409
|
+
const result = anyData.toJavaScript();
|
|
17410
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
|
|
17411
|
+
return result.data.data;
|
|
17412
|
+
}
|
|
17413
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
|
|
18202
17414
|
return result.data;
|
|
18203
17415
|
}
|
|
17416
|
+
if (Array.isArray(result)) {
|
|
17417
|
+
return result;
|
|
17418
|
+
}
|
|
18204
17419
|
throw new Error(
|
|
18205
17420
|
"FilterNode output data does not contain expected data structure"
|
|
18206
17421
|
);
|
|
@@ -18232,15 +17447,10 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18232
17447
|
configData?.executionMode
|
|
18233
17448
|
)
|
|
18234
17449
|
};
|
|
18235
|
-
let input = void 0;
|
|
18236
|
-
if (raw.hasInput()) {
|
|
18237
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
18238
|
-
}
|
|
18239
17450
|
return new _LoopNode({
|
|
18240
17451
|
...obj,
|
|
18241
17452
|
type: import_types17.NodeType.Loop,
|
|
18242
|
-
data
|
|
18243
|
-
input
|
|
17453
|
+
data
|
|
18244
17454
|
});
|
|
18245
17455
|
}
|
|
18246
17456
|
static extractRunnerFromProtobuf(loopNodeData) {
|
|
@@ -18298,16 +17508,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18298
17508
|
node.setName(this.name);
|
|
18299
17509
|
const data = this.data;
|
|
18300
17510
|
const config = new avs_pb17.LoopNode.Config();
|
|
18301
|
-
config.
|
|
17511
|
+
config.setInputNodeName(data.inputNodeName || "");
|
|
18302
17512
|
config.setIterVal(data.iterVal || "");
|
|
18303
17513
|
config.setIterKey(data.iterKey || "");
|
|
18304
17514
|
const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
|
|
18305
17515
|
config.setExecutionMode(executionMode);
|
|
18306
17516
|
loopNode.setConfig(config);
|
|
18307
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18308
|
-
if (inputValue) {
|
|
18309
|
-
node.setInput(inputValue);
|
|
18310
|
-
}
|
|
18311
17517
|
if (data.runner) {
|
|
18312
17518
|
this.setRunnerOnProtobuf(loopNode, data.runner);
|
|
18313
17519
|
}
|
|
@@ -18315,86 +17521,72 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18315
17521
|
return node;
|
|
18316
17522
|
}
|
|
18317
17523
|
setRunnerOnProtobuf(loopNode, runner) {
|
|
18318
|
-
if (!runner || !runner.type
|
|
17524
|
+
if (!runner || !runner.type) {
|
|
17525
|
+
return;
|
|
17526
|
+
}
|
|
17527
|
+
const config = runner.config || runner.data && runner.data.config;
|
|
17528
|
+
if (!config) {
|
|
18319
17529
|
return;
|
|
18320
17530
|
}
|
|
18321
17531
|
switch (runner.type) {
|
|
18322
17532
|
case "ethTransfer": {
|
|
18323
|
-
const
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
});
|
|
18330
|
-
loopNode.setEthTransfer(ethTransfer);
|
|
18331
|
-
}
|
|
17533
|
+
const ethConfig = config;
|
|
17534
|
+
const ethTransfer = ethTransfer_default.createProtobufNode({
|
|
17535
|
+
destination: ethConfig.destination,
|
|
17536
|
+
amount: ethConfig.amount
|
|
17537
|
+
});
|
|
17538
|
+
loopNode.setEthTransfer(ethTransfer);
|
|
18332
17539
|
break;
|
|
18333
17540
|
}
|
|
18334
17541
|
case "contractWrite": {
|
|
18335
|
-
const
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
});
|
|
18344
|
-
loopNode.setContractWrite(contractWrite);
|
|
18345
|
-
}
|
|
17542
|
+
const writeConfig = config;
|
|
17543
|
+
const contractWrite = contractWrite_default.createProtobufNode({
|
|
17544
|
+
contractAddress: writeConfig.contractAddress,
|
|
17545
|
+
callData: writeConfig.callData,
|
|
17546
|
+
contractAbi: writeConfig.contractAbi,
|
|
17547
|
+
methodCalls: writeConfig.methodCallsList || []
|
|
17548
|
+
});
|
|
17549
|
+
loopNode.setContractWrite(contractWrite);
|
|
18346
17550
|
break;
|
|
18347
17551
|
}
|
|
18348
17552
|
case "contractRead": {
|
|
18349
|
-
const
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
});
|
|
18357
|
-
loopNode.setContractRead(contractRead);
|
|
18358
|
-
}
|
|
17553
|
+
const readConfig = config;
|
|
17554
|
+
const contractRead = contractRead_default.createProtobufNode({
|
|
17555
|
+
contractAddress: readConfig.contractAddress,
|
|
17556
|
+
contractAbi: readConfig.contractAbi,
|
|
17557
|
+
methodCalls: readConfig.methodCallsList || []
|
|
17558
|
+
});
|
|
17559
|
+
loopNode.setContractRead(contractRead);
|
|
18359
17560
|
break;
|
|
18360
17561
|
}
|
|
18361
17562
|
case "graphqlDataQuery": {
|
|
18362
|
-
const
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
});
|
|
18370
|
-
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18371
|
-
}
|
|
17563
|
+
const gqlConfig = config;
|
|
17564
|
+
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
17565
|
+
url: gqlConfig.url,
|
|
17566
|
+
query: gqlConfig.query,
|
|
17567
|
+
variablesMap: gqlConfig.variablesMap
|
|
17568
|
+
});
|
|
17569
|
+
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18372
17570
|
break;
|
|
18373
17571
|
}
|
|
18374
17572
|
case "restApi": {
|
|
18375
|
-
const
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
});
|
|
18384
|
-
loopNode.setRestApi(restApi);
|
|
18385
|
-
}
|
|
17573
|
+
const apiConfig = config;
|
|
17574
|
+
const restApi = restApi_default.createProtobufNode({
|
|
17575
|
+
url: apiConfig.url,
|
|
17576
|
+
method: apiConfig.method,
|
|
17577
|
+
body: apiConfig.body || "",
|
|
17578
|
+
headers: apiConfig.headers
|
|
17579
|
+
});
|
|
17580
|
+
loopNode.setRestApi(restApi);
|
|
18386
17581
|
break;
|
|
18387
17582
|
}
|
|
18388
17583
|
case "customCode": {
|
|
18389
|
-
const
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
});
|
|
18396
|
-
loopNode.setCustomCode(customCode);
|
|
18397
|
-
}
|
|
17584
|
+
const codeConfig = config;
|
|
17585
|
+
const customCode = customCode_default.createProtobufNode({
|
|
17586
|
+
lang: codeConfig.lang,
|
|
17587
|
+
source: codeConfig.source
|
|
17588
|
+
});
|
|
17589
|
+
loopNode.setCustomCode(customCode);
|
|
18398
17590
|
break;
|
|
18399
17591
|
}
|
|
18400
17592
|
}
|
|
@@ -18410,15 +17602,15 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18410
17602
|
}
|
|
18411
17603
|
const loopOutput = outputData.getLoop();
|
|
18412
17604
|
if (loopOutput) {
|
|
18413
|
-
const
|
|
18414
|
-
if (
|
|
17605
|
+
const dataValue = loopOutput.getData();
|
|
17606
|
+
if (dataValue) {
|
|
18415
17607
|
try {
|
|
18416
|
-
return
|
|
18417
|
-
} catch {
|
|
18418
|
-
|
|
17608
|
+
return dataValue.toJavaScript();
|
|
17609
|
+
} catch (error) {
|
|
17610
|
+
console.warn("Failed to convert loop data from protobuf Value:", error);
|
|
17611
|
+
return null;
|
|
18419
17612
|
}
|
|
18420
17613
|
}
|
|
18421
|
-
return loopObj;
|
|
18422
17614
|
}
|
|
18423
17615
|
return null;
|
|
18424
17616
|
}
|
|
@@ -18682,7 +17874,7 @@ var Step = class _Step {
|
|
|
18682
17874
|
this.error = props.error;
|
|
18683
17875
|
this.log = props.log;
|
|
18684
17876
|
this.inputsList = props.inputsList;
|
|
18685
|
-
this.
|
|
17877
|
+
this.config = props.config;
|
|
18686
17878
|
this.output = props.output;
|
|
18687
17879
|
this.startAt = props.startAt;
|
|
18688
17880
|
this.endAt = props.endAt;
|
|
@@ -18700,299 +17892,102 @@ var Step = class _Step {
|
|
|
18700
17892
|
error: this.error,
|
|
18701
17893
|
log: this.log,
|
|
18702
17894
|
inputsList: this.inputsList,
|
|
18703
|
-
|
|
17895
|
+
config: this.config,
|
|
18704
17896
|
output: this.output,
|
|
18705
17897
|
startAt: this.startAt,
|
|
18706
17898
|
endAt: this.endAt
|
|
18707
17899
|
};
|
|
18708
17900
|
}
|
|
18709
17901
|
static getOutput(step) {
|
|
18710
|
-
const
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
18728
|
-
if (stepObj.contractRead)
|
|
18729
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
18730
|
-
if (stepObj.contractWrite)
|
|
18731
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
18732
|
-
if (stepObj.customCode)
|
|
18733
|
-
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
18734
|
-
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
18735
|
-
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
18736
|
-
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
18737
|
-
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
18738
|
-
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
18739
|
-
};
|
|
18740
|
-
switch (getOutputDataCase()) {
|
|
18741
|
-
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
18742
|
-
return void 0;
|
|
18743
|
-
// Trigger outputs
|
|
17902
|
+
const outputData = this.extractOutputData(step);
|
|
17903
|
+
if (!outputData) return null;
|
|
17904
|
+
if (typeof outputData.hasData === "function" && outputData.hasData()) {
|
|
17905
|
+
try {
|
|
17906
|
+
return convertProtobufValueToJs(outputData.getData());
|
|
17907
|
+
} catch (error) {
|
|
17908
|
+
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17909
|
+
return outputData.getData();
|
|
17910
|
+
}
|
|
17911
|
+
} else if (outputData.data) {
|
|
17912
|
+
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17913
|
+
}
|
|
17914
|
+
return null;
|
|
17915
|
+
}
|
|
17916
|
+
static extractOutputData(step) {
|
|
17917
|
+
const outputCase = this.getOutputDataCase(step);
|
|
17918
|
+
switch (outputCase) {
|
|
18744
17919
|
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
18745
|
-
|
|
18746
|
-
return { data: blockTrigger };
|
|
18747
|
-
// ✅ Use standard structure
|
|
17920
|
+
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
|
|
18748
17921
|
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
18749
|
-
|
|
18750
|
-
return { data: fixedTimeTrigger };
|
|
18751
|
-
// ✅ Use standard structure
|
|
17922
|
+
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
|
|
18752
17923
|
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
18753
|
-
|
|
18754
|
-
return { data: cronTrigger };
|
|
18755
|
-
// ✅ Use standard structure
|
|
17924
|
+
return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
|
|
18756
17925
|
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
try {
|
|
18761
|
-
const eventData = convertProtobufValueToJs(
|
|
18762
|
-
eventTrigger.getData()
|
|
18763
|
-
);
|
|
18764
|
-
return { data: eventData };
|
|
18765
|
-
} catch (error) {
|
|
18766
|
-
console.warn(
|
|
18767
|
-
"Failed to convert event trigger data from protobuf Value:",
|
|
18768
|
-
error
|
|
18769
|
-
);
|
|
18770
|
-
return { data: eventTrigger.getData() };
|
|
18771
|
-
}
|
|
18772
|
-
} else if (eventTrigger.data) {
|
|
18773
|
-
const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
|
|
18774
|
-
return { data: eventData };
|
|
18775
|
-
}
|
|
18776
|
-
if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
|
|
18777
|
-
return { data: eventTrigger.getEvmLog()?.toObject() };
|
|
18778
|
-
} else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
|
|
18779
|
-
return { data: eventTrigger.getTransferLog()?.toObject() };
|
|
18780
|
-
} else if (eventTrigger.evmLog) {
|
|
18781
|
-
return { data: eventTrigger.evmLog };
|
|
18782
|
-
} else if (eventTrigger.transferLog) {
|
|
18783
|
-
return { data: eventTrigger.transferLog };
|
|
18784
|
-
}
|
|
18785
|
-
}
|
|
18786
|
-
return { data: null };
|
|
18787
|
-
// ✅ Use standard structure
|
|
18788
|
-
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
|
|
18789
|
-
const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18790
|
-
if (manualTrigger) {
|
|
18791
|
-
if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
|
|
18792
|
-
try {
|
|
18793
|
-
return convertProtobufValueToJs(manualTrigger.getData());
|
|
18794
|
-
} catch (error) {
|
|
18795
|
-
console.warn(
|
|
18796
|
-
"Failed to convert manual trigger data from protobuf Value:",
|
|
18797
|
-
error
|
|
18798
|
-
);
|
|
18799
|
-
return manualTrigger.getData();
|
|
18800
|
-
}
|
|
18801
|
-
} else if (manualTrigger.data) {
|
|
18802
|
-
return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
|
|
18803
|
-
}
|
|
18804
|
-
}
|
|
18805
|
-
return null;
|
|
18806
|
-
}
|
|
18807
|
-
// Node outputs - RESTORE MISSING CASES
|
|
17926
|
+
return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
17927
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
17928
|
+
return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18808
17929
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
18809
|
-
return typeof step.getEthTransfer === "function" ? step.getEthTransfer()
|
|
18810
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
|
|
18821
|
-
}
|
|
18822
|
-
}
|
|
18823
|
-
return void 0;
|
|
18824
|
-
}
|
|
18825
|
-
case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
|
|
18826
|
-
const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18827
|
-
if (restApiOutput) {
|
|
18828
|
-
if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
|
|
18829
|
-
try {
|
|
18830
|
-
return convertProtobufValueToJs(restApiOutput.getData());
|
|
18831
|
-
} catch {
|
|
18832
|
-
return restApiOutput.getData();
|
|
18833
|
-
}
|
|
18834
|
-
} else if (restApiOutput.data) {
|
|
18835
|
-
return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
|
|
18836
|
-
}
|
|
18837
|
-
}
|
|
18838
|
-
return void 0;
|
|
18839
|
-
}
|
|
17930
|
+
return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
|
|
17931
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
17932
|
+
return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
17933
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
17934
|
+
return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
17935
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
17936
|
+
return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
17937
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
17938
|
+
return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
17939
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
17940
|
+
return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18840
17941
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
18841
|
-
return typeof step.getBranch === "function" ? step.getBranch()
|
|
18842
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
try {
|
|
18847
|
-
return JSON.parse(loopOutput.getData());
|
|
18848
|
-
} catch {
|
|
18849
|
-
return loopOutput.getData();
|
|
18850
|
-
}
|
|
18851
|
-
} else if (loopOutput.data) {
|
|
18852
|
-
try {
|
|
18853
|
-
return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
|
|
18854
|
-
} catch {
|
|
18855
|
-
return loopOutput.data;
|
|
18856
|
-
}
|
|
18857
|
-
}
|
|
18858
|
-
}
|
|
18859
|
-
return void 0;
|
|
18860
|
-
}
|
|
18861
|
-
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
|
|
18862
|
-
const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
18863
|
-
if (graphqlOutput) {
|
|
18864
|
-
try {
|
|
18865
|
-
return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
|
|
18866
|
-
} catch {
|
|
18867
|
-
return void 0;
|
|
18868
|
-
}
|
|
18869
|
-
}
|
|
18870
|
-
return void 0;
|
|
18871
|
-
}
|
|
18872
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
|
|
18873
|
-
const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
18874
|
-
if (contractReadOutput) {
|
|
18875
|
-
if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
|
|
18876
|
-
try {
|
|
18877
|
-
const data = convertProtobufValueToJs(
|
|
18878
|
-
contractReadOutput.getData()
|
|
18879
|
-
);
|
|
18880
|
-
if (Array.isArray(data)) {
|
|
18881
|
-
return data;
|
|
18882
|
-
} else {
|
|
18883
|
-
return [data];
|
|
18884
|
-
}
|
|
18885
|
-
} catch (error) {
|
|
18886
|
-
console.warn(
|
|
18887
|
-
"Failed to convert contract read data from protobuf Value:",
|
|
18888
|
-
error
|
|
18889
|
-
);
|
|
18890
|
-
return contractReadOutput.getData();
|
|
18891
|
-
}
|
|
18892
|
-
} else if (contractReadOutput.data) {
|
|
18893
|
-
const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
|
|
18894
|
-
if (Array.isArray(data)) {
|
|
18895
|
-
return data;
|
|
18896
|
-
} else {
|
|
18897
|
-
return [data];
|
|
18898
|
-
}
|
|
18899
|
-
}
|
|
18900
|
-
const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
|
|
18901
|
-
if (outputObj && outputObj.resultsList) {
|
|
18902
|
-
return outputObj.resultsList.map((result) => ({
|
|
18903
|
-
methodName: result.methodName,
|
|
18904
|
-
success: result.success,
|
|
18905
|
-
error: result.error,
|
|
18906
|
-
data: result.dataList || []
|
|
18907
|
-
}));
|
|
18908
|
-
}
|
|
18909
|
-
return outputObj;
|
|
18910
|
-
}
|
|
18911
|
-
return void 0;
|
|
18912
|
-
}
|
|
18913
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
|
|
18914
|
-
const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
18915
|
-
if (contractWriteOutput) {
|
|
18916
|
-
if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
|
|
18917
|
-
try {
|
|
18918
|
-
const data = convertProtobufValueToJs(
|
|
18919
|
-
contractWriteOutput.getData()
|
|
18920
|
-
);
|
|
18921
|
-
if (Array.isArray(data)) {
|
|
18922
|
-
return data;
|
|
18923
|
-
} else {
|
|
18924
|
-
return [data];
|
|
18925
|
-
}
|
|
18926
|
-
} catch (error) {
|
|
18927
|
-
console.warn(
|
|
18928
|
-
"Failed to convert contract write data from protobuf Value:",
|
|
18929
|
-
error
|
|
18930
|
-
);
|
|
18931
|
-
return contractWriteOutput.getData();
|
|
18932
|
-
}
|
|
18933
|
-
} else if (contractWriteOutput.data) {
|
|
18934
|
-
const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
|
|
18935
|
-
if (Array.isArray(data)) {
|
|
18936
|
-
return data;
|
|
18937
|
-
} else {
|
|
18938
|
-
return [data];
|
|
18939
|
-
}
|
|
18940
|
-
}
|
|
18941
|
-
const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
|
|
18942
|
-
if (outputObj && outputObj.resultsList) {
|
|
18943
|
-
return outputObj.resultsList.map((result) => ({
|
|
18944
|
-
methodName: result.methodName,
|
|
18945
|
-
success: result.success,
|
|
18946
|
-
error: result.error,
|
|
18947
|
-
transaction: result.transaction,
|
|
18948
|
-
events: result.eventsList || [],
|
|
18949
|
-
returnData: result.returnData,
|
|
18950
|
-
inputData: result.inputData
|
|
18951
|
-
}));
|
|
18952
|
-
}
|
|
18953
|
-
return outputObj;
|
|
18954
|
-
}
|
|
18955
|
-
return void 0;
|
|
18956
|
-
}
|
|
18957
|
-
case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
|
|
18958
|
-
const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
18959
|
-
if (filterOutput) {
|
|
18960
|
-
try {
|
|
18961
|
-
return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
|
|
18962
|
-
} catch {
|
|
18963
|
-
return void 0;
|
|
18964
|
-
}
|
|
18965
|
-
}
|
|
18966
|
-
return void 0;
|
|
18967
|
-
}
|
|
17942
|
+
return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
|
|
17943
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
17944
|
+
return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
17945
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
17946
|
+
return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
18968
17947
|
default:
|
|
18969
|
-
|
|
18970
|
-
`Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
|
|
18971
|
-
);
|
|
18972
|
-
return void 0;
|
|
17948
|
+
return null;
|
|
18973
17949
|
}
|
|
18974
17950
|
}
|
|
17951
|
+
static getOutputDataCase(step) {
|
|
17952
|
+
if (typeof step.getOutputDataCase === "function") {
|
|
17953
|
+
return step.getOutputDataCase();
|
|
17954
|
+
}
|
|
17955
|
+
const stepObj = step;
|
|
17956
|
+
if (stepObj.blockTrigger)
|
|
17957
|
+
return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
17958
|
+
if (stepObj.fixedTimeTrigger)
|
|
17959
|
+
return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
17960
|
+
if (stepObj.cronTrigger)
|
|
17961
|
+
return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
17962
|
+
if (stepObj.eventTrigger)
|
|
17963
|
+
return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
17964
|
+
if (stepObj.manualTrigger)
|
|
17965
|
+
return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
17966
|
+
if (stepObj.ethTransfer)
|
|
17967
|
+
return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
17968
|
+
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
17969
|
+
if (stepObj.contractRead)
|
|
17970
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
17971
|
+
if (stepObj.contractWrite)
|
|
17972
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
17973
|
+
if (stepObj.customCode)
|
|
17974
|
+
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
17975
|
+
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
17976
|
+
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
17977
|
+
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
17978
|
+
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
17979
|
+
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
17980
|
+
}
|
|
18975
17981
|
static fromResponse(step) {
|
|
18976
|
-
let
|
|
18977
|
-
if (typeof step.
|
|
18978
|
-
const
|
|
18979
|
-
if (
|
|
17982
|
+
let configData = void 0;
|
|
17983
|
+
if (typeof step.hasConfig === "function" && step.hasConfig()) {
|
|
17984
|
+
const configValue = step.getConfig();
|
|
17985
|
+
if (configValue) {
|
|
18980
17986
|
try {
|
|
18981
|
-
|
|
17987
|
+
configData = convertProtobufValueToJs(configValue);
|
|
18982
17988
|
} catch (error) {
|
|
18983
17989
|
console.warn("Failed to convert protobuf input value:", error);
|
|
18984
|
-
|
|
18985
|
-
}
|
|
18986
|
-
}
|
|
18987
|
-
} else if (step.input) {
|
|
18988
|
-
const inputValue = step.input;
|
|
18989
|
-
if (typeof inputValue === "object" && !inputValue.getKindCase) {
|
|
18990
|
-
inputData = inputValue;
|
|
18991
|
-
} else {
|
|
18992
|
-
try {
|
|
18993
|
-
inputData = convertProtobufValueToJs(inputValue);
|
|
18994
|
-
} catch (error) {
|
|
18995
|
-
inputData = inputValue;
|
|
17990
|
+
configData = configValue;
|
|
18996
17991
|
}
|
|
18997
17992
|
}
|
|
18998
17993
|
}
|
|
@@ -19013,7 +18008,7 @@ var Step = class _Step {
|
|
|
19013
18008
|
error: getError(),
|
|
19014
18009
|
log: getLog(),
|
|
19015
18010
|
inputsList: getInputsList(),
|
|
19016
|
-
|
|
18011
|
+
config: configData,
|
|
19017
18012
|
output: _Step.getOutput(step),
|
|
19018
18013
|
startAt: getStartAt(),
|
|
19019
18014
|
endAt: getEndAt()
|
|
@@ -19093,6 +18088,7 @@ var secret_default = Secret;
|
|
|
19093
18088
|
|
|
19094
18089
|
// src/index.ts
|
|
19095
18090
|
var import_types20 = require("@avaprotocol/types");
|
|
18091
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
19096
18092
|
var import_types21 = require("@avaprotocol/types");
|
|
19097
18093
|
var BaseClient = class {
|
|
19098
18094
|
constructor(opts) {
|
|
@@ -19623,30 +18619,43 @@ var Client = class extends BaseClient {
|
|
|
19623
18619
|
switch (triggerData.type) {
|
|
19624
18620
|
case import_types20.TriggerType.FixedTime: {
|
|
19625
18621
|
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
19626
|
-
|
|
19627
|
-
|
|
18622
|
+
const triggerOutputData = {
|
|
18623
|
+
timestamp: triggerData.timestamp,
|
|
18624
|
+
timestampIso: triggerData.timestampIso
|
|
18625
|
+
};
|
|
18626
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18627
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18628
|
+
fixedTimeOutput.setData(dataValue);
|
|
19628
18629
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
19629
18630
|
break;
|
|
19630
18631
|
}
|
|
19631
18632
|
case import_types20.TriggerType.Cron: {
|
|
19632
18633
|
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
19633
|
-
|
|
19634
|
-
|
|
18634
|
+
const triggerOutputData = {
|
|
18635
|
+
timestamp: triggerData.timestamp,
|
|
18636
|
+
timestampIso: triggerData.timestampIso
|
|
18637
|
+
};
|
|
18638
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18639
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18640
|
+
cronOutput.setData(dataValue);
|
|
19635
18641
|
request.setCronTrigger(cronOutput);
|
|
19636
18642
|
break;
|
|
19637
18643
|
}
|
|
19638
18644
|
case import_types20.TriggerType.Block: {
|
|
19639
18645
|
const blockData = triggerData;
|
|
19640
18646
|
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
18647
|
+
const triggerOutputData = {
|
|
18648
|
+
blockNumber: blockData.blockNumber,
|
|
18649
|
+
blockHash: blockData.blockHash || "",
|
|
18650
|
+
timestamp: blockData.timestamp || 0,
|
|
18651
|
+
parentHash: blockData.parentHash || "",
|
|
18652
|
+
difficulty: blockData.difficulty || "",
|
|
18653
|
+
gasLimit: blockData.gasLimit || 0,
|
|
18654
|
+
gasUsed: blockData.gasUsed || 0
|
|
18655
|
+
};
|
|
18656
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18657
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18658
|
+
blockOutput.setData(dataValue);
|
|
19650
18659
|
request.setBlockTrigger(blockOutput);
|
|
19651
18660
|
break;
|
|
19652
18661
|
}
|
|
@@ -19667,18 +18676,6 @@ var Client = class extends BaseClient {
|
|
|
19667
18676
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
19668
18677
|
manualOutput.setData(protobufValue);
|
|
19669
18678
|
}
|
|
19670
|
-
if (manualData.headers) {
|
|
19671
|
-
const headersMap = manualOutput.getHeadersMap();
|
|
19672
|
-
Object.entries(manualData.headers).forEach(([key, value]) => {
|
|
19673
|
-
headersMap.set(key, value);
|
|
19674
|
-
});
|
|
19675
|
-
}
|
|
19676
|
-
if (manualData.pathParams) {
|
|
19677
|
-
const pathParamsMap = manualOutput.getPathparamsMap();
|
|
19678
|
-
Object.entries(manualData.pathParams).forEach(([key, value]) => {
|
|
19679
|
-
pathParamsMap.set(key, value);
|
|
19680
|
-
});
|
|
19681
|
-
}
|
|
19682
18679
|
request.setManualTrigger(manualOutput);
|
|
19683
18680
|
break;
|
|
19684
18681
|
}
|