@avaprotocol/sdk-js 2.3.12 → 2.3.13-dev.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/dist/index.js +846 -199
- package/dist/index.mjs +852 -203
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +9 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +9 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +9 -0
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +9 -1
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +9 -0
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +9 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +9 -0
- package/dist/models/node/interface.d.ts +1 -0
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/interface.js +1 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +9 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +15 -1
- package/dist/models/step.d.ts +1 -0
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +11 -0
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +13 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +20 -0
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +8 -2
- package/dist/models/trigger/interface.d.ts +1 -0
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/interface.js +2 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +13 -0
- package/dist/utils.d.ts +20 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +34 -0
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -55,8 +55,8 @@ var require_avs_pb = __commonJS({
|
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
56
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
57
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
58
|
-
var
|
|
59
|
-
goog.object.extend(proto,
|
|
58
|
+
var google_protobuf_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
59
|
+
goog.object.extend(proto, google_protobuf_struct_pb2);
|
|
60
60
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
61
61
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
|
|
62
62
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
|
|
@@ -1322,7 +1322,8 @@ var require_avs_pb = __commonJS({
|
|
|
1322
1322
|
};
|
|
1323
1323
|
proto.aggregator.FixedTimeTrigger.toObject = function(includeInstance, msg) {
|
|
1324
1324
|
var f, obj = {
|
|
1325
|
-
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
|
|
1325
|
+
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f),
|
|
1326
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1326
1327
|
};
|
|
1327
1328
|
if (includeInstance) {
|
|
1328
1329
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1347,6 +1348,11 @@ var require_avs_pb = __commonJS({
|
|
|
1347
1348
|
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Config.deserializeBinaryFromReader);
|
|
1348
1349
|
msg.setConfig(value);
|
|
1349
1350
|
break;
|
|
1351
|
+
case 2:
|
|
1352
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1353
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1354
|
+
msg.setInput(value);
|
|
1355
|
+
break;
|
|
1350
1356
|
default:
|
|
1351
1357
|
reader.skipField();
|
|
1352
1358
|
break;
|
|
@@ -1369,6 +1375,14 @@ var require_avs_pb = __commonJS({
|
|
|
1369
1375
|
proto.aggregator.FixedTimeTrigger.Config.serializeBinaryToWriter
|
|
1370
1376
|
);
|
|
1371
1377
|
}
|
|
1378
|
+
f = message.getInput();
|
|
1379
|
+
if (f != null) {
|
|
1380
|
+
writer.writeMessage(
|
|
1381
|
+
2,
|
|
1382
|
+
f,
|
|
1383
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1372
1386
|
};
|
|
1373
1387
|
proto.aggregator.FixedTimeTrigger.Config.repeatedFields_ = [1];
|
|
1374
1388
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1546,13 +1560,29 @@ var require_avs_pb = __commonJS({
|
|
|
1546
1560
|
proto.aggregator.FixedTimeTrigger.prototype.hasConfig = function() {
|
|
1547
1561
|
return jspb.Message.getField(this, 1) != null;
|
|
1548
1562
|
};
|
|
1563
|
+
proto.aggregator.FixedTimeTrigger.prototype.getInput = function() {
|
|
1564
|
+
return (
|
|
1565
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1566
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1567
|
+
);
|
|
1568
|
+
};
|
|
1569
|
+
proto.aggregator.FixedTimeTrigger.prototype.setInput = function(value) {
|
|
1570
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1571
|
+
};
|
|
1572
|
+
proto.aggregator.FixedTimeTrigger.prototype.clearInput = function() {
|
|
1573
|
+
return this.setInput(void 0);
|
|
1574
|
+
};
|
|
1575
|
+
proto.aggregator.FixedTimeTrigger.prototype.hasInput = function() {
|
|
1576
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1577
|
+
};
|
|
1549
1578
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1550
1579
|
proto.aggregator.CronTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1551
1580
|
return proto.aggregator.CronTrigger.toObject(opt_includeInstance, this);
|
|
1552
1581
|
};
|
|
1553
1582
|
proto.aggregator.CronTrigger.toObject = function(includeInstance, msg) {
|
|
1554
1583
|
var f, obj = {
|
|
1555
|
-
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
|
|
1584
|
+
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f),
|
|
1585
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1556
1586
|
};
|
|
1557
1587
|
if (includeInstance) {
|
|
1558
1588
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1577,6 +1607,11 @@ var require_avs_pb = __commonJS({
|
|
|
1577
1607
|
reader.readMessage(value, proto.aggregator.CronTrigger.Config.deserializeBinaryFromReader);
|
|
1578
1608
|
msg.setConfig(value);
|
|
1579
1609
|
break;
|
|
1610
|
+
case 2:
|
|
1611
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1612
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1613
|
+
msg.setInput(value);
|
|
1614
|
+
break;
|
|
1580
1615
|
default:
|
|
1581
1616
|
reader.skipField();
|
|
1582
1617
|
break;
|
|
@@ -1599,6 +1634,14 @@ var require_avs_pb = __commonJS({
|
|
|
1599
1634
|
proto.aggregator.CronTrigger.Config.serializeBinaryToWriter
|
|
1600
1635
|
);
|
|
1601
1636
|
}
|
|
1637
|
+
f = message.getInput();
|
|
1638
|
+
if (f != null) {
|
|
1639
|
+
writer.writeMessage(
|
|
1640
|
+
2,
|
|
1641
|
+
f,
|
|
1642
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1643
|
+
);
|
|
1644
|
+
}
|
|
1602
1645
|
};
|
|
1603
1646
|
proto.aggregator.CronTrigger.Config.repeatedFields_ = [1];
|
|
1604
1647
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1774,13 +1817,29 @@ var require_avs_pb = __commonJS({
|
|
|
1774
1817
|
proto.aggregator.CronTrigger.prototype.hasConfig = function() {
|
|
1775
1818
|
return jspb.Message.getField(this, 1) != null;
|
|
1776
1819
|
};
|
|
1820
|
+
proto.aggregator.CronTrigger.prototype.getInput = function() {
|
|
1821
|
+
return (
|
|
1822
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1823
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1824
|
+
);
|
|
1825
|
+
};
|
|
1826
|
+
proto.aggregator.CronTrigger.prototype.setInput = function(value) {
|
|
1827
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1828
|
+
};
|
|
1829
|
+
proto.aggregator.CronTrigger.prototype.clearInput = function() {
|
|
1830
|
+
return this.setInput(void 0);
|
|
1831
|
+
};
|
|
1832
|
+
proto.aggregator.CronTrigger.prototype.hasInput = function() {
|
|
1833
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1834
|
+
};
|
|
1777
1835
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1778
1836
|
proto.aggregator.BlockTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1779
1837
|
return proto.aggregator.BlockTrigger.toObject(opt_includeInstance, this);
|
|
1780
1838
|
};
|
|
1781
1839
|
proto.aggregator.BlockTrigger.toObject = function(includeInstance, msg) {
|
|
1782
1840
|
var f, obj = {
|
|
1783
|
-
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
|
|
1841
|
+
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f),
|
|
1842
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1784
1843
|
};
|
|
1785
1844
|
if (includeInstance) {
|
|
1786
1845
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1805,6 +1864,11 @@ var require_avs_pb = __commonJS({
|
|
|
1805
1864
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Config.deserializeBinaryFromReader);
|
|
1806
1865
|
msg.setConfig(value);
|
|
1807
1866
|
break;
|
|
1867
|
+
case 2:
|
|
1868
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1869
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1870
|
+
msg.setInput(value);
|
|
1871
|
+
break;
|
|
1808
1872
|
default:
|
|
1809
1873
|
reader.skipField();
|
|
1810
1874
|
break;
|
|
@@ -1827,6 +1891,14 @@ var require_avs_pb = __commonJS({
|
|
|
1827
1891
|
proto.aggregator.BlockTrigger.Config.serializeBinaryToWriter
|
|
1828
1892
|
);
|
|
1829
1893
|
}
|
|
1894
|
+
f = message.getInput();
|
|
1895
|
+
if (f != null) {
|
|
1896
|
+
writer.writeMessage(
|
|
1897
|
+
2,
|
|
1898
|
+
f,
|
|
1899
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1900
|
+
);
|
|
1901
|
+
}
|
|
1830
1902
|
};
|
|
1831
1903
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1832
1904
|
proto.aggregator.BlockTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -2115,13 +2187,29 @@ var require_avs_pb = __commonJS({
|
|
|
2115
2187
|
proto.aggregator.BlockTrigger.prototype.hasConfig = function() {
|
|
2116
2188
|
return jspb.Message.getField(this, 1) != null;
|
|
2117
2189
|
};
|
|
2190
|
+
proto.aggregator.BlockTrigger.prototype.getInput = function() {
|
|
2191
|
+
return (
|
|
2192
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
2193
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
2194
|
+
);
|
|
2195
|
+
};
|
|
2196
|
+
proto.aggregator.BlockTrigger.prototype.setInput = function(value) {
|
|
2197
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2198
|
+
};
|
|
2199
|
+
proto.aggregator.BlockTrigger.prototype.clearInput = function() {
|
|
2200
|
+
return this.setInput(void 0);
|
|
2201
|
+
};
|
|
2202
|
+
proto.aggregator.BlockTrigger.prototype.hasInput = function() {
|
|
2203
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2204
|
+
};
|
|
2118
2205
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2119
2206
|
proto.aggregator.EventTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2120
2207
|
return proto.aggregator.EventTrigger.toObject(opt_includeInstance, this);
|
|
2121
2208
|
};
|
|
2122
2209
|
proto.aggregator.EventTrigger.toObject = function(includeInstance, msg) {
|
|
2123
2210
|
var f, obj = {
|
|
2124
|
-
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
|
|
2211
|
+
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f),
|
|
2212
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2125
2213
|
};
|
|
2126
2214
|
if (includeInstance) {
|
|
2127
2215
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2146,6 +2234,11 @@ var require_avs_pb = __commonJS({
|
|
|
2146
2234
|
reader.readMessage(value, proto.aggregator.EventTrigger.Config.deserializeBinaryFromReader);
|
|
2147
2235
|
msg.setConfig(value);
|
|
2148
2236
|
break;
|
|
2237
|
+
case 2:
|
|
2238
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
2239
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
2240
|
+
msg.setInput(value);
|
|
2241
|
+
break;
|
|
2149
2242
|
default:
|
|
2150
2243
|
reader.skipField();
|
|
2151
2244
|
break;
|
|
@@ -2168,6 +2261,14 @@ var require_avs_pb = __commonJS({
|
|
|
2168
2261
|
proto.aggregator.EventTrigger.Config.serializeBinaryToWriter
|
|
2169
2262
|
);
|
|
2170
2263
|
}
|
|
2264
|
+
f = message.getInput();
|
|
2265
|
+
if (f != null) {
|
|
2266
|
+
writer.writeMessage(
|
|
2267
|
+
2,
|
|
2268
|
+
f,
|
|
2269
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
2270
|
+
);
|
|
2271
|
+
}
|
|
2171
2272
|
};
|
|
2172
2273
|
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2];
|
|
2173
2274
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2926,13 +3027,29 @@ var require_avs_pb = __commonJS({
|
|
|
2926
3027
|
proto.aggregator.EventTrigger.prototype.hasConfig = function() {
|
|
2927
3028
|
return jspb.Message.getField(this, 1) != null;
|
|
2928
3029
|
};
|
|
3030
|
+
proto.aggregator.EventTrigger.prototype.getInput = function() {
|
|
3031
|
+
return (
|
|
3032
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3033
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3034
|
+
);
|
|
3035
|
+
};
|
|
3036
|
+
proto.aggregator.EventTrigger.prototype.setInput = function(value) {
|
|
3037
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3038
|
+
};
|
|
3039
|
+
proto.aggregator.EventTrigger.prototype.clearInput = function() {
|
|
3040
|
+
return this.setInput(void 0);
|
|
3041
|
+
};
|
|
3042
|
+
proto.aggregator.EventTrigger.prototype.hasInput = function() {
|
|
3043
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3044
|
+
};
|
|
2929
3045
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2930
3046
|
proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2931
3047
|
return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
|
|
2932
3048
|
};
|
|
2933
3049
|
proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
|
|
2934
3050
|
var f, obj = {
|
|
2935
|
-
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
3051
|
+
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f),
|
|
3052
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2936
3053
|
};
|
|
2937
3054
|
if (includeInstance) {
|
|
2938
3055
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2957,6 +3074,11 @@ var require_avs_pb = __commonJS({
|
|
|
2957
3074
|
reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
|
|
2958
3075
|
msg.setConfig(value);
|
|
2959
3076
|
break;
|
|
3077
|
+
case 2:
|
|
3078
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3079
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3080
|
+
msg.setInput(value);
|
|
3081
|
+
break;
|
|
2960
3082
|
default:
|
|
2961
3083
|
reader.skipField();
|
|
2962
3084
|
break;
|
|
@@ -2979,6 +3101,14 @@ var require_avs_pb = __commonJS({
|
|
|
2979
3101
|
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
|
|
2980
3102
|
);
|
|
2981
3103
|
}
|
|
3104
|
+
f = message.getInput();
|
|
3105
|
+
if (f != null) {
|
|
3106
|
+
writer.writeMessage(
|
|
3107
|
+
2,
|
|
3108
|
+
f,
|
|
3109
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
2982
3112
|
};
|
|
2983
3113
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2984
3114
|
proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3098,6 +3228,21 @@ var require_avs_pb = __commonJS({
|
|
|
3098
3228
|
proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
|
|
3099
3229
|
return jspb.Message.getField(this, 1) != null;
|
|
3100
3230
|
};
|
|
3231
|
+
proto.aggregator.ManualTrigger.prototype.getInput = function() {
|
|
3232
|
+
return (
|
|
3233
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3234
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3235
|
+
);
|
|
3236
|
+
};
|
|
3237
|
+
proto.aggregator.ManualTrigger.prototype.setInput = function(value) {
|
|
3238
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3239
|
+
};
|
|
3240
|
+
proto.aggregator.ManualTrigger.prototype.clearInput = function() {
|
|
3241
|
+
return this.setInput(void 0);
|
|
3242
|
+
};
|
|
3243
|
+
proto.aggregator.ManualTrigger.prototype.hasInput = function() {
|
|
3244
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3245
|
+
};
|
|
3101
3246
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
3102
3247
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
3103
3248
|
TRIGGER_TYPE_NOT_SET: 0,
|
|
@@ -3126,7 +3271,8 @@ var require_avs_pb = __commonJS({
|
|
|
3126
3271
|
cron: (f = msg.getCron()) && proto.aggregator.CronTrigger.toObject(includeInstance, f),
|
|
3127
3272
|
block: (f = msg.getBlock()) && proto.aggregator.BlockTrigger.toObject(includeInstance, f),
|
|
3128
3273
|
event: (f = msg.getEvent()) && proto.aggregator.EventTrigger.toObject(includeInstance, f),
|
|
3129
|
-
id: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3274
|
+
id: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3275
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3130
3276
|
};
|
|
3131
3277
|
if (includeInstance) {
|
|
3132
3278
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3194,6 +3340,11 @@ var require_avs_pb = __commonJS({
|
|
|
3194
3340
|
);
|
|
3195
3341
|
msg.setId(value);
|
|
3196
3342
|
break;
|
|
3343
|
+
case 9:
|
|
3344
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3345
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3346
|
+
msg.setInput(value);
|
|
3347
|
+
break;
|
|
3197
3348
|
default:
|
|
3198
3349
|
reader.skipField();
|
|
3199
3350
|
break;
|
|
@@ -3269,6 +3420,14 @@ var require_avs_pb = __commonJS({
|
|
|
3269
3420
|
f
|
|
3270
3421
|
);
|
|
3271
3422
|
}
|
|
3423
|
+
f = message.getInput();
|
|
3424
|
+
if (f != null) {
|
|
3425
|
+
writer.writeMessage(
|
|
3426
|
+
9,
|
|
3427
|
+
f,
|
|
3428
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3429
|
+
);
|
|
3430
|
+
}
|
|
3272
3431
|
};
|
|
3273
3432
|
proto.aggregator.TaskTrigger.prototype.getName = function() {
|
|
3274
3433
|
return (
|
|
@@ -3372,13 +3531,29 @@ var require_avs_pb = __commonJS({
|
|
|
3372
3531
|
proto.aggregator.TaskTrigger.prototype.setId = function(value) {
|
|
3373
3532
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3374
3533
|
};
|
|
3534
|
+
proto.aggregator.TaskTrigger.prototype.getInput = function() {
|
|
3535
|
+
return (
|
|
3536
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3537
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 9)
|
|
3538
|
+
);
|
|
3539
|
+
};
|
|
3540
|
+
proto.aggregator.TaskTrigger.prototype.setInput = function(value) {
|
|
3541
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
3542
|
+
};
|
|
3543
|
+
proto.aggregator.TaskTrigger.prototype.clearInput = function() {
|
|
3544
|
+
return this.setInput(void 0);
|
|
3545
|
+
};
|
|
3546
|
+
proto.aggregator.TaskTrigger.prototype.hasInput = function() {
|
|
3547
|
+
return jspb.Message.getField(this, 9) != null;
|
|
3548
|
+
};
|
|
3375
3549
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3376
3550
|
proto.aggregator.ETHTransferNode.prototype.toObject = function(opt_includeInstance) {
|
|
3377
3551
|
return proto.aggregator.ETHTransferNode.toObject(opt_includeInstance, this);
|
|
3378
3552
|
};
|
|
3379
3553
|
proto.aggregator.ETHTransferNode.toObject = function(includeInstance, msg) {
|
|
3380
3554
|
var f, obj = {
|
|
3381
|
-
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
|
|
3555
|
+
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f),
|
|
3556
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3382
3557
|
};
|
|
3383
3558
|
if (includeInstance) {
|
|
3384
3559
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3403,6 +3578,11 @@ var require_avs_pb = __commonJS({
|
|
|
3403
3578
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Config.deserializeBinaryFromReader);
|
|
3404
3579
|
msg.setConfig(value);
|
|
3405
3580
|
break;
|
|
3581
|
+
case 2:
|
|
3582
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3583
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3584
|
+
msg.setInput(value);
|
|
3585
|
+
break;
|
|
3406
3586
|
default:
|
|
3407
3587
|
reader.skipField();
|
|
3408
3588
|
break;
|
|
@@ -3425,6 +3605,14 @@ var require_avs_pb = __commonJS({
|
|
|
3425
3605
|
proto.aggregator.ETHTransferNode.Config.serializeBinaryToWriter
|
|
3426
3606
|
);
|
|
3427
3607
|
}
|
|
3608
|
+
f = message.getInput();
|
|
3609
|
+
if (f != null) {
|
|
3610
|
+
writer.writeMessage(
|
|
3611
|
+
2,
|
|
3612
|
+
f,
|
|
3613
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3614
|
+
);
|
|
3615
|
+
}
|
|
3428
3616
|
};
|
|
3429
3617
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3430
3618
|
proto.aggregator.ETHTransferNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3593,13 +3781,29 @@ var require_avs_pb = __commonJS({
|
|
|
3593
3781
|
proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
|
|
3594
3782
|
return jspb.Message.getField(this, 1) != null;
|
|
3595
3783
|
};
|
|
3784
|
+
proto.aggregator.ETHTransferNode.prototype.getInput = function() {
|
|
3785
|
+
return (
|
|
3786
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3787
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3788
|
+
);
|
|
3789
|
+
};
|
|
3790
|
+
proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
|
|
3791
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3792
|
+
};
|
|
3793
|
+
proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
|
|
3794
|
+
return this.setInput(void 0);
|
|
3795
|
+
};
|
|
3796
|
+
proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
|
|
3797
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3798
|
+
};
|
|
3596
3799
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3597
3800
|
proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
|
|
3598
3801
|
return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
|
|
3599
3802
|
};
|
|
3600
3803
|
proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
|
|
3601
3804
|
var f, obj = {
|
|
3602
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3805
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f),
|
|
3806
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3603
3807
|
};
|
|
3604
3808
|
if (includeInstance) {
|
|
3605
3809
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3624,6 +3828,11 @@ var require_avs_pb = __commonJS({
|
|
|
3624
3828
|
reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
|
|
3625
3829
|
msg.setConfig(value);
|
|
3626
3830
|
break;
|
|
3831
|
+
case 2:
|
|
3832
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3833
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3834
|
+
msg.setInput(value);
|
|
3835
|
+
break;
|
|
3627
3836
|
default:
|
|
3628
3837
|
reader.skipField();
|
|
3629
3838
|
break;
|
|
@@ -3646,6 +3855,14 @@ var require_avs_pb = __commonJS({
|
|
|
3646
3855
|
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
|
|
3647
3856
|
);
|
|
3648
3857
|
}
|
|
3858
|
+
f = message.getInput();
|
|
3859
|
+
if (f != null) {
|
|
3860
|
+
writer.writeMessage(
|
|
3861
|
+
2,
|
|
3862
|
+
f,
|
|
3863
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3864
|
+
);
|
|
3865
|
+
}
|
|
3649
3866
|
};
|
|
3650
3867
|
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3651
3868
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -4996,13 +5213,29 @@ var require_avs_pb = __commonJS({
|
|
|
4996
5213
|
proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
|
|
4997
5214
|
return jspb.Message.getField(this, 1) != null;
|
|
4998
5215
|
};
|
|
5216
|
+
proto.aggregator.ContractWriteNode.prototype.getInput = function() {
|
|
5217
|
+
return (
|
|
5218
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5219
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5220
|
+
);
|
|
5221
|
+
};
|
|
5222
|
+
proto.aggregator.ContractWriteNode.prototype.setInput = function(value) {
|
|
5223
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5224
|
+
};
|
|
5225
|
+
proto.aggregator.ContractWriteNode.prototype.clearInput = function() {
|
|
5226
|
+
return this.setInput(void 0);
|
|
5227
|
+
};
|
|
5228
|
+
proto.aggregator.ContractWriteNode.prototype.hasInput = function() {
|
|
5229
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5230
|
+
};
|
|
4999
5231
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5000
5232
|
proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
|
|
5001
5233
|
return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
|
|
5002
5234
|
};
|
|
5003
5235
|
proto.aggregator.ContractReadNode.toObject = function(includeInstance, msg) {
|
|
5004
5236
|
var f, obj = {
|
|
5005
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
|
|
5237
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f),
|
|
5238
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5006
5239
|
};
|
|
5007
5240
|
if (includeInstance) {
|
|
5008
5241
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5027,6 +5260,11 @@ var require_avs_pb = __commonJS({
|
|
|
5027
5260
|
reader.readMessage(value, proto.aggregator.ContractReadNode.Config.deserializeBinaryFromReader);
|
|
5028
5261
|
msg.setConfig(value);
|
|
5029
5262
|
break;
|
|
5263
|
+
case 2:
|
|
5264
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
5265
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5266
|
+
msg.setInput(value);
|
|
5267
|
+
break;
|
|
5030
5268
|
default:
|
|
5031
5269
|
reader.skipField();
|
|
5032
5270
|
break;
|
|
@@ -5049,6 +5287,14 @@ var require_avs_pb = __commonJS({
|
|
|
5049
5287
|
proto.aggregator.ContractReadNode.Config.serializeBinaryToWriter
|
|
5050
5288
|
);
|
|
5051
5289
|
}
|
|
5290
|
+
f = message.getInput();
|
|
5291
|
+
if (f != null) {
|
|
5292
|
+
writer.writeMessage(
|
|
5293
|
+
2,
|
|
5294
|
+
f,
|
|
5295
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5296
|
+
);
|
|
5297
|
+
}
|
|
5052
5298
|
};
|
|
5053
5299
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5054
5300
|
proto.aggregator.ContractReadNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5607,13 +5853,29 @@ var require_avs_pb = __commonJS({
|
|
|
5607
5853
|
proto.aggregator.ContractReadNode.prototype.hasConfig = function() {
|
|
5608
5854
|
return jspb.Message.getField(this, 1) != null;
|
|
5609
5855
|
};
|
|
5856
|
+
proto.aggregator.ContractReadNode.prototype.getInput = function() {
|
|
5857
|
+
return (
|
|
5858
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5859
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5860
|
+
);
|
|
5861
|
+
};
|
|
5862
|
+
proto.aggregator.ContractReadNode.prototype.setInput = function(value) {
|
|
5863
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5864
|
+
};
|
|
5865
|
+
proto.aggregator.ContractReadNode.prototype.clearInput = function() {
|
|
5866
|
+
return this.setInput(void 0);
|
|
5867
|
+
};
|
|
5868
|
+
proto.aggregator.ContractReadNode.prototype.hasInput = function() {
|
|
5869
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5870
|
+
};
|
|
5610
5871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5611
5872
|
proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
|
|
5612
5873
|
return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
|
|
5613
5874
|
};
|
|
5614
5875
|
proto.aggregator.GraphQLQueryNode.toObject = function(includeInstance, msg) {
|
|
5615
5876
|
var f, obj = {
|
|
5616
|
-
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
|
|
5877
|
+
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f),
|
|
5878
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5617
5879
|
};
|
|
5618
5880
|
if (includeInstance) {
|
|
5619
5881
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5638,6 +5900,11 @@ var require_avs_pb = __commonJS({
|
|
|
5638
5900
|
reader.readMessage(value, proto.aggregator.GraphQLQueryNode.Config.deserializeBinaryFromReader);
|
|
5639
5901
|
msg.setConfig(value);
|
|
5640
5902
|
break;
|
|
5903
|
+
case 2:
|
|
5904
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
5905
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5906
|
+
msg.setInput(value);
|
|
5907
|
+
break;
|
|
5641
5908
|
default:
|
|
5642
5909
|
reader.skipField();
|
|
5643
5910
|
break;
|
|
@@ -5660,6 +5927,14 @@ var require_avs_pb = __commonJS({
|
|
|
5660
5927
|
proto.aggregator.GraphQLQueryNode.Config.serializeBinaryToWriter
|
|
5661
5928
|
);
|
|
5662
5929
|
}
|
|
5930
|
+
f = message.getInput();
|
|
5931
|
+
if (f != null) {
|
|
5932
|
+
writer.writeMessage(
|
|
5933
|
+
2,
|
|
5934
|
+
f,
|
|
5935
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5936
|
+
);
|
|
5937
|
+
}
|
|
5663
5938
|
};
|
|
5664
5939
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5665
5940
|
proto.aggregator.GraphQLQueryNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5859,13 +6134,29 @@ var require_avs_pb = __commonJS({
|
|
|
5859
6134
|
proto.aggregator.GraphQLQueryNode.prototype.hasConfig = function() {
|
|
5860
6135
|
return jspb.Message.getField(this, 1) != null;
|
|
5861
6136
|
};
|
|
6137
|
+
proto.aggregator.GraphQLQueryNode.prototype.getInput = function() {
|
|
6138
|
+
return (
|
|
6139
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6140
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6141
|
+
);
|
|
6142
|
+
};
|
|
6143
|
+
proto.aggregator.GraphQLQueryNode.prototype.setInput = function(value) {
|
|
6144
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6145
|
+
};
|
|
6146
|
+
proto.aggregator.GraphQLQueryNode.prototype.clearInput = function() {
|
|
6147
|
+
return this.setInput(void 0);
|
|
6148
|
+
};
|
|
6149
|
+
proto.aggregator.GraphQLQueryNode.prototype.hasInput = function() {
|
|
6150
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6151
|
+
};
|
|
5862
6152
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5863
6153
|
proto.aggregator.RestAPINode.prototype.toObject = function(opt_includeInstance) {
|
|
5864
6154
|
return proto.aggregator.RestAPINode.toObject(opt_includeInstance, this);
|
|
5865
6155
|
};
|
|
5866
6156
|
proto.aggregator.RestAPINode.toObject = function(includeInstance, msg) {
|
|
5867
6157
|
var f, obj = {
|
|
5868
|
-
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
|
|
6158
|
+
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f),
|
|
6159
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5869
6160
|
};
|
|
5870
6161
|
if (includeInstance) {
|
|
5871
6162
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5890,6 +6181,11 @@ var require_avs_pb = __commonJS({
|
|
|
5890
6181
|
reader.readMessage(value, proto.aggregator.RestAPINode.Config.deserializeBinaryFromReader);
|
|
5891
6182
|
msg.setConfig(value);
|
|
5892
6183
|
break;
|
|
6184
|
+
case 2:
|
|
6185
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6186
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6187
|
+
msg.setInput(value);
|
|
6188
|
+
break;
|
|
5893
6189
|
default:
|
|
5894
6190
|
reader.skipField();
|
|
5895
6191
|
break;
|
|
@@ -5912,6 +6208,14 @@ var require_avs_pb = __commonJS({
|
|
|
5912
6208
|
proto.aggregator.RestAPINode.Config.serializeBinaryToWriter
|
|
5913
6209
|
);
|
|
5914
6210
|
}
|
|
6211
|
+
f = message.getInput();
|
|
6212
|
+
if (f != null) {
|
|
6213
|
+
writer.writeMessage(
|
|
6214
|
+
2,
|
|
6215
|
+
f,
|
|
6216
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6217
|
+
);
|
|
6218
|
+
}
|
|
5915
6219
|
};
|
|
5916
6220
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5917
6221
|
proto.aggregator.RestAPINode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6057,7 +6361,7 @@ var require_avs_pb = __commonJS({
|
|
|
6057
6361
|
};
|
|
6058
6362
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
6059
6363
|
var f, obj = {
|
|
6060
|
-
data: (f = msg.getData()) &&
|
|
6364
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6061
6365
|
};
|
|
6062
6366
|
if (includeInstance) {
|
|
6063
6367
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6078,8 +6382,8 @@ var require_avs_pb = __commonJS({
|
|
|
6078
6382
|
var field = reader.getFieldNumber();
|
|
6079
6383
|
switch (field) {
|
|
6080
6384
|
case 1:
|
|
6081
|
-
var value = new
|
|
6082
|
-
reader.readMessage(value,
|
|
6385
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6386
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6083
6387
|
msg.setData(value);
|
|
6084
6388
|
break;
|
|
6085
6389
|
default:
|
|
@@ -6101,14 +6405,14 @@ var require_avs_pb = __commonJS({
|
|
|
6101
6405
|
writer.writeMessage(
|
|
6102
6406
|
1,
|
|
6103
6407
|
f,
|
|
6104
|
-
|
|
6408
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6105
6409
|
);
|
|
6106
6410
|
}
|
|
6107
6411
|
};
|
|
6108
6412
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
6109
6413
|
return (
|
|
6110
6414
|
/** @type{?proto.google.protobuf.Value} */
|
|
6111
|
-
jspb.Message.getWrapperField(this,
|
|
6415
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
6112
6416
|
);
|
|
6113
6417
|
};
|
|
6114
6418
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -6135,13 +6439,29 @@ var require_avs_pb = __commonJS({
|
|
|
6135
6439
|
proto.aggregator.RestAPINode.prototype.hasConfig = function() {
|
|
6136
6440
|
return jspb.Message.getField(this, 1) != null;
|
|
6137
6441
|
};
|
|
6442
|
+
proto.aggregator.RestAPINode.prototype.getInput = function() {
|
|
6443
|
+
return (
|
|
6444
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6445
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6446
|
+
);
|
|
6447
|
+
};
|
|
6448
|
+
proto.aggregator.RestAPINode.prototype.setInput = function(value) {
|
|
6449
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6450
|
+
};
|
|
6451
|
+
proto.aggregator.RestAPINode.prototype.clearInput = function() {
|
|
6452
|
+
return this.setInput(void 0);
|
|
6453
|
+
};
|
|
6454
|
+
proto.aggregator.RestAPINode.prototype.hasInput = function() {
|
|
6455
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6456
|
+
};
|
|
6138
6457
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6139
6458
|
proto.aggregator.CustomCodeNode.prototype.toObject = function(opt_includeInstance) {
|
|
6140
6459
|
return proto.aggregator.CustomCodeNode.toObject(opt_includeInstance, this);
|
|
6141
6460
|
};
|
|
6142
6461
|
proto.aggregator.CustomCodeNode.toObject = function(includeInstance, msg) {
|
|
6143
6462
|
var f, obj = {
|
|
6144
|
-
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
|
|
6463
|
+
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f),
|
|
6464
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6145
6465
|
};
|
|
6146
6466
|
if (includeInstance) {
|
|
6147
6467
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6166,6 +6486,11 @@ var require_avs_pb = __commonJS({
|
|
|
6166
6486
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.Config.deserializeBinaryFromReader);
|
|
6167
6487
|
msg.setConfig(value);
|
|
6168
6488
|
break;
|
|
6489
|
+
case 2:
|
|
6490
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6491
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6492
|
+
msg.setInput(value);
|
|
6493
|
+
break;
|
|
6169
6494
|
default:
|
|
6170
6495
|
reader.skipField();
|
|
6171
6496
|
break;
|
|
@@ -6188,6 +6513,14 @@ var require_avs_pb = __commonJS({
|
|
|
6188
6513
|
proto.aggregator.CustomCodeNode.Config.serializeBinaryToWriter
|
|
6189
6514
|
);
|
|
6190
6515
|
}
|
|
6516
|
+
f = message.getInput();
|
|
6517
|
+
if (f != null) {
|
|
6518
|
+
writer.writeMessage(
|
|
6519
|
+
2,
|
|
6520
|
+
f,
|
|
6521
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6522
|
+
);
|
|
6523
|
+
}
|
|
6191
6524
|
};
|
|
6192
6525
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6193
6526
|
proto.aggregator.CustomCodeNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6283,7 +6616,7 @@ var require_avs_pb = __commonJS({
|
|
|
6283
6616
|
};
|
|
6284
6617
|
proto.aggregator.CustomCodeNode.Output.toObject = function(includeInstance, msg) {
|
|
6285
6618
|
var f, obj = {
|
|
6286
|
-
data: (f = msg.getData()) &&
|
|
6619
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6287
6620
|
};
|
|
6288
6621
|
if (includeInstance) {
|
|
6289
6622
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6304,8 +6637,8 @@ var require_avs_pb = __commonJS({
|
|
|
6304
6637
|
var field = reader.getFieldNumber();
|
|
6305
6638
|
switch (field) {
|
|
6306
6639
|
case 1:
|
|
6307
|
-
var value = new
|
|
6308
|
-
reader.readMessage(value,
|
|
6640
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6641
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6309
6642
|
msg.setData(value);
|
|
6310
6643
|
break;
|
|
6311
6644
|
default:
|
|
@@ -6327,14 +6660,14 @@ var require_avs_pb = __commonJS({
|
|
|
6327
6660
|
writer.writeMessage(
|
|
6328
6661
|
1,
|
|
6329
6662
|
f,
|
|
6330
|
-
|
|
6663
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6331
6664
|
);
|
|
6332
6665
|
}
|
|
6333
6666
|
};
|
|
6334
6667
|
proto.aggregator.CustomCodeNode.Output.prototype.getData = function() {
|
|
6335
6668
|
return (
|
|
6336
6669
|
/** @type{?proto.google.protobuf.Value} */
|
|
6337
|
-
jspb.Message.getWrapperField(this,
|
|
6670
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
6338
6671
|
);
|
|
6339
6672
|
};
|
|
6340
6673
|
proto.aggregator.CustomCodeNode.Output.prototype.setData = function(value) {
|
|
@@ -6361,13 +6694,29 @@ var require_avs_pb = __commonJS({
|
|
|
6361
6694
|
proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
|
|
6362
6695
|
return jspb.Message.getField(this, 1) != null;
|
|
6363
6696
|
};
|
|
6697
|
+
proto.aggregator.CustomCodeNode.prototype.getInput = function() {
|
|
6698
|
+
return (
|
|
6699
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6700
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6701
|
+
);
|
|
6702
|
+
};
|
|
6703
|
+
proto.aggregator.CustomCodeNode.prototype.setInput = function(value) {
|
|
6704
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6705
|
+
};
|
|
6706
|
+
proto.aggregator.CustomCodeNode.prototype.clearInput = function() {
|
|
6707
|
+
return this.setInput(void 0);
|
|
6708
|
+
};
|
|
6709
|
+
proto.aggregator.CustomCodeNode.prototype.hasInput = function() {
|
|
6710
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6711
|
+
};
|
|
6364
6712
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6365
6713
|
proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
|
|
6366
6714
|
return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
|
|
6367
6715
|
};
|
|
6368
6716
|
proto.aggregator.BranchNode.toObject = function(includeInstance, msg) {
|
|
6369
6717
|
var f, obj = {
|
|
6370
|
-
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
|
|
6718
|
+
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f),
|
|
6719
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6371
6720
|
};
|
|
6372
6721
|
if (includeInstance) {
|
|
6373
6722
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6392,6 +6741,11 @@ var require_avs_pb = __commonJS({
|
|
|
6392
6741
|
reader.readMessage(value, proto.aggregator.BranchNode.Config.deserializeBinaryFromReader);
|
|
6393
6742
|
msg.setConfig(value);
|
|
6394
6743
|
break;
|
|
6744
|
+
case 2:
|
|
6745
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6746
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6747
|
+
msg.setInput(value);
|
|
6748
|
+
break;
|
|
6395
6749
|
default:
|
|
6396
6750
|
reader.skipField();
|
|
6397
6751
|
break;
|
|
@@ -6414,6 +6768,14 @@ var require_avs_pb = __commonJS({
|
|
|
6414
6768
|
proto.aggregator.BranchNode.Config.serializeBinaryToWriter
|
|
6415
6769
|
);
|
|
6416
6770
|
}
|
|
6771
|
+
f = message.getInput();
|
|
6772
|
+
if (f != null) {
|
|
6773
|
+
writer.writeMessage(
|
|
6774
|
+
2,
|
|
6775
|
+
f,
|
|
6776
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6777
|
+
);
|
|
6778
|
+
}
|
|
6417
6779
|
};
|
|
6418
6780
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6419
6781
|
proto.aggregator.BranchNode.Condition.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6680,13 +7042,29 @@ var require_avs_pb = __commonJS({
|
|
|
6680
7042
|
proto.aggregator.BranchNode.prototype.hasConfig = function() {
|
|
6681
7043
|
return jspb.Message.getField(this, 1) != null;
|
|
6682
7044
|
};
|
|
7045
|
+
proto.aggregator.BranchNode.prototype.getInput = function() {
|
|
7046
|
+
return (
|
|
7047
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7048
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7049
|
+
);
|
|
7050
|
+
};
|
|
7051
|
+
proto.aggregator.BranchNode.prototype.setInput = function(value) {
|
|
7052
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7053
|
+
};
|
|
7054
|
+
proto.aggregator.BranchNode.prototype.clearInput = function() {
|
|
7055
|
+
return this.setInput(void 0);
|
|
7056
|
+
};
|
|
7057
|
+
proto.aggregator.BranchNode.prototype.hasInput = function() {
|
|
7058
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7059
|
+
};
|
|
6683
7060
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6684
7061
|
proto.aggregator.FilterNode.prototype.toObject = function(opt_includeInstance) {
|
|
6685
7062
|
return proto.aggregator.FilterNode.toObject(opt_includeInstance, this);
|
|
6686
7063
|
};
|
|
6687
7064
|
proto.aggregator.FilterNode.toObject = function(includeInstance, msg) {
|
|
6688
7065
|
var f, obj = {
|
|
6689
|
-
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
|
|
7066
|
+
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f),
|
|
7067
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6690
7068
|
};
|
|
6691
7069
|
if (includeInstance) {
|
|
6692
7070
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6711,6 +7089,11 @@ var require_avs_pb = __commonJS({
|
|
|
6711
7089
|
reader.readMessage(value, proto.aggregator.FilterNode.Config.deserializeBinaryFromReader);
|
|
6712
7090
|
msg.setConfig(value);
|
|
6713
7091
|
break;
|
|
7092
|
+
case 2:
|
|
7093
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
7094
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7095
|
+
msg.setInput(value);
|
|
7096
|
+
break;
|
|
6714
7097
|
default:
|
|
6715
7098
|
reader.skipField();
|
|
6716
7099
|
break;
|
|
@@ -6733,6 +7116,14 @@ var require_avs_pb = __commonJS({
|
|
|
6733
7116
|
proto.aggregator.FilterNode.Config.serializeBinaryToWriter
|
|
6734
7117
|
);
|
|
6735
7118
|
}
|
|
7119
|
+
f = message.getInput();
|
|
7120
|
+
if (f != null) {
|
|
7121
|
+
writer.writeMessage(
|
|
7122
|
+
2,
|
|
7123
|
+
f,
|
|
7124
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7125
|
+
);
|
|
7126
|
+
}
|
|
6736
7127
|
};
|
|
6737
7128
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6738
7129
|
proto.aggregator.FilterNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6906,6 +7297,21 @@ var require_avs_pb = __commonJS({
|
|
|
6906
7297
|
proto.aggregator.FilterNode.prototype.hasConfig = function() {
|
|
6907
7298
|
return jspb.Message.getField(this, 1) != null;
|
|
6908
7299
|
};
|
|
7300
|
+
proto.aggregator.FilterNode.prototype.getInput = function() {
|
|
7301
|
+
return (
|
|
7302
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7303
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7304
|
+
);
|
|
7305
|
+
};
|
|
7306
|
+
proto.aggregator.FilterNode.prototype.setInput = function(value) {
|
|
7307
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7308
|
+
};
|
|
7309
|
+
proto.aggregator.FilterNode.prototype.clearInput = function() {
|
|
7310
|
+
return this.setInput(void 0);
|
|
7311
|
+
};
|
|
7312
|
+
proto.aggregator.FilterNode.prototype.hasInput = function() {
|
|
7313
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7314
|
+
};
|
|
6909
7315
|
proto.aggregator.LoopNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15]];
|
|
6910
7316
|
proto.aggregator.LoopNode.RunnerCase = {
|
|
6911
7317
|
RUNNER_NOT_SET: 0,
|
|
@@ -6934,7 +7340,8 @@ var require_avs_pb = __commonJS({
|
|
|
6934
7340
|
graphqlDataQuery: (f = msg.getGraphqlDataQuery()) && proto.aggregator.GraphQLQueryNode.toObject(includeInstance, f),
|
|
6935
7341
|
restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.toObject(includeInstance, f),
|
|
6936
7342
|
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
6937
|
-
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
|
|
7343
|
+
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f),
|
|
7344
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6938
7345
|
};
|
|
6939
7346
|
if (includeInstance) {
|
|
6940
7347
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6989,6 +7396,11 @@ var require_avs_pb = __commonJS({
|
|
|
6989
7396
|
reader.readMessage(value, proto.aggregator.LoopNode.Config.deserializeBinaryFromReader);
|
|
6990
7397
|
msg.setConfig(value);
|
|
6991
7398
|
break;
|
|
7399
|
+
case 2:
|
|
7400
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
7401
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7402
|
+
msg.setInput(value);
|
|
7403
|
+
break;
|
|
6992
7404
|
default:
|
|
6993
7405
|
reader.skipField();
|
|
6994
7406
|
break;
|
|
@@ -7059,6 +7471,14 @@ var require_avs_pb = __commonJS({
|
|
|
7059
7471
|
proto.aggregator.LoopNode.Config.serializeBinaryToWriter
|
|
7060
7472
|
);
|
|
7061
7473
|
}
|
|
7474
|
+
f = message.getInput();
|
|
7475
|
+
if (f != null) {
|
|
7476
|
+
writer.writeMessage(
|
|
7477
|
+
2,
|
|
7478
|
+
f,
|
|
7479
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7480
|
+
);
|
|
7481
|
+
}
|
|
7062
7482
|
};
|
|
7063
7483
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7064
7484
|
proto.aggregator.LoopNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7341,6 +7761,21 @@ var require_avs_pb = __commonJS({
|
|
|
7341
7761
|
proto.aggregator.LoopNode.prototype.hasConfig = function() {
|
|
7342
7762
|
return jspb.Message.getField(this, 1) != null;
|
|
7343
7763
|
};
|
|
7764
|
+
proto.aggregator.LoopNode.prototype.getInput = function() {
|
|
7765
|
+
return (
|
|
7766
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7767
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7768
|
+
);
|
|
7769
|
+
};
|
|
7770
|
+
proto.aggregator.LoopNode.prototype.setInput = function(value) {
|
|
7771
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7772
|
+
};
|
|
7773
|
+
proto.aggregator.LoopNode.prototype.clearInput = function() {
|
|
7774
|
+
return this.setInput(void 0);
|
|
7775
|
+
};
|
|
7776
|
+
proto.aggregator.LoopNode.prototype.hasInput = function() {
|
|
7777
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7778
|
+
};
|
|
7344
7779
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7345
7780
|
proto.aggregator.TaskEdge.prototype.toObject = function(opt_includeInstance) {
|
|
7346
7781
|
return proto.aggregator.TaskEdge.toObject(opt_includeInstance, this);
|
|
@@ -7489,7 +7924,8 @@ var require_avs_pb = __commonJS({
|
|
|
7489
7924
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
|
|
7490
7925
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
|
|
7491
7926
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
|
|
7492
|
-
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
|
|
7927
|
+
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
7928
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7493
7929
|
};
|
|
7494
7930
|
if (includeInstance) {
|
|
7495
7931
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7575,7 +8011,12 @@ var require_avs_pb = __commonJS({
|
|
|
7575
8011
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
|
|
7576
8012
|
msg.setCustomCode(value);
|
|
7577
8013
|
break;
|
|
7578
|
-
|
|
8014
|
+
case 19:
|
|
8015
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
8016
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8017
|
+
msg.setInput(value);
|
|
8018
|
+
break;
|
|
8019
|
+
default:
|
|
7579
8020
|
reader.skipField();
|
|
7580
8021
|
break;
|
|
7581
8022
|
}
|
|
@@ -7682,6 +8123,14 @@ var require_avs_pb = __commonJS({
|
|
|
7682
8123
|
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
7683
8124
|
);
|
|
7684
8125
|
}
|
|
8126
|
+
f = message.getInput();
|
|
8127
|
+
if (f != null) {
|
|
8128
|
+
writer.writeMessage(
|
|
8129
|
+
19,
|
|
8130
|
+
f,
|
|
8131
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
8132
|
+
);
|
|
8133
|
+
}
|
|
7685
8134
|
};
|
|
7686
8135
|
proto.aggregator.TaskNode.prototype.getId = function() {
|
|
7687
8136
|
return (
|
|
@@ -7845,6 +8294,21 @@ var require_avs_pb = __commonJS({
|
|
|
7845
8294
|
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
7846
8295
|
return jspb.Message.getField(this, 18) != null;
|
|
7847
8296
|
};
|
|
8297
|
+
proto.aggregator.TaskNode.prototype.getInput = function() {
|
|
8298
|
+
return (
|
|
8299
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
8300
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
8301
|
+
);
|
|
8302
|
+
};
|
|
8303
|
+
proto.aggregator.TaskNode.prototype.setInput = function(value) {
|
|
8304
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
8305
|
+
};
|
|
8306
|
+
proto.aggregator.TaskNode.prototype.clearInput = function() {
|
|
8307
|
+
return this.setInput(void 0);
|
|
8308
|
+
};
|
|
8309
|
+
proto.aggregator.TaskNode.prototype.hasInput = function() {
|
|
8310
|
+
return jspb.Message.getField(this, 19) != null;
|
|
8311
|
+
};
|
|
7848
8312
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
7849
8313
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7850
8314
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8017,6 +8481,7 @@ var require_avs_pb = __commonJS({
|
|
|
8017
8481
|
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
8018
8482
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
8019
8483
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
8484
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
|
|
8020
8485
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
8021
8486
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
8022
8487
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -8101,6 +8566,11 @@ var require_avs_pb = __commonJS({
|
|
|
8101
8566
|
);
|
|
8102
8567
|
msg.addInputs(value);
|
|
8103
8568
|
break;
|
|
8569
|
+
case 19:
|
|
8570
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
8571
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8572
|
+
msg.setInput(value);
|
|
8573
|
+
break;
|
|
8104
8574
|
case 20:
|
|
8105
8575
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
8106
8576
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -8248,6 +8718,14 @@ var require_avs_pb = __commonJS({
|
|
|
8248
8718
|
f
|
|
8249
8719
|
);
|
|
8250
8720
|
}
|
|
8721
|
+
f = message.getInput();
|
|
8722
|
+
if (f != null) {
|
|
8723
|
+
writer.writeMessage(
|
|
8724
|
+
19,
|
|
8725
|
+
f,
|
|
8726
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
8727
|
+
);
|
|
8728
|
+
}
|
|
8251
8729
|
f = message.getBlockTrigger();
|
|
8252
8730
|
if (f != null) {
|
|
8253
8731
|
writer.writeMessage(
|
|
@@ -8444,6 +8922,21 @@ var require_avs_pb = __commonJS({
|
|
|
8444
8922
|
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
8445
8923
|
return this.setInputsList([]);
|
|
8446
8924
|
};
|
|
8925
|
+
proto.aggregator.Execution.Step.prototype.getInput = function() {
|
|
8926
|
+
return (
|
|
8927
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
8928
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
8929
|
+
);
|
|
8930
|
+
};
|
|
8931
|
+
proto.aggregator.Execution.Step.prototype.setInput = function(value) {
|
|
8932
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
8933
|
+
};
|
|
8934
|
+
proto.aggregator.Execution.Step.prototype.clearInput = function() {
|
|
8935
|
+
return this.setInput(void 0);
|
|
8936
|
+
};
|
|
8937
|
+
proto.aggregator.Execution.Step.prototype.hasInput = function() {
|
|
8938
|
+
return jspb.Message.getField(this, 19) != null;
|
|
8939
|
+
};
|
|
8447
8940
|
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
8448
8941
|
return (
|
|
8449
8942
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -13681,7 +14174,8 @@ var require_avs_pb = __commonJS({
|
|
|
13681
14174
|
proto.aggregator.RunTriggerReq.toObject = function(includeInstance, msg) {
|
|
13682
14175
|
var f, obj = {
|
|
13683
14176
|
triggerType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13684
|
-
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
14177
|
+
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
14178
|
+
triggerInputMap: (f = msg.getTriggerInputMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13685
14179
|
};
|
|
13686
14180
|
if (includeInstance) {
|
|
13687
14181
|
obj.$jspbMessageInstance = msg;
|
|
@@ -13714,6 +14208,12 @@ var require_avs_pb = __commonJS({
|
|
|
13714
14208
|
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13715
14209
|
});
|
|
13716
14210
|
break;
|
|
14211
|
+
case 3:
|
|
14212
|
+
var value = msg.getTriggerInputMap();
|
|
14213
|
+
reader.readMessage(value, function(message, reader2) {
|
|
14214
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
14215
|
+
});
|
|
14216
|
+
break;
|
|
13717
14217
|
default:
|
|
13718
14218
|
reader.skipField();
|
|
13719
14219
|
break;
|
|
@@ -13739,6 +14239,10 @@ var require_avs_pb = __commonJS({
|
|
|
13739
14239
|
if (f && f.getLength() > 0) {
|
|
13740
14240
|
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13741
14241
|
}
|
|
14242
|
+
f = message.getTriggerInputMap(true);
|
|
14243
|
+
if (f && f.getLength() > 0) {
|
|
14244
|
+
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
14245
|
+
}
|
|
13742
14246
|
};
|
|
13743
14247
|
proto.aggregator.RunTriggerReq.prototype.getTriggerType = function() {
|
|
13744
14248
|
return (
|
|
@@ -13764,6 +14268,21 @@ var require_avs_pb = __commonJS({
|
|
|
13764
14268
|
this.getTriggerConfigMap().clear();
|
|
13765
14269
|
return this;
|
|
13766
14270
|
};
|
|
14271
|
+
proto.aggregator.RunTriggerReq.prototype.getTriggerInputMap = function(opt_noLazyCreate) {
|
|
14272
|
+
return (
|
|
14273
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
14274
|
+
jspb.Message.getMapField(
|
|
14275
|
+
this,
|
|
14276
|
+
3,
|
|
14277
|
+
opt_noLazyCreate,
|
|
14278
|
+
proto.google.protobuf.Value
|
|
14279
|
+
)
|
|
14280
|
+
);
|
|
14281
|
+
};
|
|
14282
|
+
proto.aggregator.RunTriggerReq.prototype.clearTriggerInputMap = function() {
|
|
14283
|
+
this.getTriggerInputMap().clear();
|
|
14284
|
+
return this;
|
|
14285
|
+
};
|
|
13767
14286
|
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
13768
14287
|
proto.aggregator.RunTriggerResp.OutputDataCase = {
|
|
13769
14288
|
OUTPUT_DATA_NOT_SET: 0,
|
|
@@ -15342,7 +15861,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15342
15861
|
var avs_pb23 = require_avs_pb();
|
|
15343
15862
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
15344
15863
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
15345
|
-
var
|
|
15864
|
+
var google_protobuf_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
15346
15865
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
15347
15866
|
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
15348
15867
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
@@ -16000,7 +16519,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
16000
16519
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
16001
16520
|
responseDeserialize: deserialize_aggregator_RunNodeWithInputsResp
|
|
16002
16521
|
},
|
|
16003
|
-
// RunTrigger allows executing a single trigger for testing purposes
|
|
16522
|
+
// RunTrigger allows executing a single trigger for testing purposes
|
|
16004
16523
|
runTrigger: {
|
|
16005
16524
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
16006
16525
|
requestStream: false,
|
|
@@ -16118,6 +16637,7 @@ var Trigger = class {
|
|
|
16118
16637
|
this.type = props.type;
|
|
16119
16638
|
this.data = props.data;
|
|
16120
16639
|
this.output = props.output;
|
|
16640
|
+
this.input = props.input;
|
|
16121
16641
|
}
|
|
16122
16642
|
toRequest() {
|
|
16123
16643
|
throw new Error("Method not implemented.");
|
|
@@ -16131,17 +16651,170 @@ var Trigger = class {
|
|
|
16131
16651
|
name: this.name,
|
|
16132
16652
|
type: this.type,
|
|
16133
16653
|
data: this.data,
|
|
16134
|
-
output: this.output
|
|
16654
|
+
output: this.output,
|
|
16655
|
+
input: this.input
|
|
16135
16656
|
};
|
|
16136
16657
|
}
|
|
16137
16658
|
};
|
|
16138
16659
|
var interface_default = Trigger;
|
|
16139
16660
|
|
|
16140
|
-
// src/
|
|
16661
|
+
// src/utils.ts
|
|
16662
|
+
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16141
16663
|
var import_types = require("@avaprotocol/types");
|
|
16664
|
+
function convertProtobufValueToJs(value) {
|
|
16665
|
+
if (!value) {
|
|
16666
|
+
return void 0;
|
|
16667
|
+
}
|
|
16668
|
+
switch (value.getKindCase()) {
|
|
16669
|
+
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
16670
|
+
return null;
|
|
16671
|
+
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
16672
|
+
return value.getNumberValue();
|
|
16673
|
+
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
16674
|
+
return value.getStringValue();
|
|
16675
|
+
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
16676
|
+
return value.getBoolValue();
|
|
16677
|
+
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
16678
|
+
const struct = value.getStructValue();
|
|
16679
|
+
if (!struct) return {};
|
|
16680
|
+
const jsObj = {};
|
|
16681
|
+
const fields = struct.getFieldsMap();
|
|
16682
|
+
fields.forEach((val, key) => {
|
|
16683
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
16684
|
+
});
|
|
16685
|
+
return jsObj;
|
|
16686
|
+
}
|
|
16687
|
+
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
16688
|
+
const list = value.getListValue();
|
|
16689
|
+
if (!list) return [];
|
|
16690
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16691
|
+
}
|
|
16692
|
+
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
16693
|
+
default:
|
|
16694
|
+
return void 0;
|
|
16695
|
+
}
|
|
16696
|
+
}
|
|
16697
|
+
function convertJSValueToProtobuf(value) {
|
|
16698
|
+
const protobufValue = new import_struct_pb.Value();
|
|
16699
|
+
if (value === null || value === void 0) {
|
|
16700
|
+
protobufValue.setNullValue(0);
|
|
16701
|
+
} else if (typeof value === "number") {
|
|
16702
|
+
protobufValue.setNumberValue(value);
|
|
16703
|
+
} else if (typeof value === "string") {
|
|
16704
|
+
protobufValue.setStringValue(value);
|
|
16705
|
+
} else if (typeof value === "boolean") {
|
|
16706
|
+
protobufValue.setBoolValue(value);
|
|
16707
|
+
} else if (Array.isArray(value)) {
|
|
16708
|
+
const listValue = new import_struct_pb.ListValue();
|
|
16709
|
+
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16710
|
+
listValue.setValuesList(convertedValues);
|
|
16711
|
+
protobufValue.setListValue(listValue);
|
|
16712
|
+
} else if (typeof value === "object") {
|
|
16713
|
+
const structValue = new import_struct_pb.Struct();
|
|
16714
|
+
const fieldsMap = structValue.getFieldsMap();
|
|
16715
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
16716
|
+
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16717
|
+
});
|
|
16718
|
+
protobufValue.setStructValue(structValue);
|
|
16719
|
+
} else {
|
|
16720
|
+
protobufValue.setStringValue(String(value));
|
|
16721
|
+
}
|
|
16722
|
+
return protobufValue;
|
|
16723
|
+
}
|
|
16724
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16725
|
+
switch (protobufType) {
|
|
16726
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
16727
|
+
return import_types.TriggerType.Manual;
|
|
16728
|
+
// "manualTrigger"
|
|
16729
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16730
|
+
return import_types.TriggerType.FixedTime;
|
|
16731
|
+
// "fixedTimeTrigger"
|
|
16732
|
+
case "TRIGGER_TYPE_CRON":
|
|
16733
|
+
return import_types.TriggerType.Cron;
|
|
16734
|
+
// "cronTrigger"
|
|
16735
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
16736
|
+
return import_types.TriggerType.Block;
|
|
16737
|
+
// "blockTrigger"
|
|
16738
|
+
case "TRIGGER_TYPE_EVENT":
|
|
16739
|
+
return import_types.TriggerType.Event;
|
|
16740
|
+
// "eventTrigger"
|
|
16741
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16742
|
+
return import_types.TriggerType.Unspecified;
|
|
16743
|
+
// "unspecified"
|
|
16744
|
+
default:
|
|
16745
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16746
|
+
return protobufType;
|
|
16747
|
+
}
|
|
16748
|
+
}
|
|
16749
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16750
|
+
switch (protobufType) {
|
|
16751
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
16752
|
+
return import_types.NodeType.ETHTransfer;
|
|
16753
|
+
// "ethTransfer"
|
|
16754
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16755
|
+
return import_types.NodeType.ContractWrite;
|
|
16756
|
+
// "contractWrite"
|
|
16757
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
16758
|
+
return import_types.NodeType.ContractRead;
|
|
16759
|
+
// "contractRead"
|
|
16760
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16761
|
+
return import_types.NodeType.GraphQLQuery;
|
|
16762
|
+
// "graphql"
|
|
16763
|
+
case "NODE_TYPE_REST_API":
|
|
16764
|
+
return import_types.NodeType.RestAPI;
|
|
16765
|
+
// "restApi"
|
|
16766
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
16767
|
+
return import_types.NodeType.CustomCode;
|
|
16768
|
+
// "customCode"
|
|
16769
|
+
case "NODE_TYPE_BRANCH":
|
|
16770
|
+
return import_types.NodeType.Branch;
|
|
16771
|
+
// "branch"
|
|
16772
|
+
case "NODE_TYPE_FILTER":
|
|
16773
|
+
return import_types.NodeType.Filter;
|
|
16774
|
+
// "filter"
|
|
16775
|
+
case "NODE_TYPE_LOOP":
|
|
16776
|
+
return import_types.NodeType.Loop;
|
|
16777
|
+
// "loop"
|
|
16778
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
16779
|
+
return import_types.NodeType.Unspecified;
|
|
16780
|
+
// "unspecified"
|
|
16781
|
+
default:
|
|
16782
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16783
|
+
return protobufType;
|
|
16784
|
+
}
|
|
16785
|
+
}
|
|
16786
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16787
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16788
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16789
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16790
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16791
|
+
} else {
|
|
16792
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16793
|
+
return protobufType;
|
|
16794
|
+
}
|
|
16795
|
+
}
|
|
16796
|
+
function convertInputToProtobuf(input) {
|
|
16797
|
+
if (!input) {
|
|
16798
|
+
return void 0;
|
|
16799
|
+
}
|
|
16800
|
+
return import_struct_pb.Value.fromJavaScript(input);
|
|
16801
|
+
}
|
|
16802
|
+
function extractInputFromProtobuf(inputValue) {
|
|
16803
|
+
if (!inputValue) {
|
|
16804
|
+
return void 0;
|
|
16805
|
+
}
|
|
16806
|
+
const inputJavaScript = inputValue.toJavaScript();
|
|
16807
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16808
|
+
return inputJavaScript;
|
|
16809
|
+
}
|
|
16810
|
+
return void 0;
|
|
16811
|
+
}
|
|
16812
|
+
|
|
16813
|
+
// src/models/trigger/block.ts
|
|
16814
|
+
var import_types2 = require("@avaprotocol/types");
|
|
16142
16815
|
var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
16143
16816
|
constructor(props) {
|
|
16144
|
-
super({ ...props, type:
|
|
16817
|
+
super({ ...props, type: import_types2.TriggerType.Block, data: props.data });
|
|
16145
16818
|
}
|
|
16146
16819
|
toRequest() {
|
|
16147
16820
|
const request = new avs_pb2.TaskTrigger();
|
|
@@ -16162,12 +16835,17 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16162
16835
|
const config = new avs_pb2.BlockTrigger.Config();
|
|
16163
16836
|
config.setInterval(blockData.interval);
|
|
16164
16837
|
trigger.setConfig(config);
|
|
16838
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
16839
|
+
if (inputValue) {
|
|
16840
|
+
trigger.setInput(inputValue);
|
|
16841
|
+
}
|
|
16165
16842
|
request.setBlock(trigger);
|
|
16166
16843
|
return request;
|
|
16167
16844
|
}
|
|
16168
16845
|
static fromResponse(raw) {
|
|
16169
16846
|
const obj = raw.toObject();
|
|
16170
16847
|
let data = { interval: 0 };
|
|
16848
|
+
let input = void 0;
|
|
16171
16849
|
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
16172
16850
|
const config = raw.getBlock().getConfig();
|
|
16173
16851
|
if (config) {
|
|
@@ -16175,11 +16853,16 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16175
16853
|
interval: config.getInterval() || 0
|
|
16176
16854
|
};
|
|
16177
16855
|
}
|
|
16856
|
+
const blockTrigger = raw.getBlock();
|
|
16857
|
+
if (blockTrigger.hasInput()) {
|
|
16858
|
+
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
16859
|
+
}
|
|
16178
16860
|
}
|
|
16179
16861
|
return new _BlockTrigger({
|
|
16180
16862
|
...obj,
|
|
16181
|
-
type:
|
|
16182
|
-
data
|
|
16863
|
+
type: import_types2.TriggerType.Block,
|
|
16864
|
+
data,
|
|
16865
|
+
input
|
|
16183
16866
|
});
|
|
16184
16867
|
}
|
|
16185
16868
|
/**
|
|
@@ -16204,10 +16887,11 @@ var block_default = BlockTrigger2;
|
|
|
16204
16887
|
|
|
16205
16888
|
// src/models/trigger/cron.ts
|
|
16206
16889
|
var avs_pb3 = __toESM(require_avs_pb());
|
|
16207
|
-
var
|
|
16890
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16891
|
+
var import_types3 = require("@avaprotocol/types");
|
|
16208
16892
|
var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
16209
16893
|
constructor(props) {
|
|
16210
|
-
super({ ...props, type:
|
|
16894
|
+
super({ ...props, type: import_types3.TriggerType.Cron, data: props.data });
|
|
16211
16895
|
}
|
|
16212
16896
|
toRequest() {
|
|
16213
16897
|
const request = new avs_pb3.TaskTrigger();
|
|
@@ -16228,6 +16912,14 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16228
16912
|
const config = new avs_pb3.CronTrigger.Config();
|
|
16229
16913
|
config.setSchedulesList(cronData.schedules);
|
|
16230
16914
|
trigger.setConfig(config);
|
|
16915
|
+
if (this.input) {
|
|
16916
|
+
try {
|
|
16917
|
+
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
16918
|
+
trigger.setInput(inputValue);
|
|
16919
|
+
} catch (error) {
|
|
16920
|
+
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
16921
|
+
}
|
|
16922
|
+
}
|
|
16231
16923
|
request.setCron(trigger);
|
|
16232
16924
|
return request;
|
|
16233
16925
|
}
|
|
@@ -16242,10 +16934,19 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16242
16934
|
};
|
|
16243
16935
|
}
|
|
16244
16936
|
}
|
|
16937
|
+
let input;
|
|
16938
|
+
if (raw.getCron() && raw.getCron().hasInput()) {
|
|
16939
|
+
const inputValue = raw.getCron().getInput();
|
|
16940
|
+
if (inputValue) {
|
|
16941
|
+
input = inputValue.toObject();
|
|
16942
|
+
}
|
|
16943
|
+
}
|
|
16245
16944
|
return new _CronTrigger({
|
|
16246
16945
|
...obj,
|
|
16247
|
-
type:
|
|
16248
|
-
data
|
|
16946
|
+
type: import_types3.TriggerType.Cron,
|
|
16947
|
+
data,
|
|
16948
|
+
input
|
|
16949
|
+
// ✨ NEW: Include input data
|
|
16249
16950
|
});
|
|
16250
16951
|
}
|
|
16251
16952
|
/**
|
|
@@ -16276,10 +16977,10 @@ var cron_default = CronTrigger2;
|
|
|
16276
16977
|
|
|
16277
16978
|
// src/models/trigger/event.ts
|
|
16278
16979
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
16279
|
-
var
|
|
16980
|
+
var import_types4 = require("@avaprotocol/types");
|
|
16280
16981
|
var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
16281
16982
|
constructor(props) {
|
|
16282
|
-
super({ ...props, type:
|
|
16983
|
+
super({ ...props, type: import_types4.TriggerType.Event, data: props.data });
|
|
16283
16984
|
}
|
|
16284
16985
|
toRequest() {
|
|
16285
16986
|
const request = new avs_pb4.TaskTrigger();
|
|
@@ -16305,7 +17006,10 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
16305
17006
|
const topicsMessages = queryData.topics.map((topicData) => {
|
|
16306
17007
|
const topics = new avs_pb4.EventTrigger.Topics();
|
|
16307
17008
|
if (topicData.values) {
|
|
16308
|
-
|
|
17009
|
+
const processedValues = topicData.values.map(
|
|
17010
|
+
(value) => value === null ? "" : value
|
|
17011
|
+
);
|
|
17012
|
+
topics.setValuesList(processedValues);
|
|
16309
17013
|
}
|
|
16310
17014
|
return topics;
|
|
16311
17015
|
});
|
|
@@ -16339,6 +17043,9 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
16339
17043
|
}
|
|
16340
17044
|
if (query.getTopicsList && query.getTopicsList().length > 0) {
|
|
16341
17045
|
queryData.topics = query.getTopicsList().map((topics) => ({
|
|
17046
|
+
// Don't convert empty strings back to null - preserve the original values
|
|
17047
|
+
// The backend may legitimately use empty strings, and we shouldn't assume
|
|
17048
|
+
// they were originally null values from the client
|
|
16342
17049
|
values: topics.getValuesList() || []
|
|
16343
17050
|
}));
|
|
16344
17051
|
}
|
|
@@ -16354,7 +17061,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
16354
17061
|
}
|
|
16355
17062
|
return new _EventTrigger({
|
|
16356
17063
|
...obj,
|
|
16357
|
-
type:
|
|
17064
|
+
type: import_types4.TriggerType.Event,
|
|
16358
17065
|
data
|
|
16359
17066
|
});
|
|
16360
17067
|
}
|
|
@@ -16387,10 +17094,10 @@ var event_default = EventTrigger2;
|
|
|
16387
17094
|
|
|
16388
17095
|
// src/models/trigger/fixedTime.ts
|
|
16389
17096
|
var avs_pb5 = __toESM(require_avs_pb());
|
|
16390
|
-
var
|
|
17097
|
+
var import_types5 = require("@avaprotocol/types");
|
|
16391
17098
|
var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
16392
17099
|
constructor(props) {
|
|
16393
|
-
super({ ...props, type:
|
|
17100
|
+
super({ ...props, type: import_types5.TriggerType.FixedTime, data: props.data });
|
|
16394
17101
|
}
|
|
16395
17102
|
toRequest() {
|
|
16396
17103
|
const request = new avs_pb5.TaskTrigger();
|
|
@@ -16420,7 +17127,7 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
16420
17127
|
}
|
|
16421
17128
|
return new _FixedTimeTrigger({
|
|
16422
17129
|
...obj,
|
|
16423
|
-
type:
|
|
17130
|
+
type: import_types5.TriggerType.FixedTime,
|
|
16424
17131
|
data
|
|
16425
17132
|
});
|
|
16426
17133
|
}
|
|
@@ -16452,10 +17159,10 @@ var fixedTime_default = FixedTimeTrigger2;
|
|
|
16452
17159
|
|
|
16453
17160
|
// src/models/trigger/manual.ts
|
|
16454
17161
|
var avs_pb6 = __toESM(require_avs_pb());
|
|
16455
|
-
var
|
|
17162
|
+
var import_types6 = require("@avaprotocol/types");
|
|
16456
17163
|
var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
16457
17164
|
constructor(props) {
|
|
16458
|
-
super({ ...props, type:
|
|
17165
|
+
super({ ...props, type: import_types6.TriggerType.Manual, data: props.data || null });
|
|
16459
17166
|
}
|
|
16460
17167
|
toRequest() {
|
|
16461
17168
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -16463,15 +17170,24 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
16463
17170
|
trigger.setName(this.name);
|
|
16464
17171
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
16465
17172
|
trigger.setManual(true);
|
|
17173
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17174
|
+
if (inputValue) {
|
|
17175
|
+
trigger.setInput(inputValue);
|
|
17176
|
+
}
|
|
16466
17177
|
return trigger;
|
|
16467
17178
|
}
|
|
16468
17179
|
static fromResponse(raw) {
|
|
16469
17180
|
const obj = raw.toObject();
|
|
17181
|
+
let input = void 0;
|
|
17182
|
+
if (raw.hasInput()) {
|
|
17183
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17184
|
+
}
|
|
16470
17185
|
return new _ManualTrigger({
|
|
16471
17186
|
...obj,
|
|
16472
|
-
type:
|
|
16473
|
-
data: null
|
|
17187
|
+
type: import_types6.TriggerType.Manual,
|
|
17188
|
+
data: null,
|
|
16474
17189
|
// Manual triggers don't have data in the protobuf response
|
|
17190
|
+
input
|
|
16475
17191
|
});
|
|
16476
17192
|
}
|
|
16477
17193
|
getInputVariables() {
|
|
@@ -16499,144 +17215,6 @@ var manual_default = ManualTrigger;
|
|
|
16499
17215
|
|
|
16500
17216
|
// src/models/trigger/factory.ts
|
|
16501
17217
|
var import_types7 = require("@avaprotocol/types");
|
|
16502
|
-
|
|
16503
|
-
// src/utils.ts
|
|
16504
|
-
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16505
|
-
var import_types6 = require("@avaprotocol/types");
|
|
16506
|
-
function convertProtobufValueToJs(value) {
|
|
16507
|
-
if (!value) {
|
|
16508
|
-
return void 0;
|
|
16509
|
-
}
|
|
16510
|
-
switch (value.getKindCase()) {
|
|
16511
|
-
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
16512
|
-
return null;
|
|
16513
|
-
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
16514
|
-
return value.getNumberValue();
|
|
16515
|
-
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
16516
|
-
return value.getStringValue();
|
|
16517
|
-
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
16518
|
-
return value.getBoolValue();
|
|
16519
|
-
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
16520
|
-
const struct = value.getStructValue();
|
|
16521
|
-
if (!struct) return {};
|
|
16522
|
-
const jsObj = {};
|
|
16523
|
-
const fields = struct.getFieldsMap();
|
|
16524
|
-
fields.forEach((val, key) => {
|
|
16525
|
-
jsObj[key] = convertProtobufValueToJs(val);
|
|
16526
|
-
});
|
|
16527
|
-
return jsObj;
|
|
16528
|
-
}
|
|
16529
|
-
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
16530
|
-
const list = value.getListValue();
|
|
16531
|
-
if (!list) return [];
|
|
16532
|
-
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16533
|
-
}
|
|
16534
|
-
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
16535
|
-
default:
|
|
16536
|
-
return void 0;
|
|
16537
|
-
}
|
|
16538
|
-
}
|
|
16539
|
-
function convertJSValueToProtobuf(value) {
|
|
16540
|
-
const protobufValue = new import_struct_pb.Value();
|
|
16541
|
-
if (value === null || value === void 0) {
|
|
16542
|
-
protobufValue.setNullValue(0);
|
|
16543
|
-
} else if (typeof value === "number") {
|
|
16544
|
-
protobufValue.setNumberValue(value);
|
|
16545
|
-
} else if (typeof value === "string") {
|
|
16546
|
-
protobufValue.setStringValue(value);
|
|
16547
|
-
} else if (typeof value === "boolean") {
|
|
16548
|
-
protobufValue.setBoolValue(value);
|
|
16549
|
-
} else if (Array.isArray(value)) {
|
|
16550
|
-
const listValue = new import_struct_pb.ListValue();
|
|
16551
|
-
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16552
|
-
listValue.setValuesList(convertedValues);
|
|
16553
|
-
protobufValue.setListValue(listValue);
|
|
16554
|
-
} else if (typeof value === "object") {
|
|
16555
|
-
const structValue = new import_struct_pb.Struct();
|
|
16556
|
-
const fieldsMap = structValue.getFieldsMap();
|
|
16557
|
-
Object.entries(value).forEach(([key, val]) => {
|
|
16558
|
-
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16559
|
-
});
|
|
16560
|
-
protobufValue.setStructValue(structValue);
|
|
16561
|
-
} else {
|
|
16562
|
-
protobufValue.setStringValue(String(value));
|
|
16563
|
-
}
|
|
16564
|
-
return protobufValue;
|
|
16565
|
-
}
|
|
16566
|
-
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16567
|
-
switch (protobufType) {
|
|
16568
|
-
case "TRIGGER_TYPE_MANUAL":
|
|
16569
|
-
return import_types6.TriggerType.Manual;
|
|
16570
|
-
// "manualTrigger"
|
|
16571
|
-
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16572
|
-
return import_types6.TriggerType.FixedTime;
|
|
16573
|
-
// "fixedTimeTrigger"
|
|
16574
|
-
case "TRIGGER_TYPE_CRON":
|
|
16575
|
-
return import_types6.TriggerType.Cron;
|
|
16576
|
-
// "cronTrigger"
|
|
16577
|
-
case "TRIGGER_TYPE_BLOCK":
|
|
16578
|
-
return import_types6.TriggerType.Block;
|
|
16579
|
-
// "blockTrigger"
|
|
16580
|
-
case "TRIGGER_TYPE_EVENT":
|
|
16581
|
-
return import_types6.TriggerType.Event;
|
|
16582
|
-
// "eventTrigger"
|
|
16583
|
-
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16584
|
-
return import_types6.TriggerType.Unspecified;
|
|
16585
|
-
// "unspecified"
|
|
16586
|
-
default:
|
|
16587
|
-
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16588
|
-
return protobufType;
|
|
16589
|
-
}
|
|
16590
|
-
}
|
|
16591
|
-
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16592
|
-
switch (protobufType) {
|
|
16593
|
-
case "NODE_TYPE_ETH_TRANSFER":
|
|
16594
|
-
return import_types6.NodeType.ETHTransfer;
|
|
16595
|
-
// "ethTransfer"
|
|
16596
|
-
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16597
|
-
return import_types6.NodeType.ContractWrite;
|
|
16598
|
-
// "contractWrite"
|
|
16599
|
-
case "NODE_TYPE_CONTRACT_READ":
|
|
16600
|
-
return import_types6.NodeType.ContractRead;
|
|
16601
|
-
// "contractRead"
|
|
16602
|
-
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16603
|
-
return import_types6.NodeType.GraphQLQuery;
|
|
16604
|
-
// "graphql"
|
|
16605
|
-
case "NODE_TYPE_REST_API":
|
|
16606
|
-
return import_types6.NodeType.RestAPI;
|
|
16607
|
-
// "restApi"
|
|
16608
|
-
case "NODE_TYPE_CUSTOM_CODE":
|
|
16609
|
-
return import_types6.NodeType.CustomCode;
|
|
16610
|
-
// "customCode"
|
|
16611
|
-
case "NODE_TYPE_BRANCH":
|
|
16612
|
-
return import_types6.NodeType.Branch;
|
|
16613
|
-
// "branch"
|
|
16614
|
-
case "NODE_TYPE_FILTER":
|
|
16615
|
-
return import_types6.NodeType.Filter;
|
|
16616
|
-
// "filter"
|
|
16617
|
-
case "NODE_TYPE_LOOP":
|
|
16618
|
-
return import_types6.NodeType.Loop;
|
|
16619
|
-
// "loop"
|
|
16620
|
-
case "NODE_TYPE_UNSPECIFIED":
|
|
16621
|
-
return import_types6.NodeType.Unspecified;
|
|
16622
|
-
// "unspecified"
|
|
16623
|
-
default:
|
|
16624
|
-
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16625
|
-
return protobufType;
|
|
16626
|
-
}
|
|
16627
|
-
}
|
|
16628
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16629
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16630
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16631
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16632
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16633
|
-
} else {
|
|
16634
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16635
|
-
return protobufType;
|
|
16636
|
-
}
|
|
16637
|
-
}
|
|
16638
|
-
|
|
16639
|
-
// src/models/trigger/factory.ts
|
|
16640
17218
|
var TriggerFactory = class {
|
|
16641
17219
|
/**
|
|
16642
17220
|
* Static factory method to create Trigger instances
|
|
@@ -16739,6 +17317,7 @@ var Node = class {
|
|
|
16739
17317
|
this.name = props.name;
|
|
16740
17318
|
this.type = props.type;
|
|
16741
17319
|
this.data = props.data;
|
|
17320
|
+
this.input = props.input;
|
|
16742
17321
|
}
|
|
16743
17322
|
toRequest() {
|
|
16744
17323
|
const request = new avs_pb8.TaskNode();
|
|
@@ -16771,10 +17350,12 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16771
17350
|
methodName: call.methodName
|
|
16772
17351
|
})) || []
|
|
16773
17352
|
};
|
|
17353
|
+
const input = extractInputFromProtobuf(raw.getContractWrite()?.getInput());
|
|
16774
17354
|
return new _ContractWriteNode({
|
|
16775
17355
|
...obj,
|
|
16776
17356
|
type: import_types9.NodeType.ContractWrite,
|
|
16777
|
-
data
|
|
17357
|
+
data,
|
|
17358
|
+
input
|
|
16778
17359
|
});
|
|
16779
17360
|
}
|
|
16780
17361
|
toRequest() {
|
|
@@ -16796,6 +17377,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16796
17377
|
config.addMethodCalls(methodCallMsg);
|
|
16797
17378
|
});
|
|
16798
17379
|
nodeData.setConfig(config);
|
|
17380
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17381
|
+
if (inputValue) {
|
|
17382
|
+
nodeData.setInput(inputValue);
|
|
17383
|
+
}
|
|
16799
17384
|
request.setContractWrite(nodeData);
|
|
16800
17385
|
return request;
|
|
16801
17386
|
}
|
|
@@ -16869,10 +17454,12 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
16869
17454
|
lang: rawConfig.lang,
|
|
16870
17455
|
source: rawConfig.source
|
|
16871
17456
|
};
|
|
17457
|
+
const input = extractInputFromProtobuf(raw.getCustomCode()?.getInput());
|
|
16872
17458
|
return new _CustomCodeNode({
|
|
16873
17459
|
...obj,
|
|
16874
17460
|
type: import_types10.NodeType.CustomCode,
|
|
16875
|
-
data: convertedConfig
|
|
17461
|
+
data: convertedConfig,
|
|
17462
|
+
input
|
|
16876
17463
|
});
|
|
16877
17464
|
}
|
|
16878
17465
|
toRequest() {
|
|
@@ -16884,6 +17471,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
16884
17471
|
config.setLang(this.data.lang);
|
|
16885
17472
|
config.setSource(this.data.source);
|
|
16886
17473
|
nodeData.setConfig(config);
|
|
17474
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17475
|
+
if (inputValue) {
|
|
17476
|
+
nodeData.setInput(inputValue);
|
|
17477
|
+
}
|
|
16887
17478
|
request.setCustomCode(nodeData);
|
|
16888
17479
|
return request;
|
|
16889
17480
|
}
|
|
@@ -16914,10 +17505,12 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16914
17505
|
}
|
|
16915
17506
|
static fromResponse(raw) {
|
|
16916
17507
|
const obj = raw.toObject();
|
|
17508
|
+
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
16917
17509
|
return new _GraphQLQueryNode({
|
|
16918
17510
|
...obj,
|
|
16919
17511
|
type: import_types11.NodeType.GraphQLQuery,
|
|
16920
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17512
|
+
data: raw.getGraphqlQuery().getConfig().toObject(),
|
|
17513
|
+
input
|
|
16921
17514
|
});
|
|
16922
17515
|
}
|
|
16923
17516
|
toRequest() {
|
|
@@ -16935,6 +17528,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16935
17528
|
});
|
|
16936
17529
|
}
|
|
16937
17530
|
nodeData.setConfig(config);
|
|
17531
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17532
|
+
if (inputValue) {
|
|
17533
|
+
nodeData.setInput(inputValue);
|
|
17534
|
+
}
|
|
16938
17535
|
request.setGraphqlQuery(nodeData);
|
|
16939
17536
|
return request;
|
|
16940
17537
|
}
|
|
@@ -16954,10 +17551,16 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
16954
17551
|
}
|
|
16955
17552
|
static fromResponse(raw) {
|
|
16956
17553
|
const obj = raw.toObject();
|
|
17554
|
+
let input = void 0;
|
|
17555
|
+
if (raw.hasInput()) {
|
|
17556
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17557
|
+
}
|
|
16957
17558
|
return new _RestAPINode({
|
|
16958
17559
|
...obj,
|
|
16959
17560
|
type: import_types12.NodeType.RestAPI,
|
|
16960
|
-
data: raw.getRestApi().getConfig().toObject()
|
|
17561
|
+
data: raw.getRestApi().getConfig().toObject(),
|
|
17562
|
+
input
|
|
17563
|
+
// Include input data from top-level TaskNode
|
|
16961
17564
|
});
|
|
16962
17565
|
}
|
|
16963
17566
|
toRequest() {
|
|
@@ -16978,6 +17581,10 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
16978
17581
|
);
|
|
16979
17582
|
}
|
|
16980
17583
|
nodeData.setConfig(config);
|
|
17584
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17585
|
+
if (inputValue) {
|
|
17586
|
+
request.setInput(inputValue);
|
|
17587
|
+
}
|
|
16981
17588
|
request.setRestApi(nodeData);
|
|
16982
17589
|
return request;
|
|
16983
17590
|
}
|
|
@@ -17014,10 +17621,12 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17014
17621
|
methodName: call.methodName
|
|
17015
17622
|
})) || []
|
|
17016
17623
|
};
|
|
17624
|
+
const input = extractInputFromProtobuf(raw.getContractRead()?.getInput());
|
|
17017
17625
|
return new _ContractReadNode({
|
|
17018
17626
|
...obj,
|
|
17019
17627
|
type: import_types13.NodeType.ContractRead,
|
|
17020
|
-
data
|
|
17628
|
+
data,
|
|
17629
|
+
input
|
|
17021
17630
|
});
|
|
17022
17631
|
}
|
|
17023
17632
|
toRequest() {
|
|
@@ -17038,6 +17647,10 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17038
17647
|
config.addMethodCalls(methodCallMsg);
|
|
17039
17648
|
});
|
|
17040
17649
|
nodeData.setConfig(config);
|
|
17650
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17651
|
+
if (inputValue) {
|
|
17652
|
+
nodeData.setInput(inputValue);
|
|
17653
|
+
}
|
|
17041
17654
|
request.setContractRead(nodeData);
|
|
17042
17655
|
return request;
|
|
17043
17656
|
}
|
|
@@ -17072,10 +17685,12 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
17072
17685
|
}
|
|
17073
17686
|
static fromResponse(raw) {
|
|
17074
17687
|
const obj = raw.toObject();
|
|
17688
|
+
const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
|
|
17075
17689
|
return new _ETHTransferNode({
|
|
17076
17690
|
...obj,
|
|
17077
17691
|
type: import_types14.NodeType.ETHTransfer,
|
|
17078
|
-
data: raw.getEthTransfer().getConfig().toObject()
|
|
17692
|
+
data: raw.getEthTransfer().getConfig().toObject(),
|
|
17693
|
+
input
|
|
17079
17694
|
});
|
|
17080
17695
|
}
|
|
17081
17696
|
toRequest() {
|
|
@@ -17087,6 +17702,10 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
17087
17702
|
config.setDestination(this.data.destination);
|
|
17088
17703
|
config.setAmount(this.data.amount);
|
|
17089
17704
|
nodeData.setConfig(config);
|
|
17705
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17706
|
+
if (inputValue) {
|
|
17707
|
+
nodeData.setInput(inputValue);
|
|
17708
|
+
}
|
|
17090
17709
|
request.setEthTransfer(nodeData);
|
|
17091
17710
|
return request;
|
|
17092
17711
|
}
|
|
@@ -17114,10 +17733,12 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17114
17733
|
expression: condition.expression
|
|
17115
17734
|
})) || []
|
|
17116
17735
|
};
|
|
17736
|
+
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
17117
17737
|
return new _BranchNode({
|
|
17118
17738
|
...obj,
|
|
17119
17739
|
type: import_types15.NodeType.Branch,
|
|
17120
|
-
data
|
|
17740
|
+
data,
|
|
17741
|
+
input
|
|
17121
17742
|
});
|
|
17122
17743
|
}
|
|
17123
17744
|
toRequest() {
|
|
@@ -17139,6 +17760,10 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17139
17760
|
config.setConditionsList(conditionsList);
|
|
17140
17761
|
}
|
|
17141
17762
|
nodeData.setConfig(config);
|
|
17763
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17764
|
+
if (inputValue) {
|
|
17765
|
+
nodeData.setInput(inputValue);
|
|
17766
|
+
}
|
|
17142
17767
|
request.setBranch(nodeData);
|
|
17143
17768
|
return request;
|
|
17144
17769
|
}
|
|
@@ -17159,10 +17784,12 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
17159
17784
|
}
|
|
17160
17785
|
static fromResponse(raw) {
|
|
17161
17786
|
const obj = raw.toObject();
|
|
17787
|
+
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
17162
17788
|
return new _FilterNode({
|
|
17163
17789
|
...obj,
|
|
17164
17790
|
type: import_types16.NodeType.Filter,
|
|
17165
|
-
data: raw.getFilter().getConfig().toObject()
|
|
17791
|
+
data: raw.getFilter().getConfig().toObject(),
|
|
17792
|
+
input
|
|
17166
17793
|
});
|
|
17167
17794
|
}
|
|
17168
17795
|
toRequest() {
|
|
@@ -17174,6 +17801,10 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
17174
17801
|
config.setExpression(this.data.expression);
|
|
17175
17802
|
config.setSourceId(this.data.sourceId || "");
|
|
17176
17803
|
nodeData.setConfig(config);
|
|
17804
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17805
|
+
if (inputValue) {
|
|
17806
|
+
nodeData.setInput(inputValue);
|
|
17807
|
+
}
|
|
17177
17808
|
request.setFilter(nodeData);
|
|
17178
17809
|
return request;
|
|
17179
17810
|
}
|
|
@@ -17209,10 +17840,12 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17209
17840
|
contractWrite: loopNodeData.contractWrite,
|
|
17210
17841
|
graphqlDataQuery: loopNodeData.graphqlDataQuery
|
|
17211
17842
|
};
|
|
17843
|
+
const input = extractInputFromProtobuf(raw.getLoop()?.getInput());
|
|
17212
17844
|
return new _LoopNode({
|
|
17213
17845
|
...obj,
|
|
17214
17846
|
type: import_types17.NodeType.Loop,
|
|
17215
|
-
data
|
|
17847
|
+
data,
|
|
17848
|
+
input
|
|
17216
17849
|
});
|
|
17217
17850
|
}
|
|
17218
17851
|
toRequest() {
|
|
@@ -17226,6 +17859,10 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17226
17859
|
config.setIterVal(data.iterVal || "");
|
|
17227
17860
|
config.setIterKey(data.iterKey || "");
|
|
17228
17861
|
loopNode.setConfig(config);
|
|
17862
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17863
|
+
if (inputValue) {
|
|
17864
|
+
loopNode.setInput(inputValue);
|
|
17865
|
+
}
|
|
17229
17866
|
if (data.ethTransfer) {
|
|
17230
17867
|
const ethTransfer = new avs_pb17.ETHTransferNode();
|
|
17231
17868
|
if (data.ethTransfer.config) {
|
|
@@ -17582,6 +18219,7 @@ var Step = class _Step {
|
|
|
17582
18219
|
this.error = props.error;
|
|
17583
18220
|
this.log = props.log;
|
|
17584
18221
|
this.inputsList = props.inputsList;
|
|
18222
|
+
this.input = props.input;
|
|
17585
18223
|
this.output = props.output;
|
|
17586
18224
|
this.startAt = props.startAt;
|
|
17587
18225
|
this.endAt = props.endAt;
|
|
@@ -17599,6 +18237,7 @@ var Step = class _Step {
|
|
|
17599
18237
|
error: this.error,
|
|
17600
18238
|
log: this.log,
|
|
17601
18239
|
inputsList: this.inputsList,
|
|
18240
|
+
input: this.input,
|
|
17602
18241
|
output: this.output,
|
|
17603
18242
|
startAt: this.startAt,
|
|
17604
18243
|
endAt: this.endAt
|
|
@@ -17802,6 +18441,13 @@ var Step = class _Step {
|
|
|
17802
18441
|
}
|
|
17803
18442
|
}
|
|
17804
18443
|
static fromResponse(step) {
|
|
18444
|
+
let inputData = void 0;
|
|
18445
|
+
if (step.hasInput()) {
|
|
18446
|
+
const inputValue = step.getInput();
|
|
18447
|
+
if (inputValue) {
|
|
18448
|
+
inputData = convertProtobufValueToJs(inputValue);
|
|
18449
|
+
}
|
|
18450
|
+
}
|
|
17805
18451
|
return new _Step({
|
|
17806
18452
|
id: step.getId(),
|
|
17807
18453
|
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
@@ -17810,6 +18456,7 @@ var Step = class _Step {
|
|
|
17810
18456
|
error: step.getError(),
|
|
17811
18457
|
log: step.getLog(),
|
|
17812
18458
|
inputsList: step.getInputsList(),
|
|
18459
|
+
input: inputData,
|
|
17813
18460
|
output: _Step.getOutput(step),
|
|
17814
18461
|
startAt: step.getStartAt(),
|
|
17815
18462
|
endAt: step.getEndAt()
|