@avaprotocol/sdk-js 2.3.13-de.0 → 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 +839 -198
- package/dist/index.mjs +843 -202
- 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/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 +1 -1
package/dist/index.mjs
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,
|
|
@@ -16089,6 +16608,7 @@ var Trigger = class {
|
|
|
16089
16608
|
this.type = props.type;
|
|
16090
16609
|
this.data = props.data;
|
|
16091
16610
|
this.output = props.output;
|
|
16611
|
+
this.input = props.input;
|
|
16092
16612
|
}
|
|
16093
16613
|
toRequest() {
|
|
16094
16614
|
throw new Error("Method not implemented.");
|
|
@@ -16102,17 +16622,174 @@ var Trigger = class {
|
|
|
16102
16622
|
name: this.name,
|
|
16103
16623
|
type: this.type,
|
|
16104
16624
|
data: this.data,
|
|
16105
|
-
output: this.output
|
|
16625
|
+
output: this.output,
|
|
16626
|
+
input: this.input
|
|
16106
16627
|
};
|
|
16107
16628
|
}
|
|
16108
16629
|
};
|
|
16109
16630
|
var interface_default = Trigger;
|
|
16110
16631
|
|
|
16632
|
+
// src/utils.ts
|
|
16633
|
+
import {
|
|
16634
|
+
Value as ProtobufValue,
|
|
16635
|
+
Struct as ProtobufStruct,
|
|
16636
|
+
ListValue as ProtobufListValue
|
|
16637
|
+
} from "google-protobuf/google/protobuf/struct_pb";
|
|
16638
|
+
import { TriggerType, NodeType } from "@avaprotocol/types";
|
|
16639
|
+
function convertProtobufValueToJs(value) {
|
|
16640
|
+
if (!value) {
|
|
16641
|
+
return void 0;
|
|
16642
|
+
}
|
|
16643
|
+
switch (value.getKindCase()) {
|
|
16644
|
+
case ProtobufValue.KindCase.NULL_VALUE:
|
|
16645
|
+
return null;
|
|
16646
|
+
case ProtobufValue.KindCase.NUMBER_VALUE:
|
|
16647
|
+
return value.getNumberValue();
|
|
16648
|
+
case ProtobufValue.KindCase.STRING_VALUE:
|
|
16649
|
+
return value.getStringValue();
|
|
16650
|
+
case ProtobufValue.KindCase.BOOL_VALUE:
|
|
16651
|
+
return value.getBoolValue();
|
|
16652
|
+
case ProtobufValue.KindCase.STRUCT_VALUE: {
|
|
16653
|
+
const struct = value.getStructValue();
|
|
16654
|
+
if (!struct) return {};
|
|
16655
|
+
const jsObj = {};
|
|
16656
|
+
const fields = struct.getFieldsMap();
|
|
16657
|
+
fields.forEach((val, key) => {
|
|
16658
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
16659
|
+
});
|
|
16660
|
+
return jsObj;
|
|
16661
|
+
}
|
|
16662
|
+
case ProtobufValue.KindCase.LIST_VALUE: {
|
|
16663
|
+
const list = value.getListValue();
|
|
16664
|
+
if (!list) return [];
|
|
16665
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16666
|
+
}
|
|
16667
|
+
case ProtobufValue.KindCase.KIND_NOT_SET:
|
|
16668
|
+
default:
|
|
16669
|
+
return void 0;
|
|
16670
|
+
}
|
|
16671
|
+
}
|
|
16672
|
+
function convertJSValueToProtobuf(value) {
|
|
16673
|
+
const protobufValue = new ProtobufValue();
|
|
16674
|
+
if (value === null || value === void 0) {
|
|
16675
|
+
protobufValue.setNullValue(0);
|
|
16676
|
+
} else if (typeof value === "number") {
|
|
16677
|
+
protobufValue.setNumberValue(value);
|
|
16678
|
+
} else if (typeof value === "string") {
|
|
16679
|
+
protobufValue.setStringValue(value);
|
|
16680
|
+
} else if (typeof value === "boolean") {
|
|
16681
|
+
protobufValue.setBoolValue(value);
|
|
16682
|
+
} else if (Array.isArray(value)) {
|
|
16683
|
+
const listValue = new ProtobufListValue();
|
|
16684
|
+
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16685
|
+
listValue.setValuesList(convertedValues);
|
|
16686
|
+
protobufValue.setListValue(listValue);
|
|
16687
|
+
} else if (typeof value === "object") {
|
|
16688
|
+
const structValue = new ProtobufStruct();
|
|
16689
|
+
const fieldsMap = structValue.getFieldsMap();
|
|
16690
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
16691
|
+
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16692
|
+
});
|
|
16693
|
+
protobufValue.setStructValue(structValue);
|
|
16694
|
+
} else {
|
|
16695
|
+
protobufValue.setStringValue(String(value));
|
|
16696
|
+
}
|
|
16697
|
+
return protobufValue;
|
|
16698
|
+
}
|
|
16699
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16700
|
+
switch (protobufType) {
|
|
16701
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
16702
|
+
return TriggerType.Manual;
|
|
16703
|
+
// "manualTrigger"
|
|
16704
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16705
|
+
return TriggerType.FixedTime;
|
|
16706
|
+
// "fixedTimeTrigger"
|
|
16707
|
+
case "TRIGGER_TYPE_CRON":
|
|
16708
|
+
return TriggerType.Cron;
|
|
16709
|
+
// "cronTrigger"
|
|
16710
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
16711
|
+
return TriggerType.Block;
|
|
16712
|
+
// "blockTrigger"
|
|
16713
|
+
case "TRIGGER_TYPE_EVENT":
|
|
16714
|
+
return TriggerType.Event;
|
|
16715
|
+
// "eventTrigger"
|
|
16716
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16717
|
+
return TriggerType.Unspecified;
|
|
16718
|
+
// "unspecified"
|
|
16719
|
+
default:
|
|
16720
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16721
|
+
return protobufType;
|
|
16722
|
+
}
|
|
16723
|
+
}
|
|
16724
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16725
|
+
switch (protobufType) {
|
|
16726
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
16727
|
+
return NodeType.ETHTransfer;
|
|
16728
|
+
// "ethTransfer"
|
|
16729
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16730
|
+
return NodeType.ContractWrite;
|
|
16731
|
+
// "contractWrite"
|
|
16732
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
16733
|
+
return NodeType.ContractRead;
|
|
16734
|
+
// "contractRead"
|
|
16735
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16736
|
+
return NodeType.GraphQLQuery;
|
|
16737
|
+
// "graphql"
|
|
16738
|
+
case "NODE_TYPE_REST_API":
|
|
16739
|
+
return NodeType.RestAPI;
|
|
16740
|
+
// "restApi"
|
|
16741
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
16742
|
+
return NodeType.CustomCode;
|
|
16743
|
+
// "customCode"
|
|
16744
|
+
case "NODE_TYPE_BRANCH":
|
|
16745
|
+
return NodeType.Branch;
|
|
16746
|
+
// "branch"
|
|
16747
|
+
case "NODE_TYPE_FILTER":
|
|
16748
|
+
return NodeType.Filter;
|
|
16749
|
+
// "filter"
|
|
16750
|
+
case "NODE_TYPE_LOOP":
|
|
16751
|
+
return NodeType.Loop;
|
|
16752
|
+
// "loop"
|
|
16753
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
16754
|
+
return NodeType.Unspecified;
|
|
16755
|
+
// "unspecified"
|
|
16756
|
+
default:
|
|
16757
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16758
|
+
return protobufType;
|
|
16759
|
+
}
|
|
16760
|
+
}
|
|
16761
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16762
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16763
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16764
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16765
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16766
|
+
} else {
|
|
16767
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16768
|
+
return protobufType;
|
|
16769
|
+
}
|
|
16770
|
+
}
|
|
16771
|
+
function convertInputToProtobuf(input) {
|
|
16772
|
+
if (!input) {
|
|
16773
|
+
return void 0;
|
|
16774
|
+
}
|
|
16775
|
+
return ProtobufValue.fromJavaScript(input);
|
|
16776
|
+
}
|
|
16777
|
+
function extractInputFromProtobuf(inputValue) {
|
|
16778
|
+
if (!inputValue) {
|
|
16779
|
+
return void 0;
|
|
16780
|
+
}
|
|
16781
|
+
const inputJavaScript = inputValue.toJavaScript();
|
|
16782
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16783
|
+
return inputJavaScript;
|
|
16784
|
+
}
|
|
16785
|
+
return void 0;
|
|
16786
|
+
}
|
|
16787
|
+
|
|
16111
16788
|
// src/models/trigger/block.ts
|
|
16112
|
-
import { TriggerType as
|
|
16789
|
+
import { TriggerType as TriggerType3 } from "@avaprotocol/types";
|
|
16113
16790
|
var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
16114
16791
|
constructor(props) {
|
|
16115
|
-
super({ ...props, type:
|
|
16792
|
+
super({ ...props, type: TriggerType3.Block, data: props.data });
|
|
16116
16793
|
}
|
|
16117
16794
|
toRequest() {
|
|
16118
16795
|
const request = new avs_pb2.TaskTrigger();
|
|
@@ -16133,12 +16810,17 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16133
16810
|
const config = new avs_pb2.BlockTrigger.Config();
|
|
16134
16811
|
config.setInterval(blockData.interval);
|
|
16135
16812
|
trigger.setConfig(config);
|
|
16813
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
16814
|
+
if (inputValue) {
|
|
16815
|
+
trigger.setInput(inputValue);
|
|
16816
|
+
}
|
|
16136
16817
|
request.setBlock(trigger);
|
|
16137
16818
|
return request;
|
|
16138
16819
|
}
|
|
16139
16820
|
static fromResponse(raw) {
|
|
16140
16821
|
const obj = raw.toObject();
|
|
16141
16822
|
let data = { interval: 0 };
|
|
16823
|
+
let input = void 0;
|
|
16142
16824
|
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
16143
16825
|
const config = raw.getBlock().getConfig();
|
|
16144
16826
|
if (config) {
|
|
@@ -16146,11 +16828,16 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16146
16828
|
interval: config.getInterval() || 0
|
|
16147
16829
|
};
|
|
16148
16830
|
}
|
|
16831
|
+
const blockTrigger = raw.getBlock();
|
|
16832
|
+
if (blockTrigger.hasInput()) {
|
|
16833
|
+
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
16834
|
+
}
|
|
16149
16835
|
}
|
|
16150
16836
|
return new _BlockTrigger({
|
|
16151
16837
|
...obj,
|
|
16152
|
-
type:
|
|
16153
|
-
data
|
|
16838
|
+
type: TriggerType3.Block,
|
|
16839
|
+
data,
|
|
16840
|
+
input
|
|
16154
16841
|
});
|
|
16155
16842
|
}
|
|
16156
16843
|
/**
|
|
@@ -16175,10 +16862,11 @@ var block_default = BlockTrigger2;
|
|
|
16175
16862
|
|
|
16176
16863
|
// src/models/trigger/cron.ts
|
|
16177
16864
|
var avs_pb3 = __toESM(require_avs_pb());
|
|
16178
|
-
import
|
|
16865
|
+
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
16866
|
+
import { TriggerType as TriggerType5 } from "@avaprotocol/types";
|
|
16179
16867
|
var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
16180
16868
|
constructor(props) {
|
|
16181
|
-
super({ ...props, type:
|
|
16869
|
+
super({ ...props, type: TriggerType5.Cron, data: props.data });
|
|
16182
16870
|
}
|
|
16183
16871
|
toRequest() {
|
|
16184
16872
|
const request = new avs_pb3.TaskTrigger();
|
|
@@ -16199,6 +16887,14 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16199
16887
|
const config = new avs_pb3.CronTrigger.Config();
|
|
16200
16888
|
config.setSchedulesList(cronData.schedules);
|
|
16201
16889
|
trigger.setConfig(config);
|
|
16890
|
+
if (this.input) {
|
|
16891
|
+
try {
|
|
16892
|
+
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
16893
|
+
trigger.setInput(inputValue);
|
|
16894
|
+
} catch (error) {
|
|
16895
|
+
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
16896
|
+
}
|
|
16897
|
+
}
|
|
16202
16898
|
request.setCron(trigger);
|
|
16203
16899
|
return request;
|
|
16204
16900
|
}
|
|
@@ -16213,10 +16909,19 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16213
16909
|
};
|
|
16214
16910
|
}
|
|
16215
16911
|
}
|
|
16912
|
+
let input;
|
|
16913
|
+
if (raw.getCron() && raw.getCron().hasInput()) {
|
|
16914
|
+
const inputValue = raw.getCron().getInput();
|
|
16915
|
+
if (inputValue) {
|
|
16916
|
+
input = inputValue.toObject();
|
|
16917
|
+
}
|
|
16918
|
+
}
|
|
16216
16919
|
return new _CronTrigger({
|
|
16217
16920
|
...obj,
|
|
16218
|
-
type:
|
|
16219
|
-
data
|
|
16921
|
+
type: TriggerType5.Cron,
|
|
16922
|
+
data,
|
|
16923
|
+
input
|
|
16924
|
+
// ✨ NEW: Include input data
|
|
16220
16925
|
});
|
|
16221
16926
|
}
|
|
16222
16927
|
/**
|
|
@@ -16248,11 +16953,11 @@ var cron_default = CronTrigger2;
|
|
|
16248
16953
|
// src/models/trigger/event.ts
|
|
16249
16954
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
16250
16955
|
import {
|
|
16251
|
-
TriggerType as
|
|
16956
|
+
TriggerType as TriggerType7
|
|
16252
16957
|
} from "@avaprotocol/types";
|
|
16253
16958
|
var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
16254
16959
|
constructor(props) {
|
|
16255
|
-
super({ ...props, type:
|
|
16960
|
+
super({ ...props, type: TriggerType7.Event, data: props.data });
|
|
16256
16961
|
}
|
|
16257
16962
|
toRequest() {
|
|
16258
16963
|
const request = new avs_pb4.TaskTrigger();
|
|
@@ -16333,7 +17038,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
16333
17038
|
}
|
|
16334
17039
|
return new _EventTrigger({
|
|
16335
17040
|
...obj,
|
|
16336
|
-
type:
|
|
17041
|
+
type: TriggerType7.Event,
|
|
16337
17042
|
data
|
|
16338
17043
|
});
|
|
16339
17044
|
}
|
|
@@ -16366,10 +17071,10 @@ var event_default = EventTrigger2;
|
|
|
16366
17071
|
|
|
16367
17072
|
// src/models/trigger/fixedTime.ts
|
|
16368
17073
|
var avs_pb5 = __toESM(require_avs_pb());
|
|
16369
|
-
import { TriggerType as
|
|
17074
|
+
import { TriggerType as TriggerType9 } from "@avaprotocol/types";
|
|
16370
17075
|
var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
16371
17076
|
constructor(props) {
|
|
16372
|
-
super({ ...props, type:
|
|
17077
|
+
super({ ...props, type: TriggerType9.FixedTime, data: props.data });
|
|
16373
17078
|
}
|
|
16374
17079
|
toRequest() {
|
|
16375
17080
|
const request = new avs_pb5.TaskTrigger();
|
|
@@ -16399,7 +17104,7 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
16399
17104
|
}
|
|
16400
17105
|
return new _FixedTimeTrigger({
|
|
16401
17106
|
...obj,
|
|
16402
|
-
type:
|
|
17107
|
+
type: TriggerType9.FixedTime,
|
|
16403
17108
|
data
|
|
16404
17109
|
});
|
|
16405
17110
|
}
|
|
@@ -16431,10 +17136,10 @@ var fixedTime_default = FixedTimeTrigger2;
|
|
|
16431
17136
|
|
|
16432
17137
|
// src/models/trigger/manual.ts
|
|
16433
17138
|
var avs_pb6 = __toESM(require_avs_pb());
|
|
16434
|
-
import { TriggerType as
|
|
17139
|
+
import { TriggerType as TriggerType11 } from "@avaprotocol/types";
|
|
16435
17140
|
var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
16436
17141
|
constructor(props) {
|
|
16437
|
-
super({ ...props, type:
|
|
17142
|
+
super({ ...props, type: TriggerType11.Manual, data: props.data || null });
|
|
16438
17143
|
}
|
|
16439
17144
|
toRequest() {
|
|
16440
17145
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -16442,15 +17147,24 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
16442
17147
|
trigger.setName(this.name);
|
|
16443
17148
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
16444
17149
|
trigger.setManual(true);
|
|
17150
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17151
|
+
if (inputValue) {
|
|
17152
|
+
trigger.setInput(inputValue);
|
|
17153
|
+
}
|
|
16445
17154
|
return trigger;
|
|
16446
17155
|
}
|
|
16447
17156
|
static fromResponse(raw) {
|
|
16448
17157
|
const obj = raw.toObject();
|
|
17158
|
+
let input = void 0;
|
|
17159
|
+
if (raw.hasInput()) {
|
|
17160
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17161
|
+
}
|
|
16449
17162
|
return new _ManualTrigger({
|
|
16450
17163
|
...obj,
|
|
16451
|
-
type:
|
|
16452
|
-
data: null
|
|
17164
|
+
type: TriggerType11.Manual,
|
|
17165
|
+
data: null,
|
|
16453
17166
|
// Manual triggers don't have data in the protobuf response
|
|
17167
|
+
input
|
|
16454
17168
|
});
|
|
16455
17169
|
}
|
|
16456
17170
|
getInputVariables() {
|
|
@@ -16480,148 +17194,6 @@ var manual_default = ManualTrigger;
|
|
|
16480
17194
|
import {
|
|
16481
17195
|
TriggerType as TriggerType12
|
|
16482
17196
|
} from "@avaprotocol/types";
|
|
16483
|
-
|
|
16484
|
-
// src/utils.ts
|
|
16485
|
-
import {
|
|
16486
|
-
Value as ProtobufValue,
|
|
16487
|
-
Struct as ProtobufStruct,
|
|
16488
|
-
ListValue as ProtobufListValue
|
|
16489
|
-
} from "google-protobuf/google/protobuf/struct_pb";
|
|
16490
|
-
import { TriggerType as TriggerType11, NodeType } from "@avaprotocol/types";
|
|
16491
|
-
function convertProtobufValueToJs(value) {
|
|
16492
|
-
if (!value) {
|
|
16493
|
-
return void 0;
|
|
16494
|
-
}
|
|
16495
|
-
switch (value.getKindCase()) {
|
|
16496
|
-
case ProtobufValue.KindCase.NULL_VALUE:
|
|
16497
|
-
return null;
|
|
16498
|
-
case ProtobufValue.KindCase.NUMBER_VALUE:
|
|
16499
|
-
return value.getNumberValue();
|
|
16500
|
-
case ProtobufValue.KindCase.STRING_VALUE:
|
|
16501
|
-
return value.getStringValue();
|
|
16502
|
-
case ProtobufValue.KindCase.BOOL_VALUE:
|
|
16503
|
-
return value.getBoolValue();
|
|
16504
|
-
case ProtobufValue.KindCase.STRUCT_VALUE: {
|
|
16505
|
-
const struct = value.getStructValue();
|
|
16506
|
-
if (!struct) return {};
|
|
16507
|
-
const jsObj = {};
|
|
16508
|
-
const fields = struct.getFieldsMap();
|
|
16509
|
-
fields.forEach((val, key) => {
|
|
16510
|
-
jsObj[key] = convertProtobufValueToJs(val);
|
|
16511
|
-
});
|
|
16512
|
-
return jsObj;
|
|
16513
|
-
}
|
|
16514
|
-
case ProtobufValue.KindCase.LIST_VALUE: {
|
|
16515
|
-
const list = value.getListValue();
|
|
16516
|
-
if (!list) return [];
|
|
16517
|
-
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16518
|
-
}
|
|
16519
|
-
case ProtobufValue.KindCase.KIND_NOT_SET:
|
|
16520
|
-
default:
|
|
16521
|
-
return void 0;
|
|
16522
|
-
}
|
|
16523
|
-
}
|
|
16524
|
-
function convertJSValueToProtobuf(value) {
|
|
16525
|
-
const protobufValue = new ProtobufValue();
|
|
16526
|
-
if (value === null || value === void 0) {
|
|
16527
|
-
protobufValue.setNullValue(0);
|
|
16528
|
-
} else if (typeof value === "number") {
|
|
16529
|
-
protobufValue.setNumberValue(value);
|
|
16530
|
-
} else if (typeof value === "string") {
|
|
16531
|
-
protobufValue.setStringValue(value);
|
|
16532
|
-
} else if (typeof value === "boolean") {
|
|
16533
|
-
protobufValue.setBoolValue(value);
|
|
16534
|
-
} else if (Array.isArray(value)) {
|
|
16535
|
-
const listValue = new ProtobufListValue();
|
|
16536
|
-
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16537
|
-
listValue.setValuesList(convertedValues);
|
|
16538
|
-
protobufValue.setListValue(listValue);
|
|
16539
|
-
} else if (typeof value === "object") {
|
|
16540
|
-
const structValue = new ProtobufStruct();
|
|
16541
|
-
const fieldsMap = structValue.getFieldsMap();
|
|
16542
|
-
Object.entries(value).forEach(([key, val]) => {
|
|
16543
|
-
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16544
|
-
});
|
|
16545
|
-
protobufValue.setStructValue(structValue);
|
|
16546
|
-
} else {
|
|
16547
|
-
protobufValue.setStringValue(String(value));
|
|
16548
|
-
}
|
|
16549
|
-
return protobufValue;
|
|
16550
|
-
}
|
|
16551
|
-
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16552
|
-
switch (protobufType) {
|
|
16553
|
-
case "TRIGGER_TYPE_MANUAL":
|
|
16554
|
-
return TriggerType11.Manual;
|
|
16555
|
-
// "manualTrigger"
|
|
16556
|
-
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16557
|
-
return TriggerType11.FixedTime;
|
|
16558
|
-
// "fixedTimeTrigger"
|
|
16559
|
-
case "TRIGGER_TYPE_CRON":
|
|
16560
|
-
return TriggerType11.Cron;
|
|
16561
|
-
// "cronTrigger"
|
|
16562
|
-
case "TRIGGER_TYPE_BLOCK":
|
|
16563
|
-
return TriggerType11.Block;
|
|
16564
|
-
// "blockTrigger"
|
|
16565
|
-
case "TRIGGER_TYPE_EVENT":
|
|
16566
|
-
return TriggerType11.Event;
|
|
16567
|
-
// "eventTrigger"
|
|
16568
|
-
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16569
|
-
return TriggerType11.Unspecified;
|
|
16570
|
-
// "unspecified"
|
|
16571
|
-
default:
|
|
16572
|
-
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16573
|
-
return protobufType;
|
|
16574
|
-
}
|
|
16575
|
-
}
|
|
16576
|
-
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16577
|
-
switch (protobufType) {
|
|
16578
|
-
case "NODE_TYPE_ETH_TRANSFER":
|
|
16579
|
-
return NodeType.ETHTransfer;
|
|
16580
|
-
// "ethTransfer"
|
|
16581
|
-
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16582
|
-
return NodeType.ContractWrite;
|
|
16583
|
-
// "contractWrite"
|
|
16584
|
-
case "NODE_TYPE_CONTRACT_READ":
|
|
16585
|
-
return NodeType.ContractRead;
|
|
16586
|
-
// "contractRead"
|
|
16587
|
-
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16588
|
-
return NodeType.GraphQLQuery;
|
|
16589
|
-
// "graphql"
|
|
16590
|
-
case "NODE_TYPE_REST_API":
|
|
16591
|
-
return NodeType.RestAPI;
|
|
16592
|
-
// "restApi"
|
|
16593
|
-
case "NODE_TYPE_CUSTOM_CODE":
|
|
16594
|
-
return NodeType.CustomCode;
|
|
16595
|
-
// "customCode"
|
|
16596
|
-
case "NODE_TYPE_BRANCH":
|
|
16597
|
-
return NodeType.Branch;
|
|
16598
|
-
// "branch"
|
|
16599
|
-
case "NODE_TYPE_FILTER":
|
|
16600
|
-
return NodeType.Filter;
|
|
16601
|
-
// "filter"
|
|
16602
|
-
case "NODE_TYPE_LOOP":
|
|
16603
|
-
return NodeType.Loop;
|
|
16604
|
-
// "loop"
|
|
16605
|
-
case "NODE_TYPE_UNSPECIFIED":
|
|
16606
|
-
return NodeType.Unspecified;
|
|
16607
|
-
// "unspecified"
|
|
16608
|
-
default:
|
|
16609
|
-
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16610
|
-
return protobufType;
|
|
16611
|
-
}
|
|
16612
|
-
}
|
|
16613
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16614
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16615
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16616
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16617
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16618
|
-
} else {
|
|
16619
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16620
|
-
return protobufType;
|
|
16621
|
-
}
|
|
16622
|
-
}
|
|
16623
|
-
|
|
16624
|
-
// src/models/trigger/factory.ts
|
|
16625
17197
|
var TriggerFactory = class {
|
|
16626
17198
|
/**
|
|
16627
17199
|
* Static factory method to create Trigger instances
|
|
@@ -16724,6 +17296,7 @@ var Node = class {
|
|
|
16724
17296
|
this.name = props.name;
|
|
16725
17297
|
this.type = props.type;
|
|
16726
17298
|
this.data = props.data;
|
|
17299
|
+
this.input = props.input;
|
|
16727
17300
|
}
|
|
16728
17301
|
toRequest() {
|
|
16729
17302
|
const request = new avs_pb8.TaskNode();
|
|
@@ -16756,10 +17329,12 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16756
17329
|
methodName: call.methodName
|
|
16757
17330
|
})) || []
|
|
16758
17331
|
};
|
|
17332
|
+
const input = extractInputFromProtobuf(raw.getContractWrite()?.getInput());
|
|
16759
17333
|
return new _ContractWriteNode({
|
|
16760
17334
|
...obj,
|
|
16761
17335
|
type: NodeType3.ContractWrite,
|
|
16762
|
-
data
|
|
17336
|
+
data,
|
|
17337
|
+
input
|
|
16763
17338
|
});
|
|
16764
17339
|
}
|
|
16765
17340
|
toRequest() {
|
|
@@ -16781,6 +17356,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16781
17356
|
config.addMethodCalls(methodCallMsg);
|
|
16782
17357
|
});
|
|
16783
17358
|
nodeData.setConfig(config);
|
|
17359
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17360
|
+
if (inputValue) {
|
|
17361
|
+
nodeData.setInput(inputValue);
|
|
17362
|
+
}
|
|
16784
17363
|
request.setContractWrite(nodeData);
|
|
16785
17364
|
return request;
|
|
16786
17365
|
}
|
|
@@ -16856,10 +17435,12 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
16856
17435
|
lang: rawConfig.lang,
|
|
16857
17436
|
source: rawConfig.source
|
|
16858
17437
|
};
|
|
17438
|
+
const input = extractInputFromProtobuf(raw.getCustomCode()?.getInput());
|
|
16859
17439
|
return new _CustomCodeNode({
|
|
16860
17440
|
...obj,
|
|
16861
17441
|
type: NodeType4.CustomCode,
|
|
16862
|
-
data: convertedConfig
|
|
17442
|
+
data: convertedConfig,
|
|
17443
|
+
input
|
|
16863
17444
|
});
|
|
16864
17445
|
}
|
|
16865
17446
|
toRequest() {
|
|
@@ -16871,6 +17452,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
16871
17452
|
config.setLang(this.data.lang);
|
|
16872
17453
|
config.setSource(this.data.source);
|
|
16873
17454
|
nodeData.setConfig(config);
|
|
17455
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17456
|
+
if (inputValue) {
|
|
17457
|
+
nodeData.setInput(inputValue);
|
|
17458
|
+
}
|
|
16874
17459
|
request.setCustomCode(nodeData);
|
|
16875
17460
|
return request;
|
|
16876
17461
|
}
|
|
@@ -16901,10 +17486,12 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16901
17486
|
}
|
|
16902
17487
|
static fromResponse(raw) {
|
|
16903
17488
|
const obj = raw.toObject();
|
|
17489
|
+
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
16904
17490
|
return new _GraphQLQueryNode({
|
|
16905
17491
|
...obj,
|
|
16906
17492
|
type: NodeType5.GraphQLQuery,
|
|
16907
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17493
|
+
data: raw.getGraphqlQuery().getConfig().toObject(),
|
|
17494
|
+
input
|
|
16908
17495
|
});
|
|
16909
17496
|
}
|
|
16910
17497
|
toRequest() {
|
|
@@ -16922,6 +17509,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16922
17509
|
});
|
|
16923
17510
|
}
|
|
16924
17511
|
nodeData.setConfig(config);
|
|
17512
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17513
|
+
if (inputValue) {
|
|
17514
|
+
nodeData.setInput(inputValue);
|
|
17515
|
+
}
|
|
16925
17516
|
request.setGraphqlQuery(nodeData);
|
|
16926
17517
|
return request;
|
|
16927
17518
|
}
|
|
@@ -16943,10 +17534,16 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
16943
17534
|
}
|
|
16944
17535
|
static fromResponse(raw) {
|
|
16945
17536
|
const obj = raw.toObject();
|
|
17537
|
+
let input = void 0;
|
|
17538
|
+
if (raw.hasInput()) {
|
|
17539
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17540
|
+
}
|
|
16946
17541
|
return new _RestAPINode({
|
|
16947
17542
|
...obj,
|
|
16948
17543
|
type: NodeType6.RestAPI,
|
|
16949
|
-
data: raw.getRestApi().getConfig().toObject()
|
|
17544
|
+
data: raw.getRestApi().getConfig().toObject(),
|
|
17545
|
+
input
|
|
17546
|
+
// Include input data from top-level TaskNode
|
|
16950
17547
|
});
|
|
16951
17548
|
}
|
|
16952
17549
|
toRequest() {
|
|
@@ -16967,6 +17564,10 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
16967
17564
|
);
|
|
16968
17565
|
}
|
|
16969
17566
|
nodeData.setConfig(config);
|
|
17567
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17568
|
+
if (inputValue) {
|
|
17569
|
+
request.setInput(inputValue);
|
|
17570
|
+
}
|
|
16970
17571
|
request.setRestApi(nodeData);
|
|
16971
17572
|
return request;
|
|
16972
17573
|
}
|
|
@@ -17003,10 +17604,12 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17003
17604
|
methodName: call.methodName
|
|
17004
17605
|
})) || []
|
|
17005
17606
|
};
|
|
17607
|
+
const input = extractInputFromProtobuf(raw.getContractRead()?.getInput());
|
|
17006
17608
|
return new _ContractReadNode({
|
|
17007
17609
|
...obj,
|
|
17008
17610
|
type: NodeType7.ContractRead,
|
|
17009
|
-
data
|
|
17611
|
+
data,
|
|
17612
|
+
input
|
|
17010
17613
|
});
|
|
17011
17614
|
}
|
|
17012
17615
|
toRequest() {
|
|
@@ -17027,6 +17630,10 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17027
17630
|
config.addMethodCalls(methodCallMsg);
|
|
17028
17631
|
});
|
|
17029
17632
|
nodeData.setConfig(config);
|
|
17633
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17634
|
+
if (inputValue) {
|
|
17635
|
+
nodeData.setInput(inputValue);
|
|
17636
|
+
}
|
|
17030
17637
|
request.setContractRead(nodeData);
|
|
17031
17638
|
return request;
|
|
17032
17639
|
}
|
|
@@ -17061,10 +17668,12 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
17061
17668
|
}
|
|
17062
17669
|
static fromResponse(raw) {
|
|
17063
17670
|
const obj = raw.toObject();
|
|
17671
|
+
const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
|
|
17064
17672
|
return new _ETHTransferNode({
|
|
17065
17673
|
...obj,
|
|
17066
17674
|
type: NodeType8.ETHTransfer,
|
|
17067
|
-
data: raw.getEthTransfer().getConfig().toObject()
|
|
17675
|
+
data: raw.getEthTransfer().getConfig().toObject(),
|
|
17676
|
+
input
|
|
17068
17677
|
});
|
|
17069
17678
|
}
|
|
17070
17679
|
toRequest() {
|
|
@@ -17076,6 +17685,10 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
17076
17685
|
config.setDestination(this.data.destination);
|
|
17077
17686
|
config.setAmount(this.data.amount);
|
|
17078
17687
|
nodeData.setConfig(config);
|
|
17688
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17689
|
+
if (inputValue) {
|
|
17690
|
+
nodeData.setInput(inputValue);
|
|
17691
|
+
}
|
|
17079
17692
|
request.setEthTransfer(nodeData);
|
|
17080
17693
|
return request;
|
|
17081
17694
|
}
|
|
@@ -17103,10 +17716,12 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17103
17716
|
expression: condition.expression
|
|
17104
17717
|
})) || []
|
|
17105
17718
|
};
|
|
17719
|
+
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
17106
17720
|
return new _BranchNode({
|
|
17107
17721
|
...obj,
|
|
17108
17722
|
type: NodeType9.Branch,
|
|
17109
|
-
data
|
|
17723
|
+
data,
|
|
17724
|
+
input
|
|
17110
17725
|
});
|
|
17111
17726
|
}
|
|
17112
17727
|
toRequest() {
|
|
@@ -17128,6 +17743,10 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17128
17743
|
config.setConditionsList(conditionsList);
|
|
17129
17744
|
}
|
|
17130
17745
|
nodeData.setConfig(config);
|
|
17746
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17747
|
+
if (inputValue) {
|
|
17748
|
+
nodeData.setInput(inputValue);
|
|
17749
|
+
}
|
|
17131
17750
|
request.setBranch(nodeData);
|
|
17132
17751
|
return request;
|
|
17133
17752
|
}
|
|
@@ -17148,10 +17767,12 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
17148
17767
|
}
|
|
17149
17768
|
static fromResponse(raw) {
|
|
17150
17769
|
const obj = raw.toObject();
|
|
17770
|
+
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
17151
17771
|
return new _FilterNode({
|
|
17152
17772
|
...obj,
|
|
17153
17773
|
type: NodeType10.Filter,
|
|
17154
|
-
data: raw.getFilter().getConfig().toObject()
|
|
17774
|
+
data: raw.getFilter().getConfig().toObject(),
|
|
17775
|
+
input
|
|
17155
17776
|
});
|
|
17156
17777
|
}
|
|
17157
17778
|
toRequest() {
|
|
@@ -17163,6 +17784,10 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
17163
17784
|
config.setExpression(this.data.expression);
|
|
17164
17785
|
config.setSourceId(this.data.sourceId || "");
|
|
17165
17786
|
nodeData.setConfig(config);
|
|
17787
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17788
|
+
if (inputValue) {
|
|
17789
|
+
nodeData.setInput(inputValue);
|
|
17790
|
+
}
|
|
17166
17791
|
request.setFilter(nodeData);
|
|
17167
17792
|
return request;
|
|
17168
17793
|
}
|
|
@@ -17200,10 +17825,12 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17200
17825
|
contractWrite: loopNodeData.contractWrite,
|
|
17201
17826
|
graphqlDataQuery: loopNodeData.graphqlDataQuery
|
|
17202
17827
|
};
|
|
17828
|
+
const input = extractInputFromProtobuf(raw.getLoop()?.getInput());
|
|
17203
17829
|
return new _LoopNode({
|
|
17204
17830
|
...obj,
|
|
17205
17831
|
type: NodeType11.Loop,
|
|
17206
|
-
data
|
|
17832
|
+
data,
|
|
17833
|
+
input
|
|
17207
17834
|
});
|
|
17208
17835
|
}
|
|
17209
17836
|
toRequest() {
|
|
@@ -17217,6 +17844,10 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17217
17844
|
config.setIterVal(data.iterVal || "");
|
|
17218
17845
|
config.setIterKey(data.iterKey || "");
|
|
17219
17846
|
loopNode.setConfig(config);
|
|
17847
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17848
|
+
if (inputValue) {
|
|
17849
|
+
loopNode.setInput(inputValue);
|
|
17850
|
+
}
|
|
17220
17851
|
if (data.ethTransfer) {
|
|
17221
17852
|
const ethTransfer = new avs_pb17.ETHTransferNode();
|
|
17222
17853
|
if (data.ethTransfer.config) {
|
|
@@ -17575,6 +18206,7 @@ var Step = class _Step {
|
|
|
17575
18206
|
this.error = props.error;
|
|
17576
18207
|
this.log = props.log;
|
|
17577
18208
|
this.inputsList = props.inputsList;
|
|
18209
|
+
this.input = props.input;
|
|
17578
18210
|
this.output = props.output;
|
|
17579
18211
|
this.startAt = props.startAt;
|
|
17580
18212
|
this.endAt = props.endAt;
|
|
@@ -17592,6 +18224,7 @@ var Step = class _Step {
|
|
|
17592
18224
|
error: this.error,
|
|
17593
18225
|
log: this.log,
|
|
17594
18226
|
inputsList: this.inputsList,
|
|
18227
|
+
input: this.input,
|
|
17595
18228
|
output: this.output,
|
|
17596
18229
|
startAt: this.startAt,
|
|
17597
18230
|
endAt: this.endAt
|
|
@@ -17795,6 +18428,13 @@ var Step = class _Step {
|
|
|
17795
18428
|
}
|
|
17796
18429
|
}
|
|
17797
18430
|
static fromResponse(step) {
|
|
18431
|
+
let inputData = void 0;
|
|
18432
|
+
if (step.hasInput()) {
|
|
18433
|
+
const inputValue = step.getInput();
|
|
18434
|
+
if (inputValue) {
|
|
18435
|
+
inputData = convertProtobufValueToJs(inputValue);
|
|
18436
|
+
}
|
|
18437
|
+
}
|
|
17798
18438
|
return new _Step({
|
|
17799
18439
|
id: step.getId(),
|
|
17800
18440
|
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
@@ -17803,6 +18443,7 @@ var Step = class _Step {
|
|
|
17803
18443
|
error: step.getError(),
|
|
17804
18444
|
log: step.getLog(),
|
|
17805
18445
|
inputsList: step.getInputsList(),
|
|
18446
|
+
input: inputData,
|
|
17806
18447
|
output: _Step.getOutput(step),
|
|
17807
18448
|
startAt: step.getStartAt(),
|
|
17808
18449
|
endAt: step.getEndAt()
|