@avaprotocol/sdk-js 2.5.2-dev.0 → 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 +598 -1599
- package/dist/index.mjs +613 -1602
- 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 +35 -44
- package/package.json +2 -2
package/dist/index.mjs
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.
|
|
1927
|
+
proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
|
|
2129
1928
|
return (
|
|
2130
|
-
/** @type
|
|
2131
|
-
jspb.Message.
|
|
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() {
|
|
2147
|
-
return (
|
|
2148
|
-
/** @type {number} */
|
|
2149
|
-
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
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,52 +3299,44 @@ 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.
|
|
3730
|
-
return (
|
|
3731
|
-
/** @type {string} */
|
|
3732
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3733
|
-
);
|
|
3734
|
-
};
|
|
3735
|
-
proto.aggregator.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
|
|
3736
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3737
|
-
};
|
|
3738
|
-
proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
|
|
3311
|
+
proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
|
|
3739
3312
|
return (
|
|
3740
|
-
/** @type{?proto.
|
|
3741
|
-
jspb.Message.getWrapperField(this,
|
|
3313
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3314
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
3742
3315
|
);
|
|
3743
3316
|
};
|
|
3744
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3317
|
+
proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
|
|
3745
3318
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3746
3319
|
};
|
|
3747
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3748
|
-
return this.
|
|
3320
|
+
proto.aggregator.ETHTransferNode.Output.prototype.clearData = function() {
|
|
3321
|
+
return this.setData(void 0);
|
|
3749
3322
|
};
|
|
3750
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3323
|
+
proto.aggregator.ETHTransferNode.Output.prototype.hasData = function() {
|
|
3751
3324
|
return jspb.Message.getField(this, 1) != null;
|
|
3752
3325
|
};
|
|
3753
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3326
|
+
proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
|
|
3754
3327
|
return (
|
|
3755
|
-
/** @type{?proto.
|
|
3756
|
-
jspb.Message.getWrapperField(this,
|
|
3328
|
+
/** @type{?proto.aggregator.ETHTransferNode.Config} */
|
|
3329
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ETHTransferNode.Config, 1)
|
|
3757
3330
|
);
|
|
3758
3331
|
};
|
|
3759
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3760
|
-
return jspb.Message.setWrapperField(this,
|
|
3332
|
+
proto.aggregator.ETHTransferNode.prototype.setConfig = function(value) {
|
|
3333
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3761
3334
|
};
|
|
3762
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3763
|
-
return this.
|
|
3335
|
+
proto.aggregator.ETHTransferNode.prototype.clearConfig = function() {
|
|
3336
|
+
return this.setConfig(void 0);
|
|
3764
3337
|
};
|
|
3765
|
-
proto.aggregator.ETHTransferNode.prototype.
|
|
3766
|
-
return jspb.Message.getField(this,
|
|
3338
|
+
proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
|
|
3339
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3767
3340
|
};
|
|
3768
3341
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3769
3342
|
proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3771,8 +3344,7 @@ var require_avs_pb = __commonJS({
|
|
|
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;
|
|
@@ -8209,14 +7554,6 @@ var require_avs_pb = __commonJS({
|
|
|
8209
7554
|
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
8210
7555
|
);
|
|
8211
7556
|
}
|
|
8212
|
-
f = message.getInput();
|
|
8213
|
-
if (f != null) {
|
|
8214
|
-
writer.writeMessage(
|
|
8215
|
-
19,
|
|
8216
|
-
f,
|
|
8217
|
-
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
8218
|
-
);
|
|
8219
|
-
}
|
|
8220
7557
|
};
|
|
8221
7558
|
proto.aggregator.TaskNode.prototype.getId = function() {
|
|
8222
7559
|
return (
|
|
@@ -8371,29 +7708,14 @@ var require_avs_pb = __commonJS({
|
|
|
8371
7708
|
jspb.Message.getWrapperField(this, proto.aggregator.CustomCodeNode, 18)
|
|
8372
7709
|
);
|
|
8373
7710
|
};
|
|
8374
|
-
proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
|
|
8375
|
-
return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
|
|
8376
|
-
};
|
|
8377
|
-
proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
|
|
8378
|
-
return this.setCustomCode(void 0);
|
|
8379
|
-
};
|
|
8380
|
-
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
8381
|
-
return jspb.Message.getField(this, 18) != null;
|
|
8382
|
-
};
|
|
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);
|
|
7711
|
+
proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
|
|
7712
|
+
return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
|
|
8391
7713
|
};
|
|
8392
|
-
proto.aggregator.TaskNode.prototype.
|
|
8393
|
-
return this.
|
|
7714
|
+
proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
|
|
7715
|
+
return this.setCustomCode(void 0);
|
|
8394
7716
|
};
|
|
8395
|
-
proto.aggregator.TaskNode.prototype.
|
|
8396
|
-
return jspb.Message.getField(this,
|
|
7717
|
+
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
7718
|
+
return jspb.Message.getField(this, 18) != null;
|
|
8397
7719
|
};
|
|
8398
7720
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
8399
7721
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -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() {
|
|
@@ -16793,11 +16115,17 @@ var Trigger = class {
|
|
|
16793
16115
|
this.type = props.type;
|
|
16794
16116
|
this.data = props.data;
|
|
16795
16117
|
this.output = props.output;
|
|
16796
|
-
this.input = props.input;
|
|
16797
16118
|
}
|
|
16798
16119
|
toRequest() {
|
|
16799
16120
|
throw new Error("Method not implemented.");
|
|
16800
16121
|
}
|
|
16122
|
+
static fromResponse(raw) {
|
|
16123
|
+
const obj = raw.toObject();
|
|
16124
|
+
return new this({
|
|
16125
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
16126
|
+
...obj
|
|
16127
|
+
});
|
|
16128
|
+
}
|
|
16801
16129
|
getOutput() {
|
|
16802
16130
|
return this.output;
|
|
16803
16131
|
}
|
|
@@ -16807,14 +16135,163 @@ var Trigger = class {
|
|
|
16807
16135
|
name: this.name,
|
|
16808
16136
|
type: this.type,
|
|
16809
16137
|
data: this.data,
|
|
16810
|
-
output: this.output
|
|
16811
|
-
input: this.input
|
|
16138
|
+
output: this.output
|
|
16812
16139
|
};
|
|
16813
16140
|
}
|
|
16814
16141
|
};
|
|
16815
16142
|
|
|
16816
16143
|
// src/models/trigger/block.ts
|
|
16817
|
-
import {
|
|
16144
|
+
import {
|
|
16145
|
+
TriggerType as TriggerType2
|
|
16146
|
+
} from "@avaprotocol/types";
|
|
16147
|
+
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
16148
|
+
constructor(props) {
|
|
16149
|
+
super({ ...props, type: TriggerType2.Block, data: props.data });
|
|
16150
|
+
}
|
|
16151
|
+
toRequest() {
|
|
16152
|
+
const request = new avs_pb2.TaskTrigger();
|
|
16153
|
+
request.setName(this.name);
|
|
16154
|
+
request.setId(this.id);
|
|
16155
|
+
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
16156
|
+
if (!this.data) {
|
|
16157
|
+
throw new Error(`Trigger data is missing for block`);
|
|
16158
|
+
}
|
|
16159
|
+
const blockData = this.data;
|
|
16160
|
+
if (blockData.interval === null || blockData.interval === void 0) {
|
|
16161
|
+
throw new Error("Interval is required for block trigger");
|
|
16162
|
+
}
|
|
16163
|
+
if (!Number.isInteger(blockData.interval)) {
|
|
16164
|
+
throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
|
|
16165
|
+
}
|
|
16166
|
+
if (blockData.interval <= 0) {
|
|
16167
|
+
throw new Error(`Interval must be greater than 0`);
|
|
16168
|
+
}
|
|
16169
|
+
const trigger = new avs_pb2.BlockTrigger();
|
|
16170
|
+
const config = new avs_pb2.BlockTrigger.Config();
|
|
16171
|
+
config.setInterval(blockData.interval);
|
|
16172
|
+
trigger.setConfig(config);
|
|
16173
|
+
request.setBlock(trigger);
|
|
16174
|
+
return request;
|
|
16175
|
+
}
|
|
16176
|
+
static fromResponse(raw) {
|
|
16177
|
+
const obj = raw.toObject();
|
|
16178
|
+
let data = { interval: 0 };
|
|
16179
|
+
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
16180
|
+
const config = raw.getBlock().getConfig();
|
|
16181
|
+
if (config) {
|
|
16182
|
+
data = {
|
|
16183
|
+
interval: config.getInterval() || 0
|
|
16184
|
+
};
|
|
16185
|
+
}
|
|
16186
|
+
}
|
|
16187
|
+
return new _BlockTrigger({
|
|
16188
|
+
...obj,
|
|
16189
|
+
type: TriggerType2.Block,
|
|
16190
|
+
data
|
|
16191
|
+
});
|
|
16192
|
+
}
|
|
16193
|
+
/**
|
|
16194
|
+
* Convert raw data from runNodeWithInputs response to BlockOutput format
|
|
16195
|
+
* @param rawData - The raw data from the gRPC response
|
|
16196
|
+
* @returns {BlockTriggerOutput | undefined} - The converted data
|
|
16197
|
+
*/
|
|
16198
|
+
getOutput() {
|
|
16199
|
+
return this.output;
|
|
16200
|
+
}
|
|
16201
|
+
/**
|
|
16202
|
+
* Extract output data from RunTriggerResp for block triggers
|
|
16203
|
+
* @param outputData - The RunTriggerResp containing block trigger output
|
|
16204
|
+
* @returns Plain JavaScript object with block trigger data
|
|
16205
|
+
*/
|
|
16206
|
+
static fromOutputData(outputData) {
|
|
16207
|
+
const blockOutput = outputData.getBlockTrigger();
|
|
16208
|
+
if (!blockOutput) return null;
|
|
16209
|
+
const dataValue = blockOutput.getData();
|
|
16210
|
+
if (!dataValue) return null;
|
|
16211
|
+
const result = dataValue.toJavaScript();
|
|
16212
|
+
return result;
|
|
16213
|
+
}
|
|
16214
|
+
};
|
|
16215
|
+
var block_default = BlockTrigger2;
|
|
16216
|
+
|
|
16217
|
+
// src/models/trigger/cron.ts
|
|
16218
|
+
var avs_pb3 = __toESM(require_avs_pb());
|
|
16219
|
+
import {
|
|
16220
|
+
TriggerType as TriggerType4
|
|
16221
|
+
} from "@avaprotocol/types";
|
|
16222
|
+
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
16223
|
+
constructor(props) {
|
|
16224
|
+
super({ ...props, type: TriggerType4.Cron, data: props.data });
|
|
16225
|
+
}
|
|
16226
|
+
toRequest() {
|
|
16227
|
+
const request = new avs_pb3.TaskTrigger();
|
|
16228
|
+
request.setName(this.name);
|
|
16229
|
+
request.setId(this.id);
|
|
16230
|
+
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
16231
|
+
if (!this.data) {
|
|
16232
|
+
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
16233
|
+
}
|
|
16234
|
+
const cronData = this.data;
|
|
16235
|
+
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
16236
|
+
throw new Error("Schedules are required for cron trigger");
|
|
16237
|
+
}
|
|
16238
|
+
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
16239
|
+
throw new Error("Schedules are required for cron trigger");
|
|
16240
|
+
}
|
|
16241
|
+
const trigger = new avs_pb3.CronTrigger();
|
|
16242
|
+
const config = new avs_pb3.CronTrigger.Config();
|
|
16243
|
+
config.setSchedulesList(cronData.schedules);
|
|
16244
|
+
trigger.setConfig(config);
|
|
16245
|
+
request.setCron(trigger);
|
|
16246
|
+
return request;
|
|
16247
|
+
}
|
|
16248
|
+
static fromResponse(raw) {
|
|
16249
|
+
const obj = raw.toObject();
|
|
16250
|
+
let data = { schedules: [] };
|
|
16251
|
+
if (raw.getCron() && raw.getCron().hasConfig()) {
|
|
16252
|
+
const config = raw.getCron().getConfig();
|
|
16253
|
+
if (config) {
|
|
16254
|
+
data = {
|
|
16255
|
+
schedules: config.getSchedulesList() || []
|
|
16256
|
+
};
|
|
16257
|
+
}
|
|
16258
|
+
}
|
|
16259
|
+
return new _CronTrigger({
|
|
16260
|
+
...obj,
|
|
16261
|
+
type: TriggerType4.Cron,
|
|
16262
|
+
data
|
|
16263
|
+
});
|
|
16264
|
+
}
|
|
16265
|
+
/**
|
|
16266
|
+
* Convert raw data from runTrigger response to CronOutput format
|
|
16267
|
+
* @param rawData - The raw data from the gRPC response
|
|
16268
|
+
* @returns {CronTriggerOutput | undefined} - The converted data
|
|
16269
|
+
*/
|
|
16270
|
+
getOutput() {
|
|
16271
|
+
return this.output;
|
|
16272
|
+
}
|
|
16273
|
+
/**
|
|
16274
|
+
* Extract output data from RunTriggerResp for cron triggers
|
|
16275
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
16276
|
+
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
16277
|
+
* @returns Plain JavaScript object with cron trigger data
|
|
16278
|
+
*/
|
|
16279
|
+
static fromOutputData(outputData) {
|
|
16280
|
+
const cronOutput = outputData.getCronTrigger();
|
|
16281
|
+
if (!cronOutput) return null;
|
|
16282
|
+
const dataValue = cronOutput.getData();
|
|
16283
|
+
if (!dataValue) return null;
|
|
16284
|
+
const result = dataValue.toJavaScript();
|
|
16285
|
+
return result;
|
|
16286
|
+
}
|
|
16287
|
+
};
|
|
16288
|
+
var cron_default = CronTrigger2;
|
|
16289
|
+
|
|
16290
|
+
// src/models/trigger/event.ts
|
|
16291
|
+
var avs_pb4 = __toESM(require_avs_pb());
|
|
16292
|
+
import {
|
|
16293
|
+
TriggerType as TriggerType7
|
|
16294
|
+
} from "@avaprotocol/types";
|
|
16818
16295
|
|
|
16819
16296
|
// src/utils.ts
|
|
16820
16297
|
import {
|
|
@@ -16822,7 +16299,7 @@ import {
|
|
|
16822
16299
|
Struct as ProtobufStruct,
|
|
16823
16300
|
ListValue as ProtobufListValue
|
|
16824
16301
|
} from "google-protobuf/google/protobuf/struct_pb";
|
|
16825
|
-
import { TriggerType, NodeType } from "@avaprotocol/types";
|
|
16302
|
+
import { TriggerType as TriggerType5, NodeType } from "@avaprotocol/types";
|
|
16826
16303
|
function convertProtobufValueToJs(value) {
|
|
16827
16304
|
if (!value) {
|
|
16828
16305
|
return void 0;
|
|
@@ -16886,22 +16363,22 @@ function convertJSValueToProtobuf(value) {
|
|
|
16886
16363
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16887
16364
|
switch (protobufType) {
|
|
16888
16365
|
case "TRIGGER_TYPE_MANUAL":
|
|
16889
|
-
return
|
|
16366
|
+
return TriggerType5.Manual;
|
|
16890
16367
|
// "manualTrigger"
|
|
16891
16368
|
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16892
|
-
return
|
|
16369
|
+
return TriggerType5.FixedTime;
|
|
16893
16370
|
// "fixedTimeTrigger"
|
|
16894
16371
|
case "TRIGGER_TYPE_CRON":
|
|
16895
|
-
return
|
|
16372
|
+
return TriggerType5.Cron;
|
|
16896
16373
|
// "cronTrigger"
|
|
16897
16374
|
case "TRIGGER_TYPE_BLOCK":
|
|
16898
|
-
return
|
|
16375
|
+
return TriggerType5.Block;
|
|
16899
16376
|
// "blockTrigger"
|
|
16900
16377
|
case "TRIGGER_TYPE_EVENT":
|
|
16901
|
-
return
|
|
16378
|
+
return TriggerType5.Event;
|
|
16902
16379
|
// "eventTrigger"
|
|
16903
16380
|
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16904
|
-
return
|
|
16381
|
+
return TriggerType5.Unspecified;
|
|
16905
16382
|
// "unspecified"
|
|
16906
16383
|
default:
|
|
16907
16384
|
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
@@ -16939,235 +16416,67 @@ function convertProtobufNodeTypeToSdk(protobufType) {
|
|
|
16939
16416
|
// "loop"
|
|
16940
16417
|
case "NODE_TYPE_UNSPECIFIED":
|
|
16941
16418
|
return NodeType.Unspecified;
|
|
16942
|
-
// "unspecified"
|
|
16943
|
-
default:
|
|
16944
|
-
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16945
|
-
return protobufType;
|
|
16946
|
-
}
|
|
16947
|
-
}
|
|
16948
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16949
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16950
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16951
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16952
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16953
|
-
} else {
|
|
16954
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16955
|
-
return protobufType;
|
|
16956
|
-
}
|
|
16957
|
-
}
|
|
16958
|
-
function convertInputToProtobuf(input) {
|
|
16959
|
-
if (!input) {
|
|
16960
|
-
return void 0;
|
|
16961
|
-
}
|
|
16962
|
-
return convertJSValueToProtobuf(input);
|
|
16963
|
-
}
|
|
16964
|
-
function extractInputFromProtobuf(inputValue) {
|
|
16965
|
-
if (!inputValue) {
|
|
16966
|
-
return void 0;
|
|
16967
|
-
}
|
|
16968
|
-
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16969
|
-
if (!Array.isArray(inputValue)) {
|
|
16970
|
-
return inputValue;
|
|
16971
|
-
}
|
|
16972
|
-
return void 0;
|
|
16973
|
-
}
|
|
16974
|
-
try {
|
|
16975
|
-
const protobufValue = inputValue;
|
|
16976
|
-
const inputJavaScript = protobufValue.toJavaScript();
|
|
16977
|
-
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16978
|
-
return inputJavaScript;
|
|
16979
|
-
}
|
|
16980
|
-
} catch (error) {
|
|
16981
|
-
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
16982
|
-
return inputValue;
|
|
16983
|
-
}
|
|
16984
|
-
}
|
|
16985
|
-
return void 0;
|
|
16986
|
-
}
|
|
16987
|
-
function cleanGrpcErrorMessage(message) {
|
|
16988
|
-
if (!message) return message;
|
|
16989
|
-
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
16990
|
-
const match = message.match(grpcErrorPattern);
|
|
16991
|
-
if (match && match[1]) {
|
|
16992
|
-
return match[1].trim();
|
|
16993
|
-
}
|
|
16994
|
-
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
16995
|
-
const statusMatch = message.match(statusCodePattern);
|
|
16996
|
-
if (statusMatch && statusMatch[1]) {
|
|
16997
|
-
return statusMatch[1].trim();
|
|
16998
|
-
}
|
|
16999
|
-
return message;
|
|
17000
|
-
}
|
|
17001
|
-
|
|
17002
|
-
// src/models/trigger/block.ts
|
|
17003
|
-
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
17004
|
-
constructor(props) {
|
|
17005
|
-
super({ ...props, type: TriggerType3.Block, data: props.data });
|
|
17006
|
-
}
|
|
17007
|
-
toRequest() {
|
|
17008
|
-
const request = new avs_pb2.TaskTrigger();
|
|
17009
|
-
request.setName(this.name);
|
|
17010
|
-
request.setId(this.id);
|
|
17011
|
-
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
17012
|
-
if (!this.data) {
|
|
17013
|
-
throw new Error(`Trigger data is missing for block`);
|
|
17014
|
-
}
|
|
17015
|
-
const blockData = this.data;
|
|
17016
|
-
if (blockData.interval === null || blockData.interval === void 0) {
|
|
17017
|
-
throw new Error("Interval is required for block trigger");
|
|
17018
|
-
}
|
|
17019
|
-
if (blockData.interval <= 0) {
|
|
17020
|
-
throw new Error("Interval must be greater than 0");
|
|
17021
|
-
}
|
|
17022
|
-
const trigger = new avs_pb2.BlockTrigger();
|
|
17023
|
-
const config = new avs_pb2.BlockTrigger.Config();
|
|
17024
|
-
config.setInterval(blockData.interval);
|
|
17025
|
-
trigger.setConfig(config);
|
|
17026
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17027
|
-
if (inputValue) {
|
|
17028
|
-
trigger.setInput(inputValue);
|
|
17029
|
-
}
|
|
17030
|
-
request.setBlock(trigger);
|
|
17031
|
-
return request;
|
|
17032
|
-
}
|
|
17033
|
-
static fromResponse(raw) {
|
|
17034
|
-
const obj = raw.toObject();
|
|
17035
|
-
let data = { interval: 0 };
|
|
17036
|
-
let input = void 0;
|
|
17037
|
-
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
17038
|
-
const config = raw.getBlock().getConfig();
|
|
17039
|
-
if (config) {
|
|
17040
|
-
data = {
|
|
17041
|
-
interval: config.getInterval() || 0
|
|
17042
|
-
};
|
|
17043
|
-
}
|
|
17044
|
-
const blockTrigger = raw.getBlock();
|
|
17045
|
-
if (blockTrigger.hasInput()) {
|
|
17046
|
-
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
17047
|
-
}
|
|
17048
|
-
}
|
|
17049
|
-
return new _BlockTrigger({
|
|
17050
|
-
...obj,
|
|
17051
|
-
type: TriggerType3.Block,
|
|
17052
|
-
data,
|
|
17053
|
-
input
|
|
17054
|
-
});
|
|
17055
|
-
}
|
|
17056
|
-
/**
|
|
17057
|
-
* Convert raw data from runNodeWithInputs response to BlockOutput format
|
|
17058
|
-
* @param rawData - The raw data from the gRPC response
|
|
17059
|
-
* @returns {BlockTriggerOutput | undefined} - The converted data
|
|
17060
|
-
*/
|
|
17061
|
-
getOutput() {
|
|
17062
|
-
return this.output;
|
|
16419
|
+
// "unspecified"
|
|
16420
|
+
default:
|
|
16421
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16422
|
+
return protobufType;
|
|
17063
16423
|
}
|
|
17064
|
-
|
|
17065
|
-
|
|
17066
|
-
|
|
17067
|
-
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
16424
|
+
}
|
|
16425
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16426
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16427
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16428
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16429
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16430
|
+
} else {
|
|
16431
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16432
|
+
return protobufType;
|
|
17072
16433
|
}
|
|
17073
|
-
}
|
|
17074
|
-
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
var avs_pb3 = __toESM(require_avs_pb());
|
|
17078
|
-
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
17079
|
-
import { TriggerType as TriggerType5 } from "@avaprotocol/types";
|
|
17080
|
-
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
17081
|
-
constructor(props) {
|
|
17082
|
-
super({ ...props, type: TriggerType5.Cron, data: props.data });
|
|
16434
|
+
}
|
|
16435
|
+
function convertInputToProtobuf(input) {
|
|
16436
|
+
if (!input) {
|
|
16437
|
+
return void 0;
|
|
17083
16438
|
}
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
17094
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17095
|
-
}
|
|
17096
|
-
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
17097
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17098
|
-
}
|
|
17099
|
-
const trigger = new avs_pb3.CronTrigger();
|
|
17100
|
-
const config = new avs_pb3.CronTrigger.Config();
|
|
17101
|
-
config.setSchedulesList(cronData.schedules);
|
|
17102
|
-
trigger.setConfig(config);
|
|
17103
|
-
if (this.input) {
|
|
17104
|
-
try {
|
|
17105
|
-
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
17106
|
-
trigger.setInput(inputValue);
|
|
17107
|
-
} catch (error) {
|
|
17108
|
-
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
17109
|
-
}
|
|
16439
|
+
return convertJSValueToProtobuf(input);
|
|
16440
|
+
}
|
|
16441
|
+
function extractInputFromProtobuf(inputValue) {
|
|
16442
|
+
if (!inputValue) {
|
|
16443
|
+
return void 0;
|
|
16444
|
+
}
|
|
16445
|
+
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16446
|
+
if (!Array.isArray(inputValue)) {
|
|
16447
|
+
return inputValue;
|
|
17110
16448
|
}
|
|
17111
|
-
|
|
17112
|
-
return request;
|
|
16449
|
+
return void 0;
|
|
17113
16450
|
}
|
|
17114
|
-
|
|
17115
|
-
const
|
|
17116
|
-
|
|
17117
|
-
if (
|
|
17118
|
-
|
|
17119
|
-
if (config) {
|
|
17120
|
-
data = {
|
|
17121
|
-
schedules: config.getSchedulesList() || []
|
|
17122
|
-
};
|
|
17123
|
-
}
|
|
16451
|
+
try {
|
|
16452
|
+
const protobufValue = inputValue;
|
|
16453
|
+
const inputJavaScript = protobufValue.toJavaScript();
|
|
16454
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16455
|
+
return inputJavaScript;
|
|
17124
16456
|
}
|
|
17125
|
-
|
|
17126
|
-
if (
|
|
17127
|
-
|
|
17128
|
-
if (inputValue) {
|
|
17129
|
-
input = inputValue.toObject();
|
|
17130
|
-
}
|
|
16457
|
+
} catch (error) {
|
|
16458
|
+
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
16459
|
+
return inputValue;
|
|
17131
16460
|
}
|
|
17132
|
-
return new _CronTrigger({
|
|
17133
|
-
...obj,
|
|
17134
|
-
type: TriggerType5.Cron,
|
|
17135
|
-
data,
|
|
17136
|
-
input
|
|
17137
|
-
// ✨ NEW: Include input data
|
|
17138
|
-
});
|
|
17139
16461
|
}
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
16462
|
+
return void 0;
|
|
16463
|
+
}
|
|
16464
|
+
function cleanGrpcErrorMessage(message) {
|
|
16465
|
+
if (!message) return message;
|
|
16466
|
+
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
16467
|
+
const match = message.match(grpcErrorPattern);
|
|
16468
|
+
if (match && match[1]) {
|
|
16469
|
+
return match[1].trim();
|
|
17147
16470
|
}
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
* @returns Plain JavaScript object with cron trigger data
|
|
17153
|
-
*/
|
|
17154
|
-
static fromOutputData(outputData) {
|
|
17155
|
-
const cronOutput = outputData.getCronTrigger();
|
|
17156
|
-
if (!cronOutput) return null;
|
|
17157
|
-
const outputObj = cronOutput.toObject();
|
|
17158
|
-
return {
|
|
17159
|
-
timestamp: outputObj.timestamp,
|
|
17160
|
-
timestampIso: outputObj.timestampIso
|
|
17161
|
-
};
|
|
16471
|
+
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
16472
|
+
const statusMatch = message.match(statusCodePattern);
|
|
16473
|
+
if (statusMatch && statusMatch[1]) {
|
|
16474
|
+
return statusMatch[1].trim();
|
|
17162
16475
|
}
|
|
17163
|
-
|
|
17164
|
-
|
|
16476
|
+
return message;
|
|
16477
|
+
}
|
|
17165
16478
|
|
|
17166
16479
|
// src/models/trigger/event.ts
|
|
17167
|
-
var avs_pb4 = __toESM(require_avs_pb());
|
|
17168
|
-
import {
|
|
17169
|
-
TriggerType as TriggerType7
|
|
17170
|
-
} from "@avaprotocol/types";
|
|
17171
16480
|
var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
17172
16481
|
constructor(props) {
|
|
17173
16482
|
super({ ...props, type: TriggerType7.Event, data: props.data });
|
|
@@ -17240,17 +16549,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17240
16549
|
});
|
|
17241
16550
|
config.setQueriesList(queryMessages);
|
|
17242
16551
|
trigger.setConfig(config);
|
|
17243
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17244
|
-
if (inputValue) {
|
|
17245
|
-
trigger.setInput(inputValue);
|
|
17246
|
-
}
|
|
17247
16552
|
request.setEvent(trigger);
|
|
17248
16553
|
return request;
|
|
17249
16554
|
}
|
|
17250
16555
|
static fromResponse(raw) {
|
|
17251
16556
|
const obj = raw.toObject();
|
|
17252
16557
|
let data = { queries: [] };
|
|
17253
|
-
let input = void 0;
|
|
17254
16558
|
if (raw.getEvent() && raw.getEvent().hasConfig()) {
|
|
17255
16559
|
const config = raw.getEvent().getConfig();
|
|
17256
16560
|
if (config) {
|
|
@@ -17300,15 +16604,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17300
16604
|
}
|
|
17301
16605
|
data = { queries };
|
|
17302
16606
|
}
|
|
17303
|
-
if (raw.getEvent().hasInput()) {
|
|
17304
|
-
input = extractInputFromProtobuf(raw.getEvent().getInput());
|
|
17305
|
-
}
|
|
17306
16607
|
}
|
|
17307
16608
|
return new _EventTrigger({
|
|
17308
16609
|
...obj,
|
|
17309
16610
|
type: TriggerType7.Event,
|
|
17310
|
-
data
|
|
17311
|
-
input
|
|
16611
|
+
data
|
|
17312
16612
|
});
|
|
17313
16613
|
}
|
|
17314
16614
|
/**
|
|
@@ -17351,7 +16651,9 @@ var event_default = EventTrigger2;
|
|
|
17351
16651
|
|
|
17352
16652
|
// src/models/trigger/fixedTime.ts
|
|
17353
16653
|
var avs_pb5 = __toESM(require_avs_pb());
|
|
17354
|
-
import {
|
|
16654
|
+
import {
|
|
16655
|
+
TriggerType as TriggerType9
|
|
16656
|
+
} from "@avaprotocol/types";
|
|
17355
16657
|
var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
17356
16658
|
constructor(props) {
|
|
17357
16659
|
super({ ...props, type: TriggerType9.FixedTime, data: props.data });
|
|
@@ -17366,19 +16668,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17366
16668
|
}
|
|
17367
16669
|
const trigger = new avs_pb5.FixedTimeTrigger();
|
|
17368
16670
|
const config = new avs_pb5.FixedTimeTrigger.Config();
|
|
17369
|
-
config.setEpochsList(
|
|
16671
|
+
config.setEpochsList(
|
|
16672
|
+
this.data.epochsList || []
|
|
16673
|
+
);
|
|
17370
16674
|
trigger.setConfig(config);
|
|
17371
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17372
|
-
if (inputValue) {
|
|
17373
|
-
trigger.setInput(inputValue);
|
|
17374
|
-
}
|
|
17375
16675
|
request.setFixedTime(trigger);
|
|
17376
16676
|
return request;
|
|
17377
16677
|
}
|
|
17378
16678
|
static fromResponse(raw) {
|
|
17379
16679
|
const obj = raw.toObject();
|
|
17380
16680
|
let data = { epochsList: [] };
|
|
17381
|
-
let input = void 0;
|
|
17382
16681
|
if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
|
|
17383
16682
|
const config = raw.getFixedTime().getConfig();
|
|
17384
16683
|
if (config) {
|
|
@@ -17386,15 +16685,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17386
16685
|
epochsList: config.getEpochsList() || []
|
|
17387
16686
|
};
|
|
17388
16687
|
}
|
|
17389
|
-
if (raw.getFixedTime().hasInput()) {
|
|
17390
|
-
input = extractInputFromProtobuf(raw.getFixedTime().getInput());
|
|
17391
|
-
}
|
|
17392
16688
|
}
|
|
17393
16689
|
return new _FixedTimeTrigger({
|
|
17394
16690
|
...obj,
|
|
17395
16691
|
type: TriggerType9.FixedTime,
|
|
17396
|
-
data
|
|
17397
|
-
input
|
|
16692
|
+
data
|
|
17398
16693
|
});
|
|
17399
16694
|
}
|
|
17400
16695
|
/**
|
|
@@ -17414,11 +16709,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17414
16709
|
static fromOutputData(outputData) {
|
|
17415
16710
|
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
17416
16711
|
if (!fixedTimeOutput) return null;
|
|
17417
|
-
const
|
|
17418
|
-
return
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
};
|
|
16712
|
+
const dataValue = fixedTimeOutput.getData();
|
|
16713
|
+
if (!dataValue) return null;
|
|
16714
|
+
const result = dataValue.toJavaScript();
|
|
16715
|
+
return result;
|
|
17422
16716
|
}
|
|
17423
16717
|
};
|
|
17424
16718
|
var fixedTime_default = FixedTimeTrigger2;
|
|
@@ -17436,8 +16730,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17436
16730
|
data: props.data,
|
|
17437
16731
|
input: props.input
|
|
17438
16732
|
});
|
|
17439
|
-
this.headers = props.headers;
|
|
17440
|
-
this.pathParams = props.pathParams;
|
|
17441
16733
|
}
|
|
17442
16734
|
toRequest() {
|
|
17443
16735
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -17446,22 +16738,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17446
16738
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
17447
16739
|
const manualTrigger = new avs_pb6.ManualTrigger();
|
|
17448
16740
|
const config = new avs_pb6.ManualTrigger.Config();
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
16741
|
+
if (this.data === null || this.data === void 0) {
|
|
16742
|
+
throw new Error("ManualTrigger data is required");
|
|
16743
|
+
}
|
|
16744
|
+
let actualData = this.data;
|
|
16745
|
+
let headers = {};
|
|
16746
|
+
let pathParams = {};
|
|
16747
|
+
if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
|
|
16748
|
+
const dataObj = this.data;
|
|
16749
|
+
if ("data" in dataObj) {
|
|
16750
|
+
actualData = dataObj.data;
|
|
16751
|
+
headers = dataObj.headers || {};
|
|
16752
|
+
pathParams = dataObj.pathParams || {};
|
|
17454
16753
|
}
|
|
17455
16754
|
}
|
|
17456
|
-
|
|
16755
|
+
const dataValue = convertInputToProtobuf(actualData);
|
|
16756
|
+
if (!dataValue) {
|
|
16757
|
+
throw new Error(
|
|
16758
|
+
"Failed to convert ManualTrigger data to protobuf format"
|
|
16759
|
+
);
|
|
16760
|
+
}
|
|
16761
|
+
config.setData(dataValue);
|
|
16762
|
+
if (Object.keys(headers).length > 0) {
|
|
17457
16763
|
const headersMap = config.getHeadersMap();
|
|
17458
|
-
Object.entries(
|
|
16764
|
+
Object.entries(headers).forEach(([key, value]) => {
|
|
17459
16765
|
headersMap.set(key, value);
|
|
17460
16766
|
});
|
|
17461
16767
|
}
|
|
17462
|
-
if (
|
|
16768
|
+
if (Object.keys(pathParams).length > 0) {
|
|
17463
16769
|
const pathParamsMap = config.getPathparamsMap();
|
|
17464
|
-
Object.entries(
|
|
16770
|
+
Object.entries(pathParams).forEach(([key, value]) => {
|
|
17465
16771
|
pathParamsMap.set(key, value);
|
|
17466
16772
|
});
|
|
17467
16773
|
}
|
|
@@ -17471,45 +16777,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17471
16777
|
}
|
|
17472
16778
|
static fromResponse(raw) {
|
|
17473
16779
|
const obj = raw.toObject();
|
|
17474
|
-
let
|
|
17475
|
-
const input = void 0;
|
|
17476
|
-
let headers = void 0;
|
|
17477
|
-
let pathParams = void 0;
|
|
16780
|
+
let actualData = null;
|
|
17478
16781
|
const manualTrigger = raw.getManual();
|
|
17479
16782
|
if (manualTrigger) {
|
|
17480
16783
|
const config = manualTrigger.getConfig();
|
|
17481
16784
|
if (config) {
|
|
17482
16785
|
if (config.hasData()) {
|
|
17483
|
-
|
|
17484
|
-
}
|
|
17485
|
-
const headersMapProto = config.getHeadersMap();
|
|
17486
|
-
if (headersMapProto && headersMapProto.getLength() > 0) {
|
|
17487
|
-
headers = {};
|
|
17488
|
-
headersMapProto.forEach((value, key) => {
|
|
17489
|
-
headers[key] = value;
|
|
17490
|
-
});
|
|
17491
|
-
}
|
|
17492
|
-
const pathParamsMapProto = config.getPathparamsMap();
|
|
17493
|
-
if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
|
|
17494
|
-
pathParams = {};
|
|
17495
|
-
pathParamsMapProto.forEach((value, key) => {
|
|
17496
|
-
pathParams[key] = value;
|
|
17497
|
-
});
|
|
16786
|
+
actualData = extractInputFromProtobuf(config.getData());
|
|
17498
16787
|
}
|
|
17499
16788
|
}
|
|
17500
16789
|
}
|
|
16790
|
+
const manualTriggerData = {
|
|
16791
|
+
data: actualData
|
|
16792
|
+
};
|
|
17501
16793
|
return new _ManualTrigger({
|
|
17502
16794
|
...obj,
|
|
17503
16795
|
type: TriggerType11.Manual,
|
|
17504
|
-
data
|
|
17505
|
-
input,
|
|
17506
|
-
headers,
|
|
17507
|
-
pathParams
|
|
16796
|
+
data: manualTriggerData
|
|
17508
16797
|
});
|
|
17509
16798
|
}
|
|
17510
|
-
getInputVariables() {
|
|
17511
|
-
return this.input;
|
|
17512
|
-
}
|
|
17513
16799
|
/**
|
|
17514
16800
|
* Extract output data from RunTriggerResp for manual triggers
|
|
17515
16801
|
* @param outputData - The RunTriggerResp containing manual trigger output
|
|
@@ -17612,13 +16898,11 @@ var avs_pb8 = __toESM(require_avs_pb());
|
|
|
17612
16898
|
import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
17613
16899
|
import _ from "lodash";
|
|
17614
16900
|
var Node = class {
|
|
17615
|
-
// Use JavaScript object type for internal storage
|
|
17616
16901
|
constructor(props) {
|
|
17617
16902
|
this.id = props.id;
|
|
17618
16903
|
this.name = props.name;
|
|
17619
16904
|
this.type = props.type;
|
|
17620
16905
|
this.data = props.data;
|
|
17621
|
-
this.input = props.input;
|
|
17622
16906
|
}
|
|
17623
16907
|
toRequest() {
|
|
17624
16908
|
const request = new avs_pb8.TaskNode();
|
|
@@ -17631,13 +16915,8 @@ var Node = class {
|
|
|
17631
16915
|
}
|
|
17632
16916
|
static fromResponse(raw) {
|
|
17633
16917
|
const obj = raw.toObject();
|
|
17634
|
-
let input = void 0;
|
|
17635
|
-
if (raw.hasInput()) {
|
|
17636
|
-
input = raw.getInput().toObject();
|
|
17637
|
-
}
|
|
17638
16918
|
return new this({
|
|
17639
|
-
...obj
|
|
17640
|
-
input
|
|
16919
|
+
...obj
|
|
17641
16920
|
});
|
|
17642
16921
|
}
|
|
17643
16922
|
};
|
|
@@ -17686,15 +16965,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17686
16965
|
methodName: call.methodName
|
|
17687
16966
|
})) || []
|
|
17688
16967
|
};
|
|
17689
|
-
let input = void 0;
|
|
17690
|
-
if (raw.hasInput()) {
|
|
17691
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17692
|
-
}
|
|
17693
16968
|
return new _ContractWriteNode({
|
|
17694
16969
|
...obj,
|
|
17695
16970
|
type: NodeType3.ContractWrite,
|
|
17696
|
-
data
|
|
17697
|
-
input
|
|
16971
|
+
data
|
|
17698
16972
|
});
|
|
17699
16973
|
}
|
|
17700
16974
|
toRequest() {
|
|
@@ -17704,10 +16978,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17704
16978
|
const node = _ContractWriteNode.createProtobufNode(
|
|
17705
16979
|
this.data
|
|
17706
16980
|
);
|
|
17707
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17708
|
-
if (inputValue) {
|
|
17709
|
-
request.setInput(inputValue);
|
|
17710
|
-
}
|
|
17711
16981
|
request.setContractWrite(node);
|
|
17712
16982
|
return request;
|
|
17713
16983
|
}
|
|
@@ -17751,15 +17021,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17751
17021
|
lang: rawConfig.lang,
|
|
17752
17022
|
source: rawConfig.source
|
|
17753
17023
|
};
|
|
17754
|
-
let input = void 0;
|
|
17755
|
-
if (raw.hasInput()) {
|
|
17756
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17757
|
-
}
|
|
17758
17024
|
return new _CustomCodeNode({
|
|
17759
17025
|
...obj,
|
|
17760
17026
|
type: NodeType4.CustomCode,
|
|
17761
|
-
data: convertedConfig
|
|
17762
|
-
input
|
|
17027
|
+
data: convertedConfig
|
|
17763
17028
|
});
|
|
17764
17029
|
}
|
|
17765
17030
|
toRequest() {
|
|
@@ -17769,10 +17034,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17769
17034
|
const node = _CustomCodeNode.createProtobufNode(
|
|
17770
17035
|
this.data
|
|
17771
17036
|
);
|
|
17772
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17773
|
-
if (inputValue) {
|
|
17774
|
-
request.setInput(inputValue);
|
|
17775
|
-
}
|
|
17776
17037
|
request.setCustomCode(node);
|
|
17777
17038
|
return request;
|
|
17778
17039
|
}
|
|
@@ -17792,7 +17053,9 @@ var customCode_default = CustomCodeNode2;
|
|
|
17792
17053
|
|
|
17793
17054
|
// src/models/node/graphqlQuery.ts
|
|
17794
17055
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
17795
|
-
import {
|
|
17056
|
+
import {
|
|
17057
|
+
NodeType as NodeType5
|
|
17058
|
+
} from "@avaprotocol/types";
|
|
17796
17059
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
17797
17060
|
constructor(props) {
|
|
17798
17061
|
super({
|
|
@@ -17822,12 +17085,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17822
17085
|
}
|
|
17823
17086
|
static fromResponse(raw) {
|
|
17824
17087
|
const obj = raw.toObject();
|
|
17825
|
-
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
17826
17088
|
return new _GraphQLQueryNode({
|
|
17827
17089
|
...obj,
|
|
17828
17090
|
type: NodeType5.GraphQLQuery,
|
|
17829
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17830
|
-
input
|
|
17091
|
+
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17831
17092
|
});
|
|
17832
17093
|
}
|
|
17833
17094
|
toRequest() {
|
|
@@ -17837,10 +17098,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17837
17098
|
const node = _GraphQLQueryNode.createProtobufNode(
|
|
17838
17099
|
this.data
|
|
17839
17100
|
);
|
|
17840
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17841
|
-
if (inputValue) {
|
|
17842
|
-
node.setInput(inputValue);
|
|
17843
|
-
}
|
|
17844
17101
|
request.setGraphqlQuery(node);
|
|
17845
17102
|
return request;
|
|
17846
17103
|
}
|
|
@@ -17882,10 +17139,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17882
17139
|
}
|
|
17883
17140
|
static fromResponse(raw) {
|
|
17884
17141
|
const obj = raw.toObject();
|
|
17885
|
-
let input = void 0;
|
|
17886
|
-
if (raw.hasInput()) {
|
|
17887
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17888
|
-
}
|
|
17889
17142
|
return new _RestAPINode({
|
|
17890
17143
|
...obj,
|
|
17891
17144
|
type: NodeType6.RestAPI,
|
|
@@ -17901,9 +17154,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17901
17154
|
});
|
|
17902
17155
|
return headers;
|
|
17903
17156
|
})()
|
|
17904
|
-
}
|
|
17905
|
-
input
|
|
17906
|
-
// Include input data from top-level TaskNode
|
|
17157
|
+
}
|
|
17907
17158
|
});
|
|
17908
17159
|
}
|
|
17909
17160
|
toRequest() {
|
|
@@ -17913,10 +17164,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17913
17164
|
const nodeData = _RestAPINode.createProtobufNode(
|
|
17914
17165
|
this.data
|
|
17915
17166
|
);
|
|
17916
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17917
|
-
if (inputValue) {
|
|
17918
|
-
request.setInput(inputValue);
|
|
17919
|
-
}
|
|
17920
17167
|
request.setRestApi(nodeData);
|
|
17921
17168
|
return request;
|
|
17922
17169
|
}
|
|
@@ -17981,15 +17228,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17981
17228
|
applyToFields: call.applyToFieldsList || []
|
|
17982
17229
|
})) || []
|
|
17983
17230
|
};
|
|
17984
|
-
let input = void 0;
|
|
17985
|
-
if (raw.hasInput()) {
|
|
17986
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17987
|
-
}
|
|
17988
17231
|
return new _ContractReadNode({
|
|
17989
17232
|
...obj,
|
|
17990
17233
|
type: NodeType7.ContractRead,
|
|
17991
|
-
data
|
|
17992
|
-
input
|
|
17234
|
+
data
|
|
17993
17235
|
});
|
|
17994
17236
|
}
|
|
17995
17237
|
toRequest() {
|
|
@@ -17999,10 +17241,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17999
17241
|
const node = _ContractReadNode.createProtobufNode(
|
|
18000
17242
|
this.data
|
|
18001
17243
|
);
|
|
18002
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18003
|
-
if (inputValue) {
|
|
18004
|
-
request.setInput(inputValue);
|
|
18005
|
-
}
|
|
18006
17244
|
request.setContractRead(node);
|
|
18007
17245
|
return request;
|
|
18008
17246
|
}
|
|
@@ -18031,7 +17269,9 @@ var contractRead_default = ContractReadNode2;
|
|
|
18031
17269
|
|
|
18032
17270
|
// src/models/node/ethTransfer.ts
|
|
18033
17271
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
18034
|
-
import {
|
|
17272
|
+
import {
|
|
17273
|
+
NodeType as NodeType8
|
|
17274
|
+
} from "@avaprotocol/types";
|
|
18035
17275
|
var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
18036
17276
|
constructor(props) {
|
|
18037
17277
|
super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
|
|
@@ -18051,12 +17291,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18051
17291
|
}
|
|
18052
17292
|
static fromResponse(raw) {
|
|
18053
17293
|
const obj = raw.toObject();
|
|
18054
|
-
const
|
|
17294
|
+
const data = raw.getEthTransfer().getConfig().toObject();
|
|
18055
17295
|
return new _ETHTransferNode({
|
|
18056
17296
|
...obj,
|
|
18057
17297
|
type: NodeType8.ETHTransfer,
|
|
18058
|
-
data
|
|
18059
|
-
input
|
|
17298
|
+
data
|
|
18060
17299
|
});
|
|
18061
17300
|
}
|
|
18062
17301
|
toRequest() {
|
|
@@ -18066,10 +17305,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18066
17305
|
const node = _ETHTransferNode.createProtobufNode(
|
|
18067
17306
|
this.data
|
|
18068
17307
|
);
|
|
18069
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18070
|
-
if (inputValue) {
|
|
18071
|
-
node.setInput(inputValue);
|
|
18072
|
-
}
|
|
18073
17308
|
request.setEthTransfer(node);
|
|
18074
17309
|
return request;
|
|
18075
17310
|
}
|
|
@@ -18081,7 +17316,9 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18081
17316
|
var ethTransfer_default = ETHTransferNode2;
|
|
18082
17317
|
|
|
18083
17318
|
// src/models/node/branch.ts
|
|
18084
|
-
import {
|
|
17319
|
+
import {
|
|
17320
|
+
NodeType as NodeType9
|
|
17321
|
+
} from "@avaprotocol/types";
|
|
18085
17322
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
18086
17323
|
var BranchNode2 = class _BranchNode extends Node {
|
|
18087
17324
|
constructor(props) {
|
|
@@ -18097,12 +17334,10 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18097
17334
|
expression: condition.expression
|
|
18098
17335
|
})) || []
|
|
18099
17336
|
};
|
|
18100
|
-
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
18101
17337
|
return new _BranchNode({
|
|
18102
17338
|
...obj,
|
|
18103
17339
|
type: NodeType9.Branch,
|
|
18104
|
-
data
|
|
18105
|
-
input
|
|
17340
|
+
data
|
|
18106
17341
|
});
|
|
18107
17342
|
}
|
|
18108
17343
|
toRequest() {
|
|
@@ -18124,10 +17359,6 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18124
17359
|
config.setConditionsList(conditionsList);
|
|
18125
17360
|
}
|
|
18126
17361
|
node.setConfig(config);
|
|
18127
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18128
|
-
if (inputValue) {
|
|
18129
|
-
node.setInput(inputValue);
|
|
18130
|
-
}
|
|
18131
17362
|
request.setBranch(node);
|
|
18132
17363
|
return request;
|
|
18133
17364
|
}
|
|
@@ -18144,19 +17375,16 @@ var avs_pb16 = __toESM(require_avs_pb());
|
|
|
18144
17375
|
import {
|
|
18145
17376
|
NodeType as NodeType10
|
|
18146
17377
|
} from "@avaprotocol/types";
|
|
18147
|
-
import { Value as Value2 } from "google-protobuf/google/protobuf/struct_pb";
|
|
18148
17378
|
var FilterNode2 = class _FilterNode extends Node {
|
|
18149
17379
|
constructor(props) {
|
|
18150
17380
|
super({ ...props, type: NodeType10.Filter, data: props.data });
|
|
18151
17381
|
}
|
|
18152
17382
|
static fromResponse(raw) {
|
|
18153
17383
|
const obj = raw.toObject();
|
|
18154
|
-
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
18155
17384
|
return new _FilterNode({
|
|
18156
17385
|
...obj,
|
|
18157
17386
|
type: NodeType10.Filter,
|
|
18158
|
-
data: raw.getFilter().getConfig().toObject()
|
|
18159
|
-
input
|
|
17387
|
+
data: raw.getFilter().getConfig().toObject()
|
|
18160
17388
|
});
|
|
18161
17389
|
}
|
|
18162
17390
|
toRequest() {
|
|
@@ -18166,12 +17394,8 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18166
17394
|
const node = new avs_pb16.FilterNode();
|
|
18167
17395
|
const config = new avs_pb16.FilterNode.Config();
|
|
18168
17396
|
config.setExpression(this.data.expression);
|
|
18169
|
-
config.
|
|
17397
|
+
config.setInputNodeName(this.data.inputNodeName || "");
|
|
18170
17398
|
node.setConfig(config);
|
|
18171
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18172
|
-
if (inputValue) {
|
|
18173
|
-
node.setInput(inputValue);
|
|
18174
|
-
}
|
|
18175
17399
|
request.setFilter(node);
|
|
18176
17400
|
return request;
|
|
18177
17401
|
}
|
|
@@ -18184,11 +17408,16 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18184
17408
|
if (!anyData) {
|
|
18185
17409
|
throw new Error("FilterNode output data.getData() is missing");
|
|
18186
17410
|
}
|
|
18187
|
-
const
|
|
18188
|
-
|
|
18189
|
-
|
|
17411
|
+
const result = anyData.toJavaScript();
|
|
17412
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
|
|
17413
|
+
return result.data.data;
|
|
17414
|
+
}
|
|
17415
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
|
|
18190
17416
|
return result.data;
|
|
18191
17417
|
}
|
|
17418
|
+
if (Array.isArray(result)) {
|
|
17419
|
+
return result;
|
|
17420
|
+
}
|
|
18192
17421
|
throw new Error(
|
|
18193
17422
|
"FilterNode output data does not contain expected data structure"
|
|
18194
17423
|
);
|
|
@@ -18223,15 +17452,10 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18223
17452
|
configData?.executionMode
|
|
18224
17453
|
)
|
|
18225
17454
|
};
|
|
18226
|
-
let input = void 0;
|
|
18227
|
-
if (raw.hasInput()) {
|
|
18228
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
18229
|
-
}
|
|
18230
17455
|
return new _LoopNode({
|
|
18231
17456
|
...obj,
|
|
18232
17457
|
type: NodeType11.Loop,
|
|
18233
|
-
data
|
|
18234
|
-
input
|
|
17458
|
+
data
|
|
18235
17459
|
});
|
|
18236
17460
|
}
|
|
18237
17461
|
static extractRunnerFromProtobuf(loopNodeData) {
|
|
@@ -18289,16 +17513,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18289
17513
|
node.setName(this.name);
|
|
18290
17514
|
const data = this.data;
|
|
18291
17515
|
const config = new avs_pb17.LoopNode.Config();
|
|
18292
|
-
config.
|
|
17516
|
+
config.setInputNodeName(data.inputNodeName || "");
|
|
18293
17517
|
config.setIterVal(data.iterVal || "");
|
|
18294
17518
|
config.setIterKey(data.iterKey || "");
|
|
18295
17519
|
const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
|
|
18296
17520
|
config.setExecutionMode(executionMode);
|
|
18297
17521
|
loopNode.setConfig(config);
|
|
18298
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18299
|
-
if (inputValue) {
|
|
18300
|
-
node.setInput(inputValue);
|
|
18301
|
-
}
|
|
18302
17522
|
if (data.runner) {
|
|
18303
17523
|
this.setRunnerOnProtobuf(loopNode, data.runner);
|
|
18304
17524
|
}
|
|
@@ -18306,86 +17526,72 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18306
17526
|
return node;
|
|
18307
17527
|
}
|
|
18308
17528
|
setRunnerOnProtobuf(loopNode, runner) {
|
|
18309
|
-
if (!runner || !runner.type
|
|
17529
|
+
if (!runner || !runner.type) {
|
|
17530
|
+
return;
|
|
17531
|
+
}
|
|
17532
|
+
const config = runner.config || runner.data && runner.data.config;
|
|
17533
|
+
if (!config) {
|
|
18310
17534
|
return;
|
|
18311
17535
|
}
|
|
18312
17536
|
switch (runner.type) {
|
|
18313
17537
|
case "ethTransfer": {
|
|
18314
|
-
const
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
});
|
|
18321
|
-
loopNode.setEthTransfer(ethTransfer);
|
|
18322
|
-
}
|
|
17538
|
+
const ethConfig = config;
|
|
17539
|
+
const ethTransfer = ethTransfer_default.createProtobufNode({
|
|
17540
|
+
destination: ethConfig.destination,
|
|
17541
|
+
amount: ethConfig.amount
|
|
17542
|
+
});
|
|
17543
|
+
loopNode.setEthTransfer(ethTransfer);
|
|
18323
17544
|
break;
|
|
18324
17545
|
}
|
|
18325
17546
|
case "contractWrite": {
|
|
18326
|
-
const
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
|
|
18330
|
-
|
|
18331
|
-
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
});
|
|
18335
|
-
loopNode.setContractWrite(contractWrite);
|
|
18336
|
-
}
|
|
17547
|
+
const writeConfig = config;
|
|
17548
|
+
const contractWrite = contractWrite_default.createProtobufNode({
|
|
17549
|
+
contractAddress: writeConfig.contractAddress,
|
|
17550
|
+
callData: writeConfig.callData,
|
|
17551
|
+
contractAbi: writeConfig.contractAbi,
|
|
17552
|
+
methodCalls: writeConfig.methodCallsList || []
|
|
17553
|
+
});
|
|
17554
|
+
loopNode.setContractWrite(contractWrite);
|
|
18337
17555
|
break;
|
|
18338
17556
|
}
|
|
18339
17557
|
case "contractRead": {
|
|
18340
|
-
const
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
});
|
|
18348
|
-
loopNode.setContractRead(contractRead);
|
|
18349
|
-
}
|
|
17558
|
+
const readConfig = config;
|
|
17559
|
+
const contractRead = contractRead_default.createProtobufNode({
|
|
17560
|
+
contractAddress: readConfig.contractAddress,
|
|
17561
|
+
contractAbi: readConfig.contractAbi,
|
|
17562
|
+
methodCalls: readConfig.methodCallsList || []
|
|
17563
|
+
});
|
|
17564
|
+
loopNode.setContractRead(contractRead);
|
|
18350
17565
|
break;
|
|
18351
17566
|
}
|
|
18352
17567
|
case "graphqlDataQuery": {
|
|
18353
|
-
const
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
});
|
|
18361
|
-
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18362
|
-
}
|
|
17568
|
+
const gqlConfig = config;
|
|
17569
|
+
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
17570
|
+
url: gqlConfig.url,
|
|
17571
|
+
query: gqlConfig.query,
|
|
17572
|
+
variablesMap: gqlConfig.variablesMap
|
|
17573
|
+
});
|
|
17574
|
+
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18363
17575
|
break;
|
|
18364
17576
|
}
|
|
18365
17577
|
case "restApi": {
|
|
18366
|
-
const
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
});
|
|
18375
|
-
loopNode.setRestApi(restApi);
|
|
18376
|
-
}
|
|
17578
|
+
const apiConfig = config;
|
|
17579
|
+
const restApi = restApi_default.createProtobufNode({
|
|
17580
|
+
url: apiConfig.url,
|
|
17581
|
+
method: apiConfig.method,
|
|
17582
|
+
body: apiConfig.body || "",
|
|
17583
|
+
headers: apiConfig.headers
|
|
17584
|
+
});
|
|
17585
|
+
loopNode.setRestApi(restApi);
|
|
18377
17586
|
break;
|
|
18378
17587
|
}
|
|
18379
17588
|
case "customCode": {
|
|
18380
|
-
const
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
});
|
|
18387
|
-
loopNode.setCustomCode(customCode);
|
|
18388
|
-
}
|
|
17589
|
+
const codeConfig = config;
|
|
17590
|
+
const customCode = customCode_default.createProtobufNode({
|
|
17591
|
+
lang: codeConfig.lang,
|
|
17592
|
+
source: codeConfig.source
|
|
17593
|
+
});
|
|
17594
|
+
loopNode.setCustomCode(customCode);
|
|
18389
17595
|
break;
|
|
18390
17596
|
}
|
|
18391
17597
|
}
|
|
@@ -18401,15 +17607,15 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18401
17607
|
}
|
|
18402
17608
|
const loopOutput = outputData.getLoop();
|
|
18403
17609
|
if (loopOutput) {
|
|
18404
|
-
const
|
|
18405
|
-
if (
|
|
17610
|
+
const dataValue = loopOutput.getData();
|
|
17611
|
+
if (dataValue) {
|
|
18406
17612
|
try {
|
|
18407
|
-
return
|
|
18408
|
-
} catch {
|
|
18409
|
-
|
|
17613
|
+
return dataValue.toJavaScript();
|
|
17614
|
+
} catch (error) {
|
|
17615
|
+
console.warn("Failed to convert loop data from protobuf Value:", error);
|
|
17616
|
+
return null;
|
|
18410
17617
|
}
|
|
18411
17618
|
}
|
|
18412
|
-
return loopObj;
|
|
18413
17619
|
}
|
|
18414
17620
|
return null;
|
|
18415
17621
|
}
|
|
@@ -18675,7 +17881,7 @@ var Step = class _Step {
|
|
|
18675
17881
|
this.error = props.error;
|
|
18676
17882
|
this.log = props.log;
|
|
18677
17883
|
this.inputsList = props.inputsList;
|
|
18678
|
-
this.
|
|
17884
|
+
this.config = props.config;
|
|
18679
17885
|
this.output = props.output;
|
|
18680
17886
|
this.startAt = props.startAt;
|
|
18681
17887
|
this.endAt = props.endAt;
|
|
@@ -18693,299 +17899,102 @@ var Step = class _Step {
|
|
|
18693
17899
|
error: this.error,
|
|
18694
17900
|
log: this.log,
|
|
18695
17901
|
inputsList: this.inputsList,
|
|
18696
|
-
|
|
17902
|
+
config: this.config,
|
|
18697
17903
|
output: this.output,
|
|
18698
17904
|
startAt: this.startAt,
|
|
18699
17905
|
endAt: this.endAt
|
|
18700
17906
|
};
|
|
18701
17907
|
}
|
|
18702
17908
|
static getOutput(step) {
|
|
18703
|
-
const
|
|
18704
|
-
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
18721
|
-
if (stepObj.contractRead)
|
|
18722
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
18723
|
-
if (stepObj.contractWrite)
|
|
18724
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
18725
|
-
if (stepObj.customCode)
|
|
18726
|
-
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
18727
|
-
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
18728
|
-
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
18729
|
-
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
18730
|
-
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
18731
|
-
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
18732
|
-
};
|
|
18733
|
-
switch (getOutputDataCase()) {
|
|
18734
|
-
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
18735
|
-
return void 0;
|
|
18736
|
-
// Trigger outputs
|
|
17909
|
+
const outputData = this.extractOutputData(step);
|
|
17910
|
+
if (!outputData) return null;
|
|
17911
|
+
if (typeof outputData.hasData === "function" && outputData.hasData()) {
|
|
17912
|
+
try {
|
|
17913
|
+
return convertProtobufValueToJs(outputData.getData());
|
|
17914
|
+
} catch (error) {
|
|
17915
|
+
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17916
|
+
return outputData.getData();
|
|
17917
|
+
}
|
|
17918
|
+
} else if (outputData.data) {
|
|
17919
|
+
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17920
|
+
}
|
|
17921
|
+
return null;
|
|
17922
|
+
}
|
|
17923
|
+
static extractOutputData(step) {
|
|
17924
|
+
const outputCase = this.getOutputDataCase(step);
|
|
17925
|
+
switch (outputCase) {
|
|
18737
17926
|
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
18738
|
-
|
|
18739
|
-
return { data: blockTrigger };
|
|
18740
|
-
// ✅ Use standard structure
|
|
17927
|
+
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
|
|
18741
17928
|
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
18742
|
-
|
|
18743
|
-
return { data: fixedTimeTrigger };
|
|
18744
|
-
// ✅ Use standard structure
|
|
17929
|
+
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
|
|
18745
17930
|
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
18746
|
-
|
|
18747
|
-
return { data: cronTrigger };
|
|
18748
|
-
// ✅ Use standard structure
|
|
17931
|
+
return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
|
|
18749
17932
|
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
try {
|
|
18754
|
-
const eventData = convertProtobufValueToJs(
|
|
18755
|
-
eventTrigger.getData()
|
|
18756
|
-
);
|
|
18757
|
-
return { data: eventData };
|
|
18758
|
-
} catch (error) {
|
|
18759
|
-
console.warn(
|
|
18760
|
-
"Failed to convert event trigger data from protobuf Value:",
|
|
18761
|
-
error
|
|
18762
|
-
);
|
|
18763
|
-
return { data: eventTrigger.getData() };
|
|
18764
|
-
}
|
|
18765
|
-
} else if (eventTrigger.data) {
|
|
18766
|
-
const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
|
|
18767
|
-
return { data: eventData };
|
|
18768
|
-
}
|
|
18769
|
-
if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
|
|
18770
|
-
return { data: eventTrigger.getEvmLog()?.toObject() };
|
|
18771
|
-
} else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
|
|
18772
|
-
return { data: eventTrigger.getTransferLog()?.toObject() };
|
|
18773
|
-
} else if (eventTrigger.evmLog) {
|
|
18774
|
-
return { data: eventTrigger.evmLog };
|
|
18775
|
-
} else if (eventTrigger.transferLog) {
|
|
18776
|
-
return { data: eventTrigger.transferLog };
|
|
18777
|
-
}
|
|
18778
|
-
}
|
|
18779
|
-
return { data: null };
|
|
18780
|
-
// ✅ Use standard structure
|
|
18781
|
-
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
|
|
18782
|
-
const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18783
|
-
if (manualTrigger) {
|
|
18784
|
-
if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
|
|
18785
|
-
try {
|
|
18786
|
-
return convertProtobufValueToJs(manualTrigger.getData());
|
|
18787
|
-
} catch (error) {
|
|
18788
|
-
console.warn(
|
|
18789
|
-
"Failed to convert manual trigger data from protobuf Value:",
|
|
18790
|
-
error
|
|
18791
|
-
);
|
|
18792
|
-
return manualTrigger.getData();
|
|
18793
|
-
}
|
|
18794
|
-
} else if (manualTrigger.data) {
|
|
18795
|
-
return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
|
|
18796
|
-
}
|
|
18797
|
-
}
|
|
18798
|
-
return null;
|
|
18799
|
-
}
|
|
18800
|
-
// Node outputs - RESTORE MISSING CASES
|
|
17933
|
+
return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
17934
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
17935
|
+
return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18801
17936
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
18802
|
-
return typeof step.getEthTransfer === "function" ? step.getEthTransfer()
|
|
18803
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18804
|
-
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
|
|
18814
|
-
}
|
|
18815
|
-
}
|
|
18816
|
-
return void 0;
|
|
18817
|
-
}
|
|
18818
|
-
case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
|
|
18819
|
-
const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18820
|
-
if (restApiOutput) {
|
|
18821
|
-
if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
|
|
18822
|
-
try {
|
|
18823
|
-
return convertProtobufValueToJs(restApiOutput.getData());
|
|
18824
|
-
} catch {
|
|
18825
|
-
return restApiOutput.getData();
|
|
18826
|
-
}
|
|
18827
|
-
} else if (restApiOutput.data) {
|
|
18828
|
-
return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
|
|
18829
|
-
}
|
|
18830
|
-
}
|
|
18831
|
-
return void 0;
|
|
18832
|
-
}
|
|
17937
|
+
return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
|
|
17938
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
17939
|
+
return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
17940
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
17941
|
+
return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
17942
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
17943
|
+
return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
17944
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
17945
|
+
return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
17946
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
17947
|
+
return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18833
17948
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
18834
|
-
return typeof step.getBranch === "function" ? step.getBranch()
|
|
18835
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18836
|
-
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
try {
|
|
18840
|
-
return JSON.parse(loopOutput.getData());
|
|
18841
|
-
} catch {
|
|
18842
|
-
return loopOutput.getData();
|
|
18843
|
-
}
|
|
18844
|
-
} else if (loopOutput.data) {
|
|
18845
|
-
try {
|
|
18846
|
-
return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
|
|
18847
|
-
} catch {
|
|
18848
|
-
return loopOutput.data;
|
|
18849
|
-
}
|
|
18850
|
-
}
|
|
18851
|
-
}
|
|
18852
|
-
return void 0;
|
|
18853
|
-
}
|
|
18854
|
-
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
|
|
18855
|
-
const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
18856
|
-
if (graphqlOutput) {
|
|
18857
|
-
try {
|
|
18858
|
-
return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
|
|
18859
|
-
} catch {
|
|
18860
|
-
return void 0;
|
|
18861
|
-
}
|
|
18862
|
-
}
|
|
18863
|
-
return void 0;
|
|
18864
|
-
}
|
|
18865
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
|
|
18866
|
-
const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
18867
|
-
if (contractReadOutput) {
|
|
18868
|
-
if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
|
|
18869
|
-
try {
|
|
18870
|
-
const data = convertProtobufValueToJs(
|
|
18871
|
-
contractReadOutput.getData()
|
|
18872
|
-
);
|
|
18873
|
-
if (Array.isArray(data)) {
|
|
18874
|
-
return data;
|
|
18875
|
-
} else {
|
|
18876
|
-
return [data];
|
|
18877
|
-
}
|
|
18878
|
-
} catch (error) {
|
|
18879
|
-
console.warn(
|
|
18880
|
-
"Failed to convert contract read data from protobuf Value:",
|
|
18881
|
-
error
|
|
18882
|
-
);
|
|
18883
|
-
return contractReadOutput.getData();
|
|
18884
|
-
}
|
|
18885
|
-
} else if (contractReadOutput.data) {
|
|
18886
|
-
const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
|
|
18887
|
-
if (Array.isArray(data)) {
|
|
18888
|
-
return data;
|
|
18889
|
-
} else {
|
|
18890
|
-
return [data];
|
|
18891
|
-
}
|
|
18892
|
-
}
|
|
18893
|
-
const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
|
|
18894
|
-
if (outputObj && outputObj.resultsList) {
|
|
18895
|
-
return outputObj.resultsList.map((result) => ({
|
|
18896
|
-
methodName: result.methodName,
|
|
18897
|
-
success: result.success,
|
|
18898
|
-
error: result.error,
|
|
18899
|
-
data: result.dataList || []
|
|
18900
|
-
}));
|
|
18901
|
-
}
|
|
18902
|
-
return outputObj;
|
|
18903
|
-
}
|
|
18904
|
-
return void 0;
|
|
18905
|
-
}
|
|
18906
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
|
|
18907
|
-
const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
18908
|
-
if (contractWriteOutput) {
|
|
18909
|
-
if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
|
|
18910
|
-
try {
|
|
18911
|
-
const data = convertProtobufValueToJs(
|
|
18912
|
-
contractWriteOutput.getData()
|
|
18913
|
-
);
|
|
18914
|
-
if (Array.isArray(data)) {
|
|
18915
|
-
return data;
|
|
18916
|
-
} else {
|
|
18917
|
-
return [data];
|
|
18918
|
-
}
|
|
18919
|
-
} catch (error) {
|
|
18920
|
-
console.warn(
|
|
18921
|
-
"Failed to convert contract write data from protobuf Value:",
|
|
18922
|
-
error
|
|
18923
|
-
);
|
|
18924
|
-
return contractWriteOutput.getData();
|
|
18925
|
-
}
|
|
18926
|
-
} else if (contractWriteOutput.data) {
|
|
18927
|
-
const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
|
|
18928
|
-
if (Array.isArray(data)) {
|
|
18929
|
-
return data;
|
|
18930
|
-
} else {
|
|
18931
|
-
return [data];
|
|
18932
|
-
}
|
|
18933
|
-
}
|
|
18934
|
-
const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
|
|
18935
|
-
if (outputObj && outputObj.resultsList) {
|
|
18936
|
-
return outputObj.resultsList.map((result) => ({
|
|
18937
|
-
methodName: result.methodName,
|
|
18938
|
-
success: result.success,
|
|
18939
|
-
error: result.error,
|
|
18940
|
-
transaction: result.transaction,
|
|
18941
|
-
events: result.eventsList || [],
|
|
18942
|
-
returnData: result.returnData,
|
|
18943
|
-
inputData: result.inputData
|
|
18944
|
-
}));
|
|
18945
|
-
}
|
|
18946
|
-
return outputObj;
|
|
18947
|
-
}
|
|
18948
|
-
return void 0;
|
|
18949
|
-
}
|
|
18950
|
-
case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
|
|
18951
|
-
const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
18952
|
-
if (filterOutput) {
|
|
18953
|
-
try {
|
|
18954
|
-
return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
|
|
18955
|
-
} catch {
|
|
18956
|
-
return void 0;
|
|
18957
|
-
}
|
|
18958
|
-
}
|
|
18959
|
-
return void 0;
|
|
18960
|
-
}
|
|
17949
|
+
return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
|
|
17950
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
17951
|
+
return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
17952
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
17953
|
+
return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
18961
17954
|
default:
|
|
18962
|
-
|
|
18963
|
-
`Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
|
|
18964
|
-
);
|
|
18965
|
-
return void 0;
|
|
17955
|
+
return null;
|
|
18966
17956
|
}
|
|
18967
17957
|
}
|
|
17958
|
+
static getOutputDataCase(step) {
|
|
17959
|
+
if (typeof step.getOutputDataCase === "function") {
|
|
17960
|
+
return step.getOutputDataCase();
|
|
17961
|
+
}
|
|
17962
|
+
const stepObj = step;
|
|
17963
|
+
if (stepObj.blockTrigger)
|
|
17964
|
+
return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
17965
|
+
if (stepObj.fixedTimeTrigger)
|
|
17966
|
+
return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
17967
|
+
if (stepObj.cronTrigger)
|
|
17968
|
+
return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
17969
|
+
if (stepObj.eventTrigger)
|
|
17970
|
+
return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
17971
|
+
if (stepObj.manualTrigger)
|
|
17972
|
+
return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
17973
|
+
if (stepObj.ethTransfer)
|
|
17974
|
+
return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
17975
|
+
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
17976
|
+
if (stepObj.contractRead)
|
|
17977
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
17978
|
+
if (stepObj.contractWrite)
|
|
17979
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
17980
|
+
if (stepObj.customCode)
|
|
17981
|
+
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
17982
|
+
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
17983
|
+
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
17984
|
+
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
17985
|
+
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
17986
|
+
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
17987
|
+
}
|
|
18968
17988
|
static fromResponse(step) {
|
|
18969
|
-
let
|
|
18970
|
-
if (typeof step.
|
|
18971
|
-
const
|
|
18972
|
-
if (
|
|
17989
|
+
let configData = void 0;
|
|
17990
|
+
if (typeof step.hasConfig === "function" && step.hasConfig()) {
|
|
17991
|
+
const configValue = step.getConfig();
|
|
17992
|
+
if (configValue) {
|
|
18973
17993
|
try {
|
|
18974
|
-
|
|
17994
|
+
configData = convertProtobufValueToJs(configValue);
|
|
18975
17995
|
} catch (error) {
|
|
18976
17996
|
console.warn("Failed to convert protobuf input value:", error);
|
|
18977
|
-
|
|
18978
|
-
}
|
|
18979
|
-
}
|
|
18980
|
-
} else if (step.input) {
|
|
18981
|
-
const inputValue = step.input;
|
|
18982
|
-
if (typeof inputValue === "object" && !inputValue.getKindCase) {
|
|
18983
|
-
inputData = inputValue;
|
|
18984
|
-
} else {
|
|
18985
|
-
try {
|
|
18986
|
-
inputData = convertProtobufValueToJs(inputValue);
|
|
18987
|
-
} catch (error) {
|
|
18988
|
-
inputData = inputValue;
|
|
17997
|
+
configData = configValue;
|
|
18989
17998
|
}
|
|
18990
17999
|
}
|
|
18991
18000
|
}
|
|
@@ -19006,7 +18015,7 @@ var Step = class _Step {
|
|
|
19006
18015
|
error: getError(),
|
|
19007
18016
|
log: getLog(),
|
|
19008
18017
|
inputsList: getInputsList(),
|
|
19009
|
-
|
|
18018
|
+
config: configData,
|
|
19010
18019
|
output: _Step.getOutput(step),
|
|
19011
18020
|
startAt: getStartAt(),
|
|
19012
18021
|
endAt: getEndAt()
|
|
@@ -19094,6 +18103,7 @@ import {
|
|
|
19094
18103
|
DEFAULT_LIMIT,
|
|
19095
18104
|
TimeoutPresets
|
|
19096
18105
|
} from "@avaprotocol/types";
|
|
18106
|
+
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
19097
18107
|
import {
|
|
19098
18108
|
TimeoutPresets as TimeoutPresets2
|
|
19099
18109
|
} from "@avaprotocol/types";
|
|
@@ -19626,30 +18636,43 @@ var Client = class extends BaseClient {
|
|
|
19626
18636
|
switch (triggerData.type) {
|
|
19627
18637
|
case TriggerType13.FixedTime: {
|
|
19628
18638
|
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
19629
|
-
|
|
19630
|
-
|
|
18639
|
+
const triggerOutputData = {
|
|
18640
|
+
timestamp: triggerData.timestamp,
|
|
18641
|
+
timestampIso: triggerData.timestampIso
|
|
18642
|
+
};
|
|
18643
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18644
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18645
|
+
fixedTimeOutput.setData(dataValue);
|
|
19631
18646
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
19632
18647
|
break;
|
|
19633
18648
|
}
|
|
19634
18649
|
case TriggerType13.Cron: {
|
|
19635
18650
|
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
19636
|
-
|
|
19637
|
-
|
|
18651
|
+
const triggerOutputData = {
|
|
18652
|
+
timestamp: triggerData.timestamp,
|
|
18653
|
+
timestampIso: triggerData.timestampIso
|
|
18654
|
+
};
|
|
18655
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18656
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18657
|
+
cronOutput.setData(dataValue);
|
|
19638
18658
|
request.setCronTrigger(cronOutput);
|
|
19639
18659
|
break;
|
|
19640
18660
|
}
|
|
19641
18661
|
case TriggerType13.Block: {
|
|
19642
18662
|
const blockData = triggerData;
|
|
19643
18663
|
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
|
|
19652
|
-
|
|
18664
|
+
const triggerOutputData = {
|
|
18665
|
+
blockNumber: blockData.blockNumber,
|
|
18666
|
+
blockHash: blockData.blockHash || "",
|
|
18667
|
+
timestamp: blockData.timestamp || 0,
|
|
18668
|
+
parentHash: blockData.parentHash || "",
|
|
18669
|
+
difficulty: blockData.difficulty || "",
|
|
18670
|
+
gasLimit: blockData.gasLimit || 0,
|
|
18671
|
+
gasUsed: blockData.gasUsed || 0
|
|
18672
|
+
};
|
|
18673
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
18674
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
18675
|
+
blockOutput.setData(dataValue);
|
|
19653
18676
|
request.setBlockTrigger(blockOutput);
|
|
19654
18677
|
break;
|
|
19655
18678
|
}
|
|
@@ -19670,18 +18693,6 @@ var Client = class extends BaseClient {
|
|
|
19670
18693
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
19671
18694
|
manualOutput.setData(protobufValue);
|
|
19672
18695
|
}
|
|
19673
|
-
if (manualData.headers) {
|
|
19674
|
-
const headersMap = manualOutput.getHeadersMap();
|
|
19675
|
-
Object.entries(manualData.headers).forEach(([key, value]) => {
|
|
19676
|
-
headersMap.set(key, value);
|
|
19677
|
-
});
|
|
19678
|
-
}
|
|
19679
|
-
if (manualData.pathParams) {
|
|
19680
|
-
const pathParamsMap = manualOutput.getPathparamsMap();
|
|
19681
|
-
Object.entries(manualData.pathParams).forEach(([key, value]) => {
|
|
19682
|
-
pathParamsMap.set(key, value);
|
|
19683
|
-
});
|
|
19684
|
-
}
|
|
19685
18696
|
request.setManualTrigger(manualOutput);
|
|
19686
18697
|
break;
|
|
19687
18698
|
}
|