@avaprotocol/sdk-js 2.3.13-de.0 → 2.3.13-dev.1
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 +1103 -401
- package/dist/index.mjs +1107 -405
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +12 -3
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +12 -3
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +12 -3
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +12 -4
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +12 -3
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +12 -3
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +12 -3
- package/dist/models/node/interface.d.ts +3 -2
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/interface.js +17 -2
- 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 +308 -206
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +13 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +20 -0
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/interface.d.ts +4 -5
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/interface.js +4 -2
- 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 +52 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -55,8 +55,8 @@ var require_avs_pb = __commonJS({
|
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
56
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
57
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
58
|
-
var
|
|
59
|
-
goog.object.extend(proto,
|
|
58
|
+
var google_protobuf_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
59
|
+
goog.object.extend(proto, google_protobuf_struct_pb2);
|
|
60
60
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
61
61
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
|
|
62
62
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
|
|
@@ -1322,7 +1322,8 @@ var require_avs_pb = __commonJS({
|
|
|
1322
1322
|
};
|
|
1323
1323
|
proto.aggregator.FixedTimeTrigger.toObject = function(includeInstance, msg) {
|
|
1324
1324
|
var f, obj = {
|
|
1325
|
-
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
|
|
1325
|
+
config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f),
|
|
1326
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1326
1327
|
};
|
|
1327
1328
|
if (includeInstance) {
|
|
1328
1329
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1347,6 +1348,11 @@ var require_avs_pb = __commonJS({
|
|
|
1347
1348
|
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Config.deserializeBinaryFromReader);
|
|
1348
1349
|
msg.setConfig(value);
|
|
1349
1350
|
break;
|
|
1351
|
+
case 2:
|
|
1352
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1353
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1354
|
+
msg.setInput(value);
|
|
1355
|
+
break;
|
|
1350
1356
|
default:
|
|
1351
1357
|
reader.skipField();
|
|
1352
1358
|
break;
|
|
@@ -1369,6 +1375,14 @@ var require_avs_pb = __commonJS({
|
|
|
1369
1375
|
proto.aggregator.FixedTimeTrigger.Config.serializeBinaryToWriter
|
|
1370
1376
|
);
|
|
1371
1377
|
}
|
|
1378
|
+
f = message.getInput();
|
|
1379
|
+
if (f != null) {
|
|
1380
|
+
writer.writeMessage(
|
|
1381
|
+
2,
|
|
1382
|
+
f,
|
|
1383
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1372
1386
|
};
|
|
1373
1387
|
proto.aggregator.FixedTimeTrigger.Config.repeatedFields_ = [1];
|
|
1374
1388
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1546,13 +1560,29 @@ var require_avs_pb = __commonJS({
|
|
|
1546
1560
|
proto.aggregator.FixedTimeTrigger.prototype.hasConfig = function() {
|
|
1547
1561
|
return jspb.Message.getField(this, 1) != null;
|
|
1548
1562
|
};
|
|
1563
|
+
proto.aggregator.FixedTimeTrigger.prototype.getInput = function() {
|
|
1564
|
+
return (
|
|
1565
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1566
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1567
|
+
);
|
|
1568
|
+
};
|
|
1569
|
+
proto.aggregator.FixedTimeTrigger.prototype.setInput = function(value) {
|
|
1570
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1571
|
+
};
|
|
1572
|
+
proto.aggregator.FixedTimeTrigger.prototype.clearInput = function() {
|
|
1573
|
+
return this.setInput(void 0);
|
|
1574
|
+
};
|
|
1575
|
+
proto.aggregator.FixedTimeTrigger.prototype.hasInput = function() {
|
|
1576
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1577
|
+
};
|
|
1549
1578
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1550
1579
|
proto.aggregator.CronTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1551
1580
|
return proto.aggregator.CronTrigger.toObject(opt_includeInstance, this);
|
|
1552
1581
|
};
|
|
1553
1582
|
proto.aggregator.CronTrigger.toObject = function(includeInstance, msg) {
|
|
1554
1583
|
var f, obj = {
|
|
1555
|
-
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
|
|
1584
|
+
config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f),
|
|
1585
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1556
1586
|
};
|
|
1557
1587
|
if (includeInstance) {
|
|
1558
1588
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1577,6 +1607,11 @@ var require_avs_pb = __commonJS({
|
|
|
1577
1607
|
reader.readMessage(value, proto.aggregator.CronTrigger.Config.deserializeBinaryFromReader);
|
|
1578
1608
|
msg.setConfig(value);
|
|
1579
1609
|
break;
|
|
1610
|
+
case 2:
|
|
1611
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1612
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1613
|
+
msg.setInput(value);
|
|
1614
|
+
break;
|
|
1580
1615
|
default:
|
|
1581
1616
|
reader.skipField();
|
|
1582
1617
|
break;
|
|
@@ -1599,6 +1634,14 @@ var require_avs_pb = __commonJS({
|
|
|
1599
1634
|
proto.aggregator.CronTrigger.Config.serializeBinaryToWriter
|
|
1600
1635
|
);
|
|
1601
1636
|
}
|
|
1637
|
+
f = message.getInput();
|
|
1638
|
+
if (f != null) {
|
|
1639
|
+
writer.writeMessage(
|
|
1640
|
+
2,
|
|
1641
|
+
f,
|
|
1642
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1643
|
+
);
|
|
1644
|
+
}
|
|
1602
1645
|
};
|
|
1603
1646
|
proto.aggregator.CronTrigger.Config.repeatedFields_ = [1];
|
|
1604
1647
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1774,13 +1817,29 @@ var require_avs_pb = __commonJS({
|
|
|
1774
1817
|
proto.aggregator.CronTrigger.prototype.hasConfig = function() {
|
|
1775
1818
|
return jspb.Message.getField(this, 1) != null;
|
|
1776
1819
|
};
|
|
1820
|
+
proto.aggregator.CronTrigger.prototype.getInput = function() {
|
|
1821
|
+
return (
|
|
1822
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
1823
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
1824
|
+
);
|
|
1825
|
+
};
|
|
1826
|
+
proto.aggregator.CronTrigger.prototype.setInput = function(value) {
|
|
1827
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1828
|
+
};
|
|
1829
|
+
proto.aggregator.CronTrigger.prototype.clearInput = function() {
|
|
1830
|
+
return this.setInput(void 0);
|
|
1831
|
+
};
|
|
1832
|
+
proto.aggregator.CronTrigger.prototype.hasInput = function() {
|
|
1833
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1834
|
+
};
|
|
1777
1835
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1778
1836
|
proto.aggregator.BlockTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
1779
1837
|
return proto.aggregator.BlockTrigger.toObject(opt_includeInstance, this);
|
|
1780
1838
|
};
|
|
1781
1839
|
proto.aggregator.BlockTrigger.toObject = function(includeInstance, msg) {
|
|
1782
1840
|
var f, obj = {
|
|
1783
|
-
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
|
|
1841
|
+
config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f),
|
|
1842
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
1784
1843
|
};
|
|
1785
1844
|
if (includeInstance) {
|
|
1786
1845
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1805,6 +1864,11 @@ var require_avs_pb = __commonJS({
|
|
|
1805
1864
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Config.deserializeBinaryFromReader);
|
|
1806
1865
|
msg.setConfig(value);
|
|
1807
1866
|
break;
|
|
1867
|
+
case 2:
|
|
1868
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
1869
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
1870
|
+
msg.setInput(value);
|
|
1871
|
+
break;
|
|
1808
1872
|
default:
|
|
1809
1873
|
reader.skipField();
|
|
1810
1874
|
break;
|
|
@@ -1827,6 +1891,14 @@ var require_avs_pb = __commonJS({
|
|
|
1827
1891
|
proto.aggregator.BlockTrigger.Config.serializeBinaryToWriter
|
|
1828
1892
|
);
|
|
1829
1893
|
}
|
|
1894
|
+
f = message.getInput();
|
|
1895
|
+
if (f != null) {
|
|
1896
|
+
writer.writeMessage(
|
|
1897
|
+
2,
|
|
1898
|
+
f,
|
|
1899
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
1900
|
+
);
|
|
1901
|
+
}
|
|
1830
1902
|
};
|
|
1831
1903
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1832
1904
|
proto.aggregator.BlockTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -2115,13 +2187,29 @@ var require_avs_pb = __commonJS({
|
|
|
2115
2187
|
proto.aggregator.BlockTrigger.prototype.hasConfig = function() {
|
|
2116
2188
|
return jspb.Message.getField(this, 1) != null;
|
|
2117
2189
|
};
|
|
2190
|
+
proto.aggregator.BlockTrigger.prototype.getInput = function() {
|
|
2191
|
+
return (
|
|
2192
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
2193
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
2194
|
+
);
|
|
2195
|
+
};
|
|
2196
|
+
proto.aggregator.BlockTrigger.prototype.setInput = function(value) {
|
|
2197
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2198
|
+
};
|
|
2199
|
+
proto.aggregator.BlockTrigger.prototype.clearInput = function() {
|
|
2200
|
+
return this.setInput(void 0);
|
|
2201
|
+
};
|
|
2202
|
+
proto.aggregator.BlockTrigger.prototype.hasInput = function() {
|
|
2203
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2204
|
+
};
|
|
2118
2205
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2119
2206
|
proto.aggregator.EventTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2120
2207
|
return proto.aggregator.EventTrigger.toObject(opt_includeInstance, this);
|
|
2121
2208
|
};
|
|
2122
2209
|
proto.aggregator.EventTrigger.toObject = function(includeInstance, msg) {
|
|
2123
2210
|
var f, obj = {
|
|
2124
|
-
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
|
|
2211
|
+
config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f),
|
|
2212
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2125
2213
|
};
|
|
2126
2214
|
if (includeInstance) {
|
|
2127
2215
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2146,6 +2234,11 @@ var require_avs_pb = __commonJS({
|
|
|
2146
2234
|
reader.readMessage(value, proto.aggregator.EventTrigger.Config.deserializeBinaryFromReader);
|
|
2147
2235
|
msg.setConfig(value);
|
|
2148
2236
|
break;
|
|
2237
|
+
case 2:
|
|
2238
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
2239
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
2240
|
+
msg.setInput(value);
|
|
2241
|
+
break;
|
|
2149
2242
|
default:
|
|
2150
2243
|
reader.skipField();
|
|
2151
2244
|
break;
|
|
@@ -2168,6 +2261,14 @@ var require_avs_pb = __commonJS({
|
|
|
2168
2261
|
proto.aggregator.EventTrigger.Config.serializeBinaryToWriter
|
|
2169
2262
|
);
|
|
2170
2263
|
}
|
|
2264
|
+
f = message.getInput();
|
|
2265
|
+
if (f != null) {
|
|
2266
|
+
writer.writeMessage(
|
|
2267
|
+
2,
|
|
2268
|
+
f,
|
|
2269
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
2270
|
+
);
|
|
2271
|
+
}
|
|
2171
2272
|
};
|
|
2172
2273
|
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2];
|
|
2173
2274
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2926,13 +3027,29 @@ var require_avs_pb = __commonJS({
|
|
|
2926
3027
|
proto.aggregator.EventTrigger.prototype.hasConfig = function() {
|
|
2927
3028
|
return jspb.Message.getField(this, 1) != null;
|
|
2928
3029
|
};
|
|
3030
|
+
proto.aggregator.EventTrigger.prototype.getInput = function() {
|
|
3031
|
+
return (
|
|
3032
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3033
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3034
|
+
);
|
|
3035
|
+
};
|
|
3036
|
+
proto.aggregator.EventTrigger.prototype.setInput = function(value) {
|
|
3037
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3038
|
+
};
|
|
3039
|
+
proto.aggregator.EventTrigger.prototype.clearInput = function() {
|
|
3040
|
+
return this.setInput(void 0);
|
|
3041
|
+
};
|
|
3042
|
+
proto.aggregator.EventTrigger.prototype.hasInput = function() {
|
|
3043
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3044
|
+
};
|
|
2929
3045
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2930
3046
|
proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2931
3047
|
return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
|
|
2932
3048
|
};
|
|
2933
3049
|
proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
|
|
2934
3050
|
var f, obj = {
|
|
2935
|
-
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
3051
|
+
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f),
|
|
3052
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
2936
3053
|
};
|
|
2937
3054
|
if (includeInstance) {
|
|
2938
3055
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2957,6 +3074,11 @@ var require_avs_pb = __commonJS({
|
|
|
2957
3074
|
reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
|
|
2958
3075
|
msg.setConfig(value);
|
|
2959
3076
|
break;
|
|
3077
|
+
case 2:
|
|
3078
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3079
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3080
|
+
msg.setInput(value);
|
|
3081
|
+
break;
|
|
2960
3082
|
default:
|
|
2961
3083
|
reader.skipField();
|
|
2962
3084
|
break;
|
|
@@ -2979,6 +3101,14 @@ var require_avs_pb = __commonJS({
|
|
|
2979
3101
|
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
|
|
2980
3102
|
);
|
|
2981
3103
|
}
|
|
3104
|
+
f = message.getInput();
|
|
3105
|
+
if (f != null) {
|
|
3106
|
+
writer.writeMessage(
|
|
3107
|
+
2,
|
|
3108
|
+
f,
|
|
3109
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
2982
3112
|
};
|
|
2983
3113
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2984
3114
|
proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3098,6 +3228,21 @@ var require_avs_pb = __commonJS({
|
|
|
3098
3228
|
proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
|
|
3099
3229
|
return jspb.Message.getField(this, 1) != null;
|
|
3100
3230
|
};
|
|
3231
|
+
proto.aggregator.ManualTrigger.prototype.getInput = function() {
|
|
3232
|
+
return (
|
|
3233
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3234
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3235
|
+
);
|
|
3236
|
+
};
|
|
3237
|
+
proto.aggregator.ManualTrigger.prototype.setInput = function(value) {
|
|
3238
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3239
|
+
};
|
|
3240
|
+
proto.aggregator.ManualTrigger.prototype.clearInput = function() {
|
|
3241
|
+
return this.setInput(void 0);
|
|
3242
|
+
};
|
|
3243
|
+
proto.aggregator.ManualTrigger.prototype.hasInput = function() {
|
|
3244
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3245
|
+
};
|
|
3101
3246
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
3102
3247
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
3103
3248
|
TRIGGER_TYPE_NOT_SET: 0,
|
|
@@ -3126,7 +3271,8 @@ var require_avs_pb = __commonJS({
|
|
|
3126
3271
|
cron: (f = msg.getCron()) && proto.aggregator.CronTrigger.toObject(includeInstance, f),
|
|
3127
3272
|
block: (f = msg.getBlock()) && proto.aggregator.BlockTrigger.toObject(includeInstance, f),
|
|
3128
3273
|
event: (f = msg.getEvent()) && proto.aggregator.EventTrigger.toObject(includeInstance, f),
|
|
3129
|
-
id: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3274
|
+
id: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3275
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3130
3276
|
};
|
|
3131
3277
|
if (includeInstance) {
|
|
3132
3278
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3194,6 +3340,11 @@ var require_avs_pb = __commonJS({
|
|
|
3194
3340
|
);
|
|
3195
3341
|
msg.setId(value);
|
|
3196
3342
|
break;
|
|
3343
|
+
case 9:
|
|
3344
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3345
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3346
|
+
msg.setInput(value);
|
|
3347
|
+
break;
|
|
3197
3348
|
default:
|
|
3198
3349
|
reader.skipField();
|
|
3199
3350
|
break;
|
|
@@ -3269,6 +3420,14 @@ var require_avs_pb = __commonJS({
|
|
|
3269
3420
|
f
|
|
3270
3421
|
);
|
|
3271
3422
|
}
|
|
3423
|
+
f = message.getInput();
|
|
3424
|
+
if (f != null) {
|
|
3425
|
+
writer.writeMessage(
|
|
3426
|
+
9,
|
|
3427
|
+
f,
|
|
3428
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3429
|
+
);
|
|
3430
|
+
}
|
|
3272
3431
|
};
|
|
3273
3432
|
proto.aggregator.TaskTrigger.prototype.getName = function() {
|
|
3274
3433
|
return (
|
|
@@ -3372,13 +3531,29 @@ var require_avs_pb = __commonJS({
|
|
|
3372
3531
|
proto.aggregator.TaskTrigger.prototype.setId = function(value) {
|
|
3373
3532
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3374
3533
|
};
|
|
3534
|
+
proto.aggregator.TaskTrigger.prototype.getInput = function() {
|
|
3535
|
+
return (
|
|
3536
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3537
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 9)
|
|
3538
|
+
);
|
|
3539
|
+
};
|
|
3540
|
+
proto.aggregator.TaskTrigger.prototype.setInput = function(value) {
|
|
3541
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
3542
|
+
};
|
|
3543
|
+
proto.aggregator.TaskTrigger.prototype.clearInput = function() {
|
|
3544
|
+
return this.setInput(void 0);
|
|
3545
|
+
};
|
|
3546
|
+
proto.aggregator.TaskTrigger.prototype.hasInput = function() {
|
|
3547
|
+
return jspb.Message.getField(this, 9) != null;
|
|
3548
|
+
};
|
|
3375
3549
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3376
3550
|
proto.aggregator.ETHTransferNode.prototype.toObject = function(opt_includeInstance) {
|
|
3377
3551
|
return proto.aggregator.ETHTransferNode.toObject(opt_includeInstance, this);
|
|
3378
3552
|
};
|
|
3379
3553
|
proto.aggregator.ETHTransferNode.toObject = function(includeInstance, msg) {
|
|
3380
3554
|
var f, obj = {
|
|
3381
|
-
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
|
|
3555
|
+
config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f),
|
|
3556
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3382
3557
|
};
|
|
3383
3558
|
if (includeInstance) {
|
|
3384
3559
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3403,6 +3578,11 @@ var require_avs_pb = __commonJS({
|
|
|
3403
3578
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Config.deserializeBinaryFromReader);
|
|
3404
3579
|
msg.setConfig(value);
|
|
3405
3580
|
break;
|
|
3581
|
+
case 2:
|
|
3582
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3583
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3584
|
+
msg.setInput(value);
|
|
3585
|
+
break;
|
|
3406
3586
|
default:
|
|
3407
3587
|
reader.skipField();
|
|
3408
3588
|
break;
|
|
@@ -3425,6 +3605,14 @@ var require_avs_pb = __commonJS({
|
|
|
3425
3605
|
proto.aggregator.ETHTransferNode.Config.serializeBinaryToWriter
|
|
3426
3606
|
);
|
|
3427
3607
|
}
|
|
3608
|
+
f = message.getInput();
|
|
3609
|
+
if (f != null) {
|
|
3610
|
+
writer.writeMessage(
|
|
3611
|
+
2,
|
|
3612
|
+
f,
|
|
3613
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3614
|
+
);
|
|
3615
|
+
}
|
|
3428
3616
|
};
|
|
3429
3617
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3430
3618
|
proto.aggregator.ETHTransferNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -3593,13 +3781,29 @@ var require_avs_pb = __commonJS({
|
|
|
3593
3781
|
proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
|
|
3594
3782
|
return jspb.Message.getField(this, 1) != null;
|
|
3595
3783
|
};
|
|
3784
|
+
proto.aggregator.ETHTransferNode.prototype.getInput = function() {
|
|
3785
|
+
return (
|
|
3786
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3787
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
3788
|
+
);
|
|
3789
|
+
};
|
|
3790
|
+
proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
|
|
3791
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3792
|
+
};
|
|
3793
|
+
proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
|
|
3794
|
+
return this.setInput(void 0);
|
|
3795
|
+
};
|
|
3796
|
+
proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
|
|
3797
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3798
|
+
};
|
|
3596
3799
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3597
3800
|
proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
|
|
3598
3801
|
return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
|
|
3599
3802
|
};
|
|
3600
3803
|
proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
|
|
3601
3804
|
var f, obj = {
|
|
3602
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3805
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f),
|
|
3806
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
3603
3807
|
};
|
|
3604
3808
|
if (includeInstance) {
|
|
3605
3809
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3624,6 +3828,11 @@ var require_avs_pb = __commonJS({
|
|
|
3624
3828
|
reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
|
|
3625
3829
|
msg.setConfig(value);
|
|
3626
3830
|
break;
|
|
3831
|
+
case 2:
|
|
3832
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
3833
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
3834
|
+
msg.setInput(value);
|
|
3835
|
+
break;
|
|
3627
3836
|
default:
|
|
3628
3837
|
reader.skipField();
|
|
3629
3838
|
break;
|
|
@@ -3646,6 +3855,14 @@ var require_avs_pb = __commonJS({
|
|
|
3646
3855
|
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
|
|
3647
3856
|
);
|
|
3648
3857
|
}
|
|
3858
|
+
f = message.getInput();
|
|
3859
|
+
if (f != null) {
|
|
3860
|
+
writer.writeMessage(
|
|
3861
|
+
2,
|
|
3862
|
+
f,
|
|
3863
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
3864
|
+
);
|
|
3865
|
+
}
|
|
3649
3866
|
};
|
|
3650
3867
|
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3651
3868
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -4996,13 +5213,29 @@ var require_avs_pb = __commonJS({
|
|
|
4996
5213
|
proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
|
|
4997
5214
|
return jspb.Message.getField(this, 1) != null;
|
|
4998
5215
|
};
|
|
5216
|
+
proto.aggregator.ContractWriteNode.prototype.getInput = function() {
|
|
5217
|
+
return (
|
|
5218
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5219
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5220
|
+
);
|
|
5221
|
+
};
|
|
5222
|
+
proto.aggregator.ContractWriteNode.prototype.setInput = function(value) {
|
|
5223
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5224
|
+
};
|
|
5225
|
+
proto.aggregator.ContractWriteNode.prototype.clearInput = function() {
|
|
5226
|
+
return this.setInput(void 0);
|
|
5227
|
+
};
|
|
5228
|
+
proto.aggregator.ContractWriteNode.prototype.hasInput = function() {
|
|
5229
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5230
|
+
};
|
|
4999
5231
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5000
5232
|
proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
|
|
5001
5233
|
return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
|
|
5002
5234
|
};
|
|
5003
5235
|
proto.aggregator.ContractReadNode.toObject = function(includeInstance, msg) {
|
|
5004
5236
|
var f, obj = {
|
|
5005
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
|
|
5237
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f),
|
|
5238
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5006
5239
|
};
|
|
5007
5240
|
if (includeInstance) {
|
|
5008
5241
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5027,6 +5260,11 @@ var require_avs_pb = __commonJS({
|
|
|
5027
5260
|
reader.readMessage(value, proto.aggregator.ContractReadNode.Config.deserializeBinaryFromReader);
|
|
5028
5261
|
msg.setConfig(value);
|
|
5029
5262
|
break;
|
|
5263
|
+
case 2:
|
|
5264
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
5265
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5266
|
+
msg.setInput(value);
|
|
5267
|
+
break;
|
|
5030
5268
|
default:
|
|
5031
5269
|
reader.skipField();
|
|
5032
5270
|
break;
|
|
@@ -5049,6 +5287,14 @@ var require_avs_pb = __commonJS({
|
|
|
5049
5287
|
proto.aggregator.ContractReadNode.Config.serializeBinaryToWriter
|
|
5050
5288
|
);
|
|
5051
5289
|
}
|
|
5290
|
+
f = message.getInput();
|
|
5291
|
+
if (f != null) {
|
|
5292
|
+
writer.writeMessage(
|
|
5293
|
+
2,
|
|
5294
|
+
f,
|
|
5295
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5296
|
+
);
|
|
5297
|
+
}
|
|
5052
5298
|
};
|
|
5053
5299
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5054
5300
|
proto.aggregator.ContractReadNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5607,13 +5853,29 @@ var require_avs_pb = __commonJS({
|
|
|
5607
5853
|
proto.aggregator.ContractReadNode.prototype.hasConfig = function() {
|
|
5608
5854
|
return jspb.Message.getField(this, 1) != null;
|
|
5609
5855
|
};
|
|
5856
|
+
proto.aggregator.ContractReadNode.prototype.getInput = function() {
|
|
5857
|
+
return (
|
|
5858
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5859
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
5860
|
+
);
|
|
5861
|
+
};
|
|
5862
|
+
proto.aggregator.ContractReadNode.prototype.setInput = function(value) {
|
|
5863
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5864
|
+
};
|
|
5865
|
+
proto.aggregator.ContractReadNode.prototype.clearInput = function() {
|
|
5866
|
+
return this.setInput(void 0);
|
|
5867
|
+
};
|
|
5868
|
+
proto.aggregator.ContractReadNode.prototype.hasInput = function() {
|
|
5869
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5870
|
+
};
|
|
5610
5871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5611
5872
|
proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
|
|
5612
5873
|
return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
|
|
5613
5874
|
};
|
|
5614
5875
|
proto.aggregator.GraphQLQueryNode.toObject = function(includeInstance, msg) {
|
|
5615
5876
|
var f, obj = {
|
|
5616
|
-
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
|
|
5877
|
+
config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f),
|
|
5878
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5617
5879
|
};
|
|
5618
5880
|
if (includeInstance) {
|
|
5619
5881
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5638,6 +5900,11 @@ var require_avs_pb = __commonJS({
|
|
|
5638
5900
|
reader.readMessage(value, proto.aggregator.GraphQLQueryNode.Config.deserializeBinaryFromReader);
|
|
5639
5901
|
msg.setConfig(value);
|
|
5640
5902
|
break;
|
|
5903
|
+
case 2:
|
|
5904
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
5905
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
5906
|
+
msg.setInput(value);
|
|
5907
|
+
break;
|
|
5641
5908
|
default:
|
|
5642
5909
|
reader.skipField();
|
|
5643
5910
|
break;
|
|
@@ -5660,6 +5927,14 @@ var require_avs_pb = __commonJS({
|
|
|
5660
5927
|
proto.aggregator.GraphQLQueryNode.Config.serializeBinaryToWriter
|
|
5661
5928
|
);
|
|
5662
5929
|
}
|
|
5930
|
+
f = message.getInput();
|
|
5931
|
+
if (f != null) {
|
|
5932
|
+
writer.writeMessage(
|
|
5933
|
+
2,
|
|
5934
|
+
f,
|
|
5935
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
5936
|
+
);
|
|
5937
|
+
}
|
|
5663
5938
|
};
|
|
5664
5939
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5665
5940
|
proto.aggregator.GraphQLQueryNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5859,13 +6134,29 @@ var require_avs_pb = __commonJS({
|
|
|
5859
6134
|
proto.aggregator.GraphQLQueryNode.prototype.hasConfig = function() {
|
|
5860
6135
|
return jspb.Message.getField(this, 1) != null;
|
|
5861
6136
|
};
|
|
6137
|
+
proto.aggregator.GraphQLQueryNode.prototype.getInput = function() {
|
|
6138
|
+
return (
|
|
6139
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6140
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6141
|
+
);
|
|
6142
|
+
};
|
|
6143
|
+
proto.aggregator.GraphQLQueryNode.prototype.setInput = function(value) {
|
|
6144
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6145
|
+
};
|
|
6146
|
+
proto.aggregator.GraphQLQueryNode.prototype.clearInput = function() {
|
|
6147
|
+
return this.setInput(void 0);
|
|
6148
|
+
};
|
|
6149
|
+
proto.aggregator.GraphQLQueryNode.prototype.hasInput = function() {
|
|
6150
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6151
|
+
};
|
|
5862
6152
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5863
6153
|
proto.aggregator.RestAPINode.prototype.toObject = function(opt_includeInstance) {
|
|
5864
6154
|
return proto.aggregator.RestAPINode.toObject(opt_includeInstance, this);
|
|
5865
6155
|
};
|
|
5866
6156
|
proto.aggregator.RestAPINode.toObject = function(includeInstance, msg) {
|
|
5867
6157
|
var f, obj = {
|
|
5868
|
-
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
|
|
6158
|
+
config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f),
|
|
6159
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
5869
6160
|
};
|
|
5870
6161
|
if (includeInstance) {
|
|
5871
6162
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5890,6 +6181,11 @@ var require_avs_pb = __commonJS({
|
|
|
5890
6181
|
reader.readMessage(value, proto.aggregator.RestAPINode.Config.deserializeBinaryFromReader);
|
|
5891
6182
|
msg.setConfig(value);
|
|
5892
6183
|
break;
|
|
6184
|
+
case 2:
|
|
6185
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6186
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6187
|
+
msg.setInput(value);
|
|
6188
|
+
break;
|
|
5893
6189
|
default:
|
|
5894
6190
|
reader.skipField();
|
|
5895
6191
|
break;
|
|
@@ -5912,6 +6208,14 @@ var require_avs_pb = __commonJS({
|
|
|
5912
6208
|
proto.aggregator.RestAPINode.Config.serializeBinaryToWriter
|
|
5913
6209
|
);
|
|
5914
6210
|
}
|
|
6211
|
+
f = message.getInput();
|
|
6212
|
+
if (f != null) {
|
|
6213
|
+
writer.writeMessage(
|
|
6214
|
+
2,
|
|
6215
|
+
f,
|
|
6216
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6217
|
+
);
|
|
6218
|
+
}
|
|
5915
6219
|
};
|
|
5916
6220
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5917
6221
|
proto.aggregator.RestAPINode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6057,7 +6361,7 @@ var require_avs_pb = __commonJS({
|
|
|
6057
6361
|
};
|
|
6058
6362
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
6059
6363
|
var f, obj = {
|
|
6060
|
-
data: (f = msg.getData()) &&
|
|
6364
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6061
6365
|
};
|
|
6062
6366
|
if (includeInstance) {
|
|
6063
6367
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6078,8 +6382,8 @@ var require_avs_pb = __commonJS({
|
|
|
6078
6382
|
var field = reader.getFieldNumber();
|
|
6079
6383
|
switch (field) {
|
|
6080
6384
|
case 1:
|
|
6081
|
-
var value = new
|
|
6082
|
-
reader.readMessage(value,
|
|
6385
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6386
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6083
6387
|
msg.setData(value);
|
|
6084
6388
|
break;
|
|
6085
6389
|
default:
|
|
@@ -6101,14 +6405,14 @@ var require_avs_pb = __commonJS({
|
|
|
6101
6405
|
writer.writeMessage(
|
|
6102
6406
|
1,
|
|
6103
6407
|
f,
|
|
6104
|
-
|
|
6408
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6105
6409
|
);
|
|
6106
6410
|
}
|
|
6107
6411
|
};
|
|
6108
6412
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
6109
6413
|
return (
|
|
6110
6414
|
/** @type{?proto.google.protobuf.Value} */
|
|
6111
|
-
jspb.Message.getWrapperField(this,
|
|
6415
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
6112
6416
|
);
|
|
6113
6417
|
};
|
|
6114
6418
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -6135,13 +6439,29 @@ var require_avs_pb = __commonJS({
|
|
|
6135
6439
|
proto.aggregator.RestAPINode.prototype.hasConfig = function() {
|
|
6136
6440
|
return jspb.Message.getField(this, 1) != null;
|
|
6137
6441
|
};
|
|
6442
|
+
proto.aggregator.RestAPINode.prototype.getInput = function() {
|
|
6443
|
+
return (
|
|
6444
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6445
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6446
|
+
);
|
|
6447
|
+
};
|
|
6448
|
+
proto.aggregator.RestAPINode.prototype.setInput = function(value) {
|
|
6449
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6450
|
+
};
|
|
6451
|
+
proto.aggregator.RestAPINode.prototype.clearInput = function() {
|
|
6452
|
+
return this.setInput(void 0);
|
|
6453
|
+
};
|
|
6454
|
+
proto.aggregator.RestAPINode.prototype.hasInput = function() {
|
|
6455
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6456
|
+
};
|
|
6138
6457
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6139
6458
|
proto.aggregator.CustomCodeNode.prototype.toObject = function(opt_includeInstance) {
|
|
6140
6459
|
return proto.aggregator.CustomCodeNode.toObject(opt_includeInstance, this);
|
|
6141
6460
|
};
|
|
6142
6461
|
proto.aggregator.CustomCodeNode.toObject = function(includeInstance, msg) {
|
|
6143
6462
|
var f, obj = {
|
|
6144
|
-
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
|
|
6463
|
+
config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f),
|
|
6464
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6145
6465
|
};
|
|
6146
6466
|
if (includeInstance) {
|
|
6147
6467
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6166,6 +6486,11 @@ var require_avs_pb = __commonJS({
|
|
|
6166
6486
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.Config.deserializeBinaryFromReader);
|
|
6167
6487
|
msg.setConfig(value);
|
|
6168
6488
|
break;
|
|
6489
|
+
case 2:
|
|
6490
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6491
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6492
|
+
msg.setInput(value);
|
|
6493
|
+
break;
|
|
6169
6494
|
default:
|
|
6170
6495
|
reader.skipField();
|
|
6171
6496
|
break;
|
|
@@ -6188,6 +6513,14 @@ var require_avs_pb = __commonJS({
|
|
|
6188
6513
|
proto.aggregator.CustomCodeNode.Config.serializeBinaryToWriter
|
|
6189
6514
|
);
|
|
6190
6515
|
}
|
|
6516
|
+
f = message.getInput();
|
|
6517
|
+
if (f != null) {
|
|
6518
|
+
writer.writeMessage(
|
|
6519
|
+
2,
|
|
6520
|
+
f,
|
|
6521
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6522
|
+
);
|
|
6523
|
+
}
|
|
6191
6524
|
};
|
|
6192
6525
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6193
6526
|
proto.aggregator.CustomCodeNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6283,7 +6616,7 @@ var require_avs_pb = __commonJS({
|
|
|
6283
6616
|
};
|
|
6284
6617
|
proto.aggregator.CustomCodeNode.Output.toObject = function(includeInstance, msg) {
|
|
6285
6618
|
var f, obj = {
|
|
6286
|
-
data: (f = msg.getData()) &&
|
|
6619
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6287
6620
|
};
|
|
6288
6621
|
if (includeInstance) {
|
|
6289
6622
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6304,8 +6637,8 @@ var require_avs_pb = __commonJS({
|
|
|
6304
6637
|
var field = reader.getFieldNumber();
|
|
6305
6638
|
switch (field) {
|
|
6306
6639
|
case 1:
|
|
6307
|
-
var value = new
|
|
6308
|
-
reader.readMessage(value,
|
|
6640
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6641
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6309
6642
|
msg.setData(value);
|
|
6310
6643
|
break;
|
|
6311
6644
|
default:
|
|
@@ -6327,14 +6660,14 @@ var require_avs_pb = __commonJS({
|
|
|
6327
6660
|
writer.writeMessage(
|
|
6328
6661
|
1,
|
|
6329
6662
|
f,
|
|
6330
|
-
|
|
6663
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6331
6664
|
);
|
|
6332
6665
|
}
|
|
6333
6666
|
};
|
|
6334
6667
|
proto.aggregator.CustomCodeNode.Output.prototype.getData = function() {
|
|
6335
6668
|
return (
|
|
6336
6669
|
/** @type{?proto.google.protobuf.Value} */
|
|
6337
|
-
jspb.Message.getWrapperField(this,
|
|
6670
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
6338
6671
|
);
|
|
6339
6672
|
};
|
|
6340
6673
|
proto.aggregator.CustomCodeNode.Output.prototype.setData = function(value) {
|
|
@@ -6361,13 +6694,29 @@ var require_avs_pb = __commonJS({
|
|
|
6361
6694
|
proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
|
|
6362
6695
|
return jspb.Message.getField(this, 1) != null;
|
|
6363
6696
|
};
|
|
6697
|
+
proto.aggregator.CustomCodeNode.prototype.getInput = function() {
|
|
6698
|
+
return (
|
|
6699
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
6700
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
6701
|
+
);
|
|
6702
|
+
};
|
|
6703
|
+
proto.aggregator.CustomCodeNode.prototype.setInput = function(value) {
|
|
6704
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6705
|
+
};
|
|
6706
|
+
proto.aggregator.CustomCodeNode.prototype.clearInput = function() {
|
|
6707
|
+
return this.setInput(void 0);
|
|
6708
|
+
};
|
|
6709
|
+
proto.aggregator.CustomCodeNode.prototype.hasInput = function() {
|
|
6710
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6711
|
+
};
|
|
6364
6712
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6365
6713
|
proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
|
|
6366
6714
|
return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
|
|
6367
6715
|
};
|
|
6368
6716
|
proto.aggregator.BranchNode.toObject = function(includeInstance, msg) {
|
|
6369
6717
|
var f, obj = {
|
|
6370
|
-
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
|
|
6718
|
+
config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f),
|
|
6719
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6371
6720
|
};
|
|
6372
6721
|
if (includeInstance) {
|
|
6373
6722
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6392,6 +6741,11 @@ var require_avs_pb = __commonJS({
|
|
|
6392
6741
|
reader.readMessage(value, proto.aggregator.BranchNode.Config.deserializeBinaryFromReader);
|
|
6393
6742
|
msg.setConfig(value);
|
|
6394
6743
|
break;
|
|
6744
|
+
case 2:
|
|
6745
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
6746
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
6747
|
+
msg.setInput(value);
|
|
6748
|
+
break;
|
|
6395
6749
|
default:
|
|
6396
6750
|
reader.skipField();
|
|
6397
6751
|
break;
|
|
@@ -6414,6 +6768,14 @@ var require_avs_pb = __commonJS({
|
|
|
6414
6768
|
proto.aggregator.BranchNode.Config.serializeBinaryToWriter
|
|
6415
6769
|
);
|
|
6416
6770
|
}
|
|
6771
|
+
f = message.getInput();
|
|
6772
|
+
if (f != null) {
|
|
6773
|
+
writer.writeMessage(
|
|
6774
|
+
2,
|
|
6775
|
+
f,
|
|
6776
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
6777
|
+
);
|
|
6778
|
+
}
|
|
6417
6779
|
};
|
|
6418
6780
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6419
6781
|
proto.aggregator.BranchNode.Condition.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6680,13 +7042,29 @@ var require_avs_pb = __commonJS({
|
|
|
6680
7042
|
proto.aggregator.BranchNode.prototype.hasConfig = function() {
|
|
6681
7043
|
return jspb.Message.getField(this, 1) != null;
|
|
6682
7044
|
};
|
|
7045
|
+
proto.aggregator.BranchNode.prototype.getInput = function() {
|
|
7046
|
+
return (
|
|
7047
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7048
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7049
|
+
);
|
|
7050
|
+
};
|
|
7051
|
+
proto.aggregator.BranchNode.prototype.setInput = function(value) {
|
|
7052
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7053
|
+
};
|
|
7054
|
+
proto.aggregator.BranchNode.prototype.clearInput = function() {
|
|
7055
|
+
return this.setInput(void 0);
|
|
7056
|
+
};
|
|
7057
|
+
proto.aggregator.BranchNode.prototype.hasInput = function() {
|
|
7058
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7059
|
+
};
|
|
6683
7060
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6684
7061
|
proto.aggregator.FilterNode.prototype.toObject = function(opt_includeInstance) {
|
|
6685
7062
|
return proto.aggregator.FilterNode.toObject(opt_includeInstance, this);
|
|
6686
7063
|
};
|
|
6687
7064
|
proto.aggregator.FilterNode.toObject = function(includeInstance, msg) {
|
|
6688
7065
|
var f, obj = {
|
|
6689
|
-
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
|
|
7066
|
+
config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f),
|
|
7067
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6690
7068
|
};
|
|
6691
7069
|
if (includeInstance) {
|
|
6692
7070
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6711,6 +7089,11 @@ var require_avs_pb = __commonJS({
|
|
|
6711
7089
|
reader.readMessage(value, proto.aggregator.FilterNode.Config.deserializeBinaryFromReader);
|
|
6712
7090
|
msg.setConfig(value);
|
|
6713
7091
|
break;
|
|
7092
|
+
case 2:
|
|
7093
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
7094
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7095
|
+
msg.setInput(value);
|
|
7096
|
+
break;
|
|
6714
7097
|
default:
|
|
6715
7098
|
reader.skipField();
|
|
6716
7099
|
break;
|
|
@@ -6733,6 +7116,14 @@ var require_avs_pb = __commonJS({
|
|
|
6733
7116
|
proto.aggregator.FilterNode.Config.serializeBinaryToWriter
|
|
6734
7117
|
);
|
|
6735
7118
|
}
|
|
7119
|
+
f = message.getInput();
|
|
7120
|
+
if (f != null) {
|
|
7121
|
+
writer.writeMessage(
|
|
7122
|
+
2,
|
|
7123
|
+
f,
|
|
7124
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7125
|
+
);
|
|
7126
|
+
}
|
|
6736
7127
|
};
|
|
6737
7128
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6738
7129
|
proto.aggregator.FilterNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6906,6 +7297,21 @@ var require_avs_pb = __commonJS({
|
|
|
6906
7297
|
proto.aggregator.FilterNode.prototype.hasConfig = function() {
|
|
6907
7298
|
return jspb.Message.getField(this, 1) != null;
|
|
6908
7299
|
};
|
|
7300
|
+
proto.aggregator.FilterNode.prototype.getInput = function() {
|
|
7301
|
+
return (
|
|
7302
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7303
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7304
|
+
);
|
|
7305
|
+
};
|
|
7306
|
+
proto.aggregator.FilterNode.prototype.setInput = function(value) {
|
|
7307
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7308
|
+
};
|
|
7309
|
+
proto.aggregator.FilterNode.prototype.clearInput = function() {
|
|
7310
|
+
return this.setInput(void 0);
|
|
7311
|
+
};
|
|
7312
|
+
proto.aggregator.FilterNode.prototype.hasInput = function() {
|
|
7313
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7314
|
+
};
|
|
6909
7315
|
proto.aggregator.LoopNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15]];
|
|
6910
7316
|
proto.aggregator.LoopNode.RunnerCase = {
|
|
6911
7317
|
RUNNER_NOT_SET: 0,
|
|
@@ -6934,7 +7340,8 @@ var require_avs_pb = __commonJS({
|
|
|
6934
7340
|
graphqlDataQuery: (f = msg.getGraphqlDataQuery()) && proto.aggregator.GraphQLQueryNode.toObject(includeInstance, f),
|
|
6935
7341
|
restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.toObject(includeInstance, f),
|
|
6936
7342
|
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
6937
|
-
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
|
|
7343
|
+
config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f),
|
|
7344
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
6938
7345
|
};
|
|
6939
7346
|
if (includeInstance) {
|
|
6940
7347
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6989,6 +7396,11 @@ var require_avs_pb = __commonJS({
|
|
|
6989
7396
|
reader.readMessage(value, proto.aggregator.LoopNode.Config.deserializeBinaryFromReader);
|
|
6990
7397
|
msg.setConfig(value);
|
|
6991
7398
|
break;
|
|
7399
|
+
case 2:
|
|
7400
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
7401
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
7402
|
+
msg.setInput(value);
|
|
7403
|
+
break;
|
|
6992
7404
|
default:
|
|
6993
7405
|
reader.skipField();
|
|
6994
7406
|
break;
|
|
@@ -7059,6 +7471,14 @@ var require_avs_pb = __commonJS({
|
|
|
7059
7471
|
proto.aggregator.LoopNode.Config.serializeBinaryToWriter
|
|
7060
7472
|
);
|
|
7061
7473
|
}
|
|
7474
|
+
f = message.getInput();
|
|
7475
|
+
if (f != null) {
|
|
7476
|
+
writer.writeMessage(
|
|
7477
|
+
2,
|
|
7478
|
+
f,
|
|
7479
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
7480
|
+
);
|
|
7481
|
+
}
|
|
7062
7482
|
};
|
|
7063
7483
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7064
7484
|
proto.aggregator.LoopNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7341,6 +7761,21 @@ var require_avs_pb = __commonJS({
|
|
|
7341
7761
|
proto.aggregator.LoopNode.prototype.hasConfig = function() {
|
|
7342
7762
|
return jspb.Message.getField(this, 1) != null;
|
|
7343
7763
|
};
|
|
7764
|
+
proto.aggregator.LoopNode.prototype.getInput = function() {
|
|
7765
|
+
return (
|
|
7766
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7767
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
|
|
7768
|
+
);
|
|
7769
|
+
};
|
|
7770
|
+
proto.aggregator.LoopNode.prototype.setInput = function(value) {
|
|
7771
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7772
|
+
};
|
|
7773
|
+
proto.aggregator.LoopNode.prototype.clearInput = function() {
|
|
7774
|
+
return this.setInput(void 0);
|
|
7775
|
+
};
|
|
7776
|
+
proto.aggregator.LoopNode.prototype.hasInput = function() {
|
|
7777
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7778
|
+
};
|
|
7344
7779
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7345
7780
|
proto.aggregator.TaskEdge.prototype.toObject = function(opt_includeInstance) {
|
|
7346
7781
|
return proto.aggregator.TaskEdge.toObject(opt_includeInstance, this);
|
|
@@ -7489,7 +7924,8 @@ var require_avs_pb = __commonJS({
|
|
|
7489
7924
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
|
|
7490
7925
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
|
|
7491
7926
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
|
|
7492
|
-
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
|
|
7927
|
+
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
7928
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
|
|
7493
7929
|
};
|
|
7494
7930
|
if (includeInstance) {
|
|
7495
7931
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7575,7 +8011,12 @@ var require_avs_pb = __commonJS({
|
|
|
7575
8011
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
|
|
7576
8012
|
msg.setCustomCode(value);
|
|
7577
8013
|
break;
|
|
7578
|
-
|
|
8014
|
+
case 19:
|
|
8015
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
8016
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8017
|
+
msg.setInput(value);
|
|
8018
|
+
break;
|
|
8019
|
+
default:
|
|
7579
8020
|
reader.skipField();
|
|
7580
8021
|
break;
|
|
7581
8022
|
}
|
|
@@ -7682,6 +8123,14 @@ var require_avs_pb = __commonJS({
|
|
|
7682
8123
|
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
7683
8124
|
);
|
|
7684
8125
|
}
|
|
8126
|
+
f = message.getInput();
|
|
8127
|
+
if (f != null) {
|
|
8128
|
+
writer.writeMessage(
|
|
8129
|
+
19,
|
|
8130
|
+
f,
|
|
8131
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
8132
|
+
);
|
|
8133
|
+
}
|
|
7685
8134
|
};
|
|
7686
8135
|
proto.aggregator.TaskNode.prototype.getId = function() {
|
|
7687
8136
|
return (
|
|
@@ -7845,6 +8294,21 @@ var require_avs_pb = __commonJS({
|
|
|
7845
8294
|
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
7846
8295
|
return jspb.Message.getField(this, 18) != null;
|
|
7847
8296
|
};
|
|
8297
|
+
proto.aggregator.TaskNode.prototype.getInput = function() {
|
|
8298
|
+
return (
|
|
8299
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
8300
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
8301
|
+
);
|
|
8302
|
+
};
|
|
8303
|
+
proto.aggregator.TaskNode.prototype.setInput = function(value) {
|
|
8304
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
8305
|
+
};
|
|
8306
|
+
proto.aggregator.TaskNode.prototype.clearInput = function() {
|
|
8307
|
+
return this.setInput(void 0);
|
|
8308
|
+
};
|
|
8309
|
+
proto.aggregator.TaskNode.prototype.hasInput = function() {
|
|
8310
|
+
return jspb.Message.getField(this, 19) != null;
|
|
8311
|
+
};
|
|
7848
8312
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
7849
8313
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7850
8314
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8017,6 +8481,7 @@ var require_avs_pb = __commonJS({
|
|
|
8017
8481
|
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
8018
8482
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
8019
8483
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
8484
|
+
input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
|
|
8020
8485
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
8021
8486
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
8022
8487
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -8101,6 +8566,11 @@ var require_avs_pb = __commonJS({
|
|
|
8101
8566
|
);
|
|
8102
8567
|
msg.addInputs(value);
|
|
8103
8568
|
break;
|
|
8569
|
+
case 19:
|
|
8570
|
+
var value = new google_protobuf_struct_pb2.Value();
|
|
8571
|
+
reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
|
|
8572
|
+
msg.setInput(value);
|
|
8573
|
+
break;
|
|
8104
8574
|
case 20:
|
|
8105
8575
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
8106
8576
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -8248,6 +8718,14 @@ var require_avs_pb = __commonJS({
|
|
|
8248
8718
|
f
|
|
8249
8719
|
);
|
|
8250
8720
|
}
|
|
8721
|
+
f = message.getInput();
|
|
8722
|
+
if (f != null) {
|
|
8723
|
+
writer.writeMessage(
|
|
8724
|
+
19,
|
|
8725
|
+
f,
|
|
8726
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
8727
|
+
);
|
|
8728
|
+
}
|
|
8251
8729
|
f = message.getBlockTrigger();
|
|
8252
8730
|
if (f != null) {
|
|
8253
8731
|
writer.writeMessage(
|
|
@@ -8444,6 +8922,21 @@ var require_avs_pb = __commonJS({
|
|
|
8444
8922
|
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
8445
8923
|
return this.setInputsList([]);
|
|
8446
8924
|
};
|
|
8925
|
+
proto.aggregator.Execution.Step.prototype.getInput = function() {
|
|
8926
|
+
return (
|
|
8927
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
8928
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
|
|
8929
|
+
);
|
|
8930
|
+
};
|
|
8931
|
+
proto.aggregator.Execution.Step.prototype.setInput = function(value) {
|
|
8932
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
8933
|
+
};
|
|
8934
|
+
proto.aggregator.Execution.Step.prototype.clearInput = function() {
|
|
8935
|
+
return this.setInput(void 0);
|
|
8936
|
+
};
|
|
8937
|
+
proto.aggregator.Execution.Step.prototype.hasInput = function() {
|
|
8938
|
+
return jspb.Message.getField(this, 19) != null;
|
|
8939
|
+
};
|
|
8447
8940
|
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
8448
8941
|
return (
|
|
8449
8942
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -13681,7 +14174,8 @@ var require_avs_pb = __commonJS({
|
|
|
13681
14174
|
proto.aggregator.RunTriggerReq.toObject = function(includeInstance, msg) {
|
|
13682
14175
|
var f, obj = {
|
|
13683
14176
|
triggerType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13684
|
-
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
14177
|
+
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
14178
|
+
triggerInputMap: (f = msg.getTriggerInputMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13685
14179
|
};
|
|
13686
14180
|
if (includeInstance) {
|
|
13687
14181
|
obj.$jspbMessageInstance = msg;
|
|
@@ -13714,6 +14208,12 @@ var require_avs_pb = __commonJS({
|
|
|
13714
14208
|
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13715
14209
|
});
|
|
13716
14210
|
break;
|
|
14211
|
+
case 3:
|
|
14212
|
+
var value = msg.getTriggerInputMap();
|
|
14213
|
+
reader.readMessage(value, function(message, reader2) {
|
|
14214
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
14215
|
+
});
|
|
14216
|
+
break;
|
|
13717
14217
|
default:
|
|
13718
14218
|
reader.skipField();
|
|
13719
14219
|
break;
|
|
@@ -13739,6 +14239,10 @@ var require_avs_pb = __commonJS({
|
|
|
13739
14239
|
if (f && f.getLength() > 0) {
|
|
13740
14240
|
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13741
14241
|
}
|
|
14242
|
+
f = message.getTriggerInputMap(true);
|
|
14243
|
+
if (f && f.getLength() > 0) {
|
|
14244
|
+
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
14245
|
+
}
|
|
13742
14246
|
};
|
|
13743
14247
|
proto.aggregator.RunTriggerReq.prototype.getTriggerType = function() {
|
|
13744
14248
|
return (
|
|
@@ -13764,6 +14268,21 @@ var require_avs_pb = __commonJS({
|
|
|
13764
14268
|
this.getTriggerConfigMap().clear();
|
|
13765
14269
|
return this;
|
|
13766
14270
|
};
|
|
14271
|
+
proto.aggregator.RunTriggerReq.prototype.getTriggerInputMap = function(opt_noLazyCreate) {
|
|
14272
|
+
return (
|
|
14273
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
14274
|
+
jspb.Message.getMapField(
|
|
14275
|
+
this,
|
|
14276
|
+
3,
|
|
14277
|
+
opt_noLazyCreate,
|
|
14278
|
+
proto.google.protobuf.Value
|
|
14279
|
+
)
|
|
14280
|
+
);
|
|
14281
|
+
};
|
|
14282
|
+
proto.aggregator.RunTriggerReq.prototype.clearTriggerInputMap = function() {
|
|
14283
|
+
this.getTriggerInputMap().clear();
|
|
14284
|
+
return this;
|
|
14285
|
+
};
|
|
13767
14286
|
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
13768
14287
|
proto.aggregator.RunTriggerResp.OutputDataCase = {
|
|
13769
14288
|
OUTPUT_DATA_NOT_SET: 0,
|
|
@@ -15342,7 +15861,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15342
15861
|
var avs_pb23 = require_avs_pb();
|
|
15343
15862
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
15344
15863
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
15345
|
-
var
|
|
15864
|
+
var google_protobuf_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
15346
15865
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
15347
15866
|
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
15348
15867
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
@@ -16000,7 +16519,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
16000
16519
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
16001
16520
|
responseDeserialize: deserialize_aggregator_RunNodeWithInputsResp
|
|
16002
16521
|
},
|
|
16003
|
-
// RunTrigger allows executing a single trigger for testing purposes
|
|
16522
|
+
// RunTrigger allows executing a single trigger for testing purposes
|
|
16004
16523
|
runTrigger: {
|
|
16005
16524
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
16006
16525
|
requestStream: false,
|
|
@@ -16060,13 +16579,13 @@ __export(index_exports, {
|
|
|
16060
16579
|
GraphQLQueryNode: () => graphqlQuery_default,
|
|
16061
16580
|
LoopNode: () => loop_default,
|
|
16062
16581
|
ManualTrigger: () => manual_default,
|
|
16063
|
-
Node: () =>
|
|
16582
|
+
Node: () => Node,
|
|
16064
16583
|
NodeFactory: () => factory_default2,
|
|
16065
16584
|
RestAPINode: () => restApi_default,
|
|
16066
16585
|
Secret: () => secret_default,
|
|
16067
16586
|
Step: () => step_default,
|
|
16068
16587
|
TimeoutPresets: () => import_types21.TimeoutPresets,
|
|
16069
|
-
Trigger: () =>
|
|
16588
|
+
Trigger: () => Trigger,
|
|
16070
16589
|
TriggerFactory: () => factory_default,
|
|
16071
16590
|
Workflow: () => workflow_default
|
|
16072
16591
|
});
|
|
@@ -16106,6 +16625,171 @@ var avs_pb7 = __toESM(require_avs_pb());
|
|
|
16106
16625
|
// src/models/trigger/block.ts
|
|
16107
16626
|
var avs_pb2 = __toESM(require_avs_pb());
|
|
16108
16627
|
|
|
16628
|
+
// src/utils.ts
|
|
16629
|
+
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16630
|
+
var import_types = require("@avaprotocol/types");
|
|
16631
|
+
function convertProtobufValueToJs(value) {
|
|
16632
|
+
if (!value) {
|
|
16633
|
+
return void 0;
|
|
16634
|
+
}
|
|
16635
|
+
switch (value.getKindCase()) {
|
|
16636
|
+
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
16637
|
+
return null;
|
|
16638
|
+
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
16639
|
+
return value.getNumberValue();
|
|
16640
|
+
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
16641
|
+
return value.getStringValue();
|
|
16642
|
+
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
16643
|
+
return value.getBoolValue();
|
|
16644
|
+
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
16645
|
+
const struct = value.getStructValue();
|
|
16646
|
+
if (!struct) return {};
|
|
16647
|
+
const jsObj = {};
|
|
16648
|
+
const fields = struct.getFieldsMap();
|
|
16649
|
+
fields.forEach((val, key) => {
|
|
16650
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
16651
|
+
});
|
|
16652
|
+
return jsObj;
|
|
16653
|
+
}
|
|
16654
|
+
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
16655
|
+
const list = value.getListValue();
|
|
16656
|
+
if (!list) return [];
|
|
16657
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16658
|
+
}
|
|
16659
|
+
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
16660
|
+
default:
|
|
16661
|
+
return void 0;
|
|
16662
|
+
}
|
|
16663
|
+
}
|
|
16664
|
+
function convertJSValueToProtobuf(value) {
|
|
16665
|
+
const protobufValue = new import_struct_pb.Value();
|
|
16666
|
+
if (value === null || value === void 0) {
|
|
16667
|
+
protobufValue.setNullValue(0);
|
|
16668
|
+
} else if (typeof value === "number") {
|
|
16669
|
+
protobufValue.setNumberValue(value);
|
|
16670
|
+
} else if (typeof value === "string") {
|
|
16671
|
+
protobufValue.setStringValue(value);
|
|
16672
|
+
} else if (typeof value === "boolean") {
|
|
16673
|
+
protobufValue.setBoolValue(value);
|
|
16674
|
+
} else if (Array.isArray(value)) {
|
|
16675
|
+
const listValue = new import_struct_pb.ListValue();
|
|
16676
|
+
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16677
|
+
listValue.setValuesList(convertedValues);
|
|
16678
|
+
protobufValue.setListValue(listValue);
|
|
16679
|
+
} else if (typeof value === "object") {
|
|
16680
|
+
const structValue = new import_struct_pb.Struct();
|
|
16681
|
+
const fieldsMap = structValue.getFieldsMap();
|
|
16682
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
16683
|
+
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16684
|
+
});
|
|
16685
|
+
protobufValue.setStructValue(structValue);
|
|
16686
|
+
} else {
|
|
16687
|
+
protobufValue.setStringValue(String(value));
|
|
16688
|
+
}
|
|
16689
|
+
return protobufValue;
|
|
16690
|
+
}
|
|
16691
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16692
|
+
switch (protobufType) {
|
|
16693
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
16694
|
+
return import_types.TriggerType.Manual;
|
|
16695
|
+
// "manualTrigger"
|
|
16696
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16697
|
+
return import_types.TriggerType.FixedTime;
|
|
16698
|
+
// "fixedTimeTrigger"
|
|
16699
|
+
case "TRIGGER_TYPE_CRON":
|
|
16700
|
+
return import_types.TriggerType.Cron;
|
|
16701
|
+
// "cronTrigger"
|
|
16702
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
16703
|
+
return import_types.TriggerType.Block;
|
|
16704
|
+
// "blockTrigger"
|
|
16705
|
+
case "TRIGGER_TYPE_EVENT":
|
|
16706
|
+
return import_types.TriggerType.Event;
|
|
16707
|
+
// "eventTrigger"
|
|
16708
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16709
|
+
return import_types.TriggerType.Unspecified;
|
|
16710
|
+
// "unspecified"
|
|
16711
|
+
default:
|
|
16712
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16713
|
+
return protobufType;
|
|
16714
|
+
}
|
|
16715
|
+
}
|
|
16716
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16717
|
+
switch (protobufType) {
|
|
16718
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
16719
|
+
return import_types.NodeType.ETHTransfer;
|
|
16720
|
+
// "ethTransfer"
|
|
16721
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16722
|
+
return import_types.NodeType.ContractWrite;
|
|
16723
|
+
// "contractWrite"
|
|
16724
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
16725
|
+
return import_types.NodeType.ContractRead;
|
|
16726
|
+
// "contractRead"
|
|
16727
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16728
|
+
return import_types.NodeType.GraphQLQuery;
|
|
16729
|
+
// "graphql"
|
|
16730
|
+
case "NODE_TYPE_REST_API":
|
|
16731
|
+
return import_types.NodeType.RestAPI;
|
|
16732
|
+
// "restApi"
|
|
16733
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
16734
|
+
return import_types.NodeType.CustomCode;
|
|
16735
|
+
// "customCode"
|
|
16736
|
+
case "NODE_TYPE_BRANCH":
|
|
16737
|
+
return import_types.NodeType.Branch;
|
|
16738
|
+
// "branch"
|
|
16739
|
+
case "NODE_TYPE_FILTER":
|
|
16740
|
+
return import_types.NodeType.Filter;
|
|
16741
|
+
// "filter"
|
|
16742
|
+
case "NODE_TYPE_LOOP":
|
|
16743
|
+
return import_types.NodeType.Loop;
|
|
16744
|
+
// "loop"
|
|
16745
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
16746
|
+
return import_types.NodeType.Unspecified;
|
|
16747
|
+
// "unspecified"
|
|
16748
|
+
default:
|
|
16749
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16750
|
+
return protobufType;
|
|
16751
|
+
}
|
|
16752
|
+
}
|
|
16753
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16754
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16755
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16756
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16757
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16758
|
+
} else {
|
|
16759
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16760
|
+
return protobufType;
|
|
16761
|
+
}
|
|
16762
|
+
}
|
|
16763
|
+
function convertInputToProtobuf(input) {
|
|
16764
|
+
if (!input) {
|
|
16765
|
+
return void 0;
|
|
16766
|
+
}
|
|
16767
|
+
return import_struct_pb.Value.fromJavaScript(input);
|
|
16768
|
+
}
|
|
16769
|
+
function extractInputFromProtobuf(inputValue) {
|
|
16770
|
+
if (!inputValue) {
|
|
16771
|
+
return void 0;
|
|
16772
|
+
}
|
|
16773
|
+
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16774
|
+
if (!Array.isArray(inputValue)) {
|
|
16775
|
+
return inputValue;
|
|
16776
|
+
}
|
|
16777
|
+
return void 0;
|
|
16778
|
+
}
|
|
16779
|
+
try {
|
|
16780
|
+
const protobufValue = inputValue;
|
|
16781
|
+
const inputJavaScript = protobufValue.toJavaScript();
|
|
16782
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
16783
|
+
return inputJavaScript;
|
|
16784
|
+
}
|
|
16785
|
+
} catch (error) {
|
|
16786
|
+
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
16787
|
+
return inputValue;
|
|
16788
|
+
}
|
|
16789
|
+
}
|
|
16790
|
+
return void 0;
|
|
16791
|
+
}
|
|
16792
|
+
|
|
16109
16793
|
// src/models/trigger/interface.ts
|
|
16110
16794
|
var Trigger = class {
|
|
16111
16795
|
/**
|
|
@@ -16118,6 +16802,7 @@ var Trigger = class {
|
|
|
16118
16802
|
this.type = props.type;
|
|
16119
16803
|
this.data = props.data;
|
|
16120
16804
|
this.output = props.output;
|
|
16805
|
+
this.input = props.input ? extractInputFromProtobuf(props.input) : void 0;
|
|
16121
16806
|
}
|
|
16122
16807
|
toRequest() {
|
|
16123
16808
|
throw new Error("Method not implemented.");
|
|
@@ -16131,17 +16816,17 @@ var Trigger = class {
|
|
|
16131
16816
|
name: this.name,
|
|
16132
16817
|
type: this.type,
|
|
16133
16818
|
data: this.data,
|
|
16134
|
-
output: this.output
|
|
16819
|
+
output: this.output,
|
|
16820
|
+
input: this.input
|
|
16135
16821
|
};
|
|
16136
16822
|
}
|
|
16137
16823
|
};
|
|
16138
|
-
var interface_default = Trigger;
|
|
16139
16824
|
|
|
16140
16825
|
// src/models/trigger/block.ts
|
|
16141
|
-
var
|
|
16142
|
-
var BlockTrigger2 = class _BlockTrigger extends
|
|
16826
|
+
var import_types2 = require("@avaprotocol/types");
|
|
16827
|
+
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
16143
16828
|
constructor(props) {
|
|
16144
|
-
super({ ...props, type:
|
|
16829
|
+
super({ ...props, type: import_types2.TriggerType.Block, data: props.data });
|
|
16145
16830
|
}
|
|
16146
16831
|
toRequest() {
|
|
16147
16832
|
const request = new avs_pb2.TaskTrigger();
|
|
@@ -16162,12 +16847,17 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16162
16847
|
const config = new avs_pb2.BlockTrigger.Config();
|
|
16163
16848
|
config.setInterval(blockData.interval);
|
|
16164
16849
|
trigger.setConfig(config);
|
|
16850
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
16851
|
+
if (inputValue) {
|
|
16852
|
+
trigger.setInput(inputValue);
|
|
16853
|
+
}
|
|
16165
16854
|
request.setBlock(trigger);
|
|
16166
16855
|
return request;
|
|
16167
16856
|
}
|
|
16168
16857
|
static fromResponse(raw) {
|
|
16169
16858
|
const obj = raw.toObject();
|
|
16170
16859
|
let data = { interval: 0 };
|
|
16860
|
+
let input = void 0;
|
|
16171
16861
|
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
16172
16862
|
const config = raw.getBlock().getConfig();
|
|
16173
16863
|
if (config) {
|
|
@@ -16175,11 +16865,16 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
16175
16865
|
interval: config.getInterval() || 0
|
|
16176
16866
|
};
|
|
16177
16867
|
}
|
|
16868
|
+
const blockTrigger = raw.getBlock();
|
|
16869
|
+
if (blockTrigger.hasInput()) {
|
|
16870
|
+
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
16871
|
+
}
|
|
16178
16872
|
}
|
|
16179
16873
|
return new _BlockTrigger({
|
|
16180
16874
|
...obj,
|
|
16181
|
-
type:
|
|
16182
|
-
data
|
|
16875
|
+
type: import_types2.TriggerType.Block,
|
|
16876
|
+
data,
|
|
16877
|
+
input
|
|
16183
16878
|
});
|
|
16184
16879
|
}
|
|
16185
16880
|
/**
|
|
@@ -16204,10 +16899,11 @@ var block_default = BlockTrigger2;
|
|
|
16204
16899
|
|
|
16205
16900
|
// src/models/trigger/cron.ts
|
|
16206
16901
|
var avs_pb3 = __toESM(require_avs_pb());
|
|
16207
|
-
var
|
|
16208
|
-
var
|
|
16902
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16903
|
+
var import_types3 = require("@avaprotocol/types");
|
|
16904
|
+
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
16209
16905
|
constructor(props) {
|
|
16210
|
-
super({ ...props, type:
|
|
16906
|
+
super({ ...props, type: import_types3.TriggerType.Cron, data: props.data });
|
|
16211
16907
|
}
|
|
16212
16908
|
toRequest() {
|
|
16213
16909
|
const request = new avs_pb3.TaskTrigger();
|
|
@@ -16228,6 +16924,14 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16228
16924
|
const config = new avs_pb3.CronTrigger.Config();
|
|
16229
16925
|
config.setSchedulesList(cronData.schedules);
|
|
16230
16926
|
trigger.setConfig(config);
|
|
16927
|
+
if (this.input) {
|
|
16928
|
+
try {
|
|
16929
|
+
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
16930
|
+
trigger.setInput(inputValue);
|
|
16931
|
+
} catch (error) {
|
|
16932
|
+
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
16933
|
+
}
|
|
16934
|
+
}
|
|
16231
16935
|
request.setCron(trigger);
|
|
16232
16936
|
return request;
|
|
16233
16937
|
}
|
|
@@ -16242,10 +16946,19 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
16242
16946
|
};
|
|
16243
16947
|
}
|
|
16244
16948
|
}
|
|
16949
|
+
let input;
|
|
16950
|
+
if (raw.getCron() && raw.getCron().hasInput()) {
|
|
16951
|
+
const inputValue = raw.getCron().getInput();
|
|
16952
|
+
if (inputValue) {
|
|
16953
|
+
input = inputValue.toObject();
|
|
16954
|
+
}
|
|
16955
|
+
}
|
|
16245
16956
|
return new _CronTrigger({
|
|
16246
16957
|
...obj,
|
|
16247
|
-
type:
|
|
16248
|
-
data
|
|
16958
|
+
type: import_types3.TriggerType.Cron,
|
|
16959
|
+
data,
|
|
16960
|
+
input
|
|
16961
|
+
// ✨ NEW: Include input data
|
|
16249
16962
|
});
|
|
16250
16963
|
}
|
|
16251
16964
|
/**
|
|
@@ -16276,10 +16989,10 @@ var cron_default = CronTrigger2;
|
|
|
16276
16989
|
|
|
16277
16990
|
// src/models/trigger/event.ts
|
|
16278
16991
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
16279
|
-
var
|
|
16280
|
-
var EventTrigger2 = class _EventTrigger extends
|
|
16992
|
+
var import_types4 = require("@avaprotocol/types");
|
|
16993
|
+
var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
16281
16994
|
constructor(props) {
|
|
16282
|
-
super({ ...props, type:
|
|
16995
|
+
super({ ...props, type: import_types4.TriggerType.Event, data: props.data });
|
|
16283
16996
|
}
|
|
16284
16997
|
toRequest() {
|
|
16285
16998
|
const request = new avs_pb4.TaskTrigger();
|
|
@@ -16360,7 +17073,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
16360
17073
|
}
|
|
16361
17074
|
return new _EventTrigger({
|
|
16362
17075
|
...obj,
|
|
16363
|
-
type:
|
|
17076
|
+
type: import_types4.TriggerType.Event,
|
|
16364
17077
|
data
|
|
16365
17078
|
});
|
|
16366
17079
|
}
|
|
@@ -16393,10 +17106,10 @@ var event_default = EventTrigger2;
|
|
|
16393
17106
|
|
|
16394
17107
|
// src/models/trigger/fixedTime.ts
|
|
16395
17108
|
var avs_pb5 = __toESM(require_avs_pb());
|
|
16396
|
-
var
|
|
16397
|
-
var FixedTimeTrigger2 = class _FixedTimeTrigger extends
|
|
17109
|
+
var import_types5 = require("@avaprotocol/types");
|
|
17110
|
+
var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
16398
17111
|
constructor(props) {
|
|
16399
|
-
super({ ...props, type:
|
|
17112
|
+
super({ ...props, type: import_types5.TriggerType.FixedTime, data: props.data });
|
|
16400
17113
|
}
|
|
16401
17114
|
toRequest() {
|
|
16402
17115
|
const request = new avs_pb5.TaskTrigger();
|
|
@@ -16426,7 +17139,7 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
16426
17139
|
}
|
|
16427
17140
|
return new _FixedTimeTrigger({
|
|
16428
17141
|
...obj,
|
|
16429
|
-
type:
|
|
17142
|
+
type: import_types5.TriggerType.FixedTime,
|
|
16430
17143
|
data
|
|
16431
17144
|
});
|
|
16432
17145
|
}
|
|
@@ -16458,10 +17171,10 @@ var fixedTime_default = FixedTimeTrigger2;
|
|
|
16458
17171
|
|
|
16459
17172
|
// src/models/trigger/manual.ts
|
|
16460
17173
|
var avs_pb6 = __toESM(require_avs_pb());
|
|
16461
|
-
var
|
|
16462
|
-
var ManualTrigger = class _ManualTrigger extends
|
|
17174
|
+
var import_types6 = require("@avaprotocol/types");
|
|
17175
|
+
var ManualTrigger = class _ManualTrigger extends Trigger {
|
|
16463
17176
|
constructor(props) {
|
|
16464
|
-
super({ ...props, type:
|
|
17177
|
+
super({ ...props, type: import_types6.TriggerType.Manual, data: props.data || null });
|
|
16465
17178
|
}
|
|
16466
17179
|
toRequest() {
|
|
16467
17180
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -16469,15 +17182,24 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
16469
17182
|
trigger.setName(this.name);
|
|
16470
17183
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
16471
17184
|
trigger.setManual(true);
|
|
17185
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17186
|
+
if (inputValue) {
|
|
17187
|
+
trigger.setInput(inputValue);
|
|
17188
|
+
}
|
|
16472
17189
|
return trigger;
|
|
16473
17190
|
}
|
|
16474
17191
|
static fromResponse(raw) {
|
|
16475
17192
|
const obj = raw.toObject();
|
|
17193
|
+
let input = void 0;
|
|
17194
|
+
if (raw.hasInput()) {
|
|
17195
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17196
|
+
}
|
|
16476
17197
|
return new _ManualTrigger({
|
|
16477
17198
|
...obj,
|
|
16478
|
-
type:
|
|
16479
|
-
data: null
|
|
17199
|
+
type: import_types6.TriggerType.Manual,
|
|
17200
|
+
data: null,
|
|
16480
17201
|
// Manual triggers don't have data in the protobuf response
|
|
17202
|
+
input
|
|
16481
17203
|
});
|
|
16482
17204
|
}
|
|
16483
17205
|
getInputVariables() {
|
|
@@ -16505,144 +17227,6 @@ var manual_default = ManualTrigger;
|
|
|
16505
17227
|
|
|
16506
17228
|
// src/models/trigger/factory.ts
|
|
16507
17229
|
var import_types7 = require("@avaprotocol/types");
|
|
16508
|
-
|
|
16509
|
-
// src/utils.ts
|
|
16510
|
-
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16511
|
-
var import_types6 = require("@avaprotocol/types");
|
|
16512
|
-
function convertProtobufValueToJs(value) {
|
|
16513
|
-
if (!value) {
|
|
16514
|
-
return void 0;
|
|
16515
|
-
}
|
|
16516
|
-
switch (value.getKindCase()) {
|
|
16517
|
-
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
16518
|
-
return null;
|
|
16519
|
-
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
16520
|
-
return value.getNumberValue();
|
|
16521
|
-
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
16522
|
-
return value.getStringValue();
|
|
16523
|
-
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
16524
|
-
return value.getBoolValue();
|
|
16525
|
-
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
16526
|
-
const struct = value.getStructValue();
|
|
16527
|
-
if (!struct) return {};
|
|
16528
|
-
const jsObj = {};
|
|
16529
|
-
const fields = struct.getFieldsMap();
|
|
16530
|
-
fields.forEach((val, key) => {
|
|
16531
|
-
jsObj[key] = convertProtobufValueToJs(val);
|
|
16532
|
-
});
|
|
16533
|
-
return jsObj;
|
|
16534
|
-
}
|
|
16535
|
-
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
16536
|
-
const list = value.getListValue();
|
|
16537
|
-
if (!list) return [];
|
|
16538
|
-
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
16539
|
-
}
|
|
16540
|
-
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
16541
|
-
default:
|
|
16542
|
-
return void 0;
|
|
16543
|
-
}
|
|
16544
|
-
}
|
|
16545
|
-
function convertJSValueToProtobuf(value) {
|
|
16546
|
-
const protobufValue = new import_struct_pb.Value();
|
|
16547
|
-
if (value === null || value === void 0) {
|
|
16548
|
-
protobufValue.setNullValue(0);
|
|
16549
|
-
} else if (typeof value === "number") {
|
|
16550
|
-
protobufValue.setNumberValue(value);
|
|
16551
|
-
} else if (typeof value === "string") {
|
|
16552
|
-
protobufValue.setStringValue(value);
|
|
16553
|
-
} else if (typeof value === "boolean") {
|
|
16554
|
-
protobufValue.setBoolValue(value);
|
|
16555
|
-
} else if (Array.isArray(value)) {
|
|
16556
|
-
const listValue = new import_struct_pb.ListValue();
|
|
16557
|
-
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
16558
|
-
listValue.setValuesList(convertedValues);
|
|
16559
|
-
protobufValue.setListValue(listValue);
|
|
16560
|
-
} else if (typeof value === "object") {
|
|
16561
|
-
const structValue = new import_struct_pb.Struct();
|
|
16562
|
-
const fieldsMap = structValue.getFieldsMap();
|
|
16563
|
-
Object.entries(value).forEach(([key, val]) => {
|
|
16564
|
-
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
16565
|
-
});
|
|
16566
|
-
protobufValue.setStructValue(structValue);
|
|
16567
|
-
} else {
|
|
16568
|
-
protobufValue.setStringValue(String(value));
|
|
16569
|
-
}
|
|
16570
|
-
return protobufValue;
|
|
16571
|
-
}
|
|
16572
|
-
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16573
|
-
switch (protobufType) {
|
|
16574
|
-
case "TRIGGER_TYPE_MANUAL":
|
|
16575
|
-
return import_types6.TriggerType.Manual;
|
|
16576
|
-
// "manualTrigger"
|
|
16577
|
-
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16578
|
-
return import_types6.TriggerType.FixedTime;
|
|
16579
|
-
// "fixedTimeTrigger"
|
|
16580
|
-
case "TRIGGER_TYPE_CRON":
|
|
16581
|
-
return import_types6.TriggerType.Cron;
|
|
16582
|
-
// "cronTrigger"
|
|
16583
|
-
case "TRIGGER_TYPE_BLOCK":
|
|
16584
|
-
return import_types6.TriggerType.Block;
|
|
16585
|
-
// "blockTrigger"
|
|
16586
|
-
case "TRIGGER_TYPE_EVENT":
|
|
16587
|
-
return import_types6.TriggerType.Event;
|
|
16588
|
-
// "eventTrigger"
|
|
16589
|
-
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16590
|
-
return import_types6.TriggerType.Unspecified;
|
|
16591
|
-
// "unspecified"
|
|
16592
|
-
default:
|
|
16593
|
-
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
16594
|
-
return protobufType;
|
|
16595
|
-
}
|
|
16596
|
-
}
|
|
16597
|
-
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16598
|
-
switch (protobufType) {
|
|
16599
|
-
case "NODE_TYPE_ETH_TRANSFER":
|
|
16600
|
-
return import_types6.NodeType.ETHTransfer;
|
|
16601
|
-
// "ethTransfer"
|
|
16602
|
-
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16603
|
-
return import_types6.NodeType.ContractWrite;
|
|
16604
|
-
// "contractWrite"
|
|
16605
|
-
case "NODE_TYPE_CONTRACT_READ":
|
|
16606
|
-
return import_types6.NodeType.ContractRead;
|
|
16607
|
-
// "contractRead"
|
|
16608
|
-
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16609
|
-
return import_types6.NodeType.GraphQLQuery;
|
|
16610
|
-
// "graphql"
|
|
16611
|
-
case "NODE_TYPE_REST_API":
|
|
16612
|
-
return import_types6.NodeType.RestAPI;
|
|
16613
|
-
// "restApi"
|
|
16614
|
-
case "NODE_TYPE_CUSTOM_CODE":
|
|
16615
|
-
return import_types6.NodeType.CustomCode;
|
|
16616
|
-
// "customCode"
|
|
16617
|
-
case "NODE_TYPE_BRANCH":
|
|
16618
|
-
return import_types6.NodeType.Branch;
|
|
16619
|
-
// "branch"
|
|
16620
|
-
case "NODE_TYPE_FILTER":
|
|
16621
|
-
return import_types6.NodeType.Filter;
|
|
16622
|
-
// "filter"
|
|
16623
|
-
case "NODE_TYPE_LOOP":
|
|
16624
|
-
return import_types6.NodeType.Loop;
|
|
16625
|
-
// "loop"
|
|
16626
|
-
case "NODE_TYPE_UNSPECIFIED":
|
|
16627
|
-
return import_types6.NodeType.Unspecified;
|
|
16628
|
-
// "unspecified"
|
|
16629
|
-
default:
|
|
16630
|
-
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16631
|
-
return protobufType;
|
|
16632
|
-
}
|
|
16633
|
-
}
|
|
16634
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16635
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16636
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16637
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16638
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16639
|
-
} else {
|
|
16640
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16641
|
-
return protobufType;
|
|
16642
|
-
}
|
|
16643
|
-
}
|
|
16644
|
-
|
|
16645
|
-
// src/models/trigger/factory.ts
|
|
16646
17230
|
var TriggerFactory = class {
|
|
16647
17231
|
/**
|
|
16648
17232
|
* Static factory method to create Trigger instances
|
|
@@ -16740,11 +17324,13 @@ var avs_pb8 = __toESM(require_avs_pb());
|
|
|
16740
17324
|
var import_types8 = require("@avaprotocol/types");
|
|
16741
17325
|
var import_lodash = __toESM(require("lodash"));
|
|
16742
17326
|
var Node = class {
|
|
17327
|
+
// Use JavaScript object type for internal storage
|
|
16743
17328
|
constructor(props) {
|
|
16744
17329
|
this.id = props.id;
|
|
16745
17330
|
this.name = props.name;
|
|
16746
17331
|
this.type = props.type;
|
|
16747
17332
|
this.data = props.data;
|
|
17333
|
+
this.input = props.input ? extractInputFromProtobuf(props.input) : void 0;
|
|
16748
17334
|
}
|
|
16749
17335
|
toRequest() {
|
|
16750
17336
|
const request = new avs_pb8.TaskNode();
|
|
@@ -16755,13 +17341,23 @@ var Node = class {
|
|
|
16755
17341
|
}
|
|
16756
17342
|
return request;
|
|
16757
17343
|
}
|
|
17344
|
+
static fromResponse(raw) {
|
|
17345
|
+
const obj = raw.toObject();
|
|
17346
|
+
let input = void 0;
|
|
17347
|
+
if (raw.hasInput()) {
|
|
17348
|
+
input = raw.getInput().toObject();
|
|
17349
|
+
}
|
|
17350
|
+
return new this({
|
|
17351
|
+
...obj,
|
|
17352
|
+
input
|
|
17353
|
+
});
|
|
17354
|
+
}
|
|
16758
17355
|
};
|
|
16759
|
-
var interface_default2 = Node;
|
|
16760
17356
|
|
|
16761
17357
|
// src/models/node/contractWrite.ts
|
|
16762
17358
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
16763
17359
|
var import_types9 = require("@avaprotocol/types");
|
|
16764
|
-
var ContractWriteNode2 = class _ContractWriteNode extends
|
|
17360
|
+
var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
16765
17361
|
constructor(props) {
|
|
16766
17362
|
super({ ...props, type: import_types9.NodeType.ContractWrite, data: props.data });
|
|
16767
17363
|
}
|
|
@@ -16777,17 +17373,19 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16777
17373
|
methodName: call.methodName
|
|
16778
17374
|
})) || []
|
|
16779
17375
|
};
|
|
17376
|
+
const input = extractInputFromProtobuf(raw.getContractWrite()?.getInput());
|
|
16780
17377
|
return new _ContractWriteNode({
|
|
16781
17378
|
...obj,
|
|
16782
17379
|
type: import_types9.NodeType.ContractWrite,
|
|
16783
|
-
data
|
|
17380
|
+
data,
|
|
17381
|
+
input
|
|
16784
17382
|
});
|
|
16785
17383
|
}
|
|
16786
17384
|
toRequest() {
|
|
16787
17385
|
const request = new avs_pb9.TaskNode();
|
|
16788
17386
|
request.setId(this.id);
|
|
16789
17387
|
request.setName(this.name);
|
|
16790
|
-
const
|
|
17388
|
+
const node = new avs_pb9.ContractWriteNode();
|
|
16791
17389
|
const config = new avs_pb9.ContractWriteNode.Config();
|
|
16792
17390
|
config.setContractAddress(this.data.contractAddress);
|
|
16793
17391
|
config.setCallData(this.data.callData);
|
|
@@ -16801,8 +17399,12 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
16801
17399
|
}
|
|
16802
17400
|
config.addMethodCalls(methodCallMsg);
|
|
16803
17401
|
});
|
|
16804
|
-
|
|
16805
|
-
|
|
17402
|
+
node.setConfig(config);
|
|
17403
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17404
|
+
if (inputValue) {
|
|
17405
|
+
node.setInput(inputValue);
|
|
17406
|
+
}
|
|
17407
|
+
request.setContractWrite(node);
|
|
16806
17408
|
return request;
|
|
16807
17409
|
}
|
|
16808
17410
|
static fromOutputData(outputData) {
|
|
@@ -16864,7 +17466,7 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
16864
17466
|
// src/models/node/customCode.ts
|
|
16865
17467
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
16866
17468
|
var import_types10 = require("@avaprotocol/types");
|
|
16867
|
-
var CustomCodeNode2 = class _CustomCodeNode extends
|
|
17469
|
+
var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
16868
17470
|
constructor(props) {
|
|
16869
17471
|
super({ ...props, type: import_types10.NodeType.CustomCode, data: props.data });
|
|
16870
17472
|
}
|
|
@@ -16875,22 +17477,28 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
16875
17477
|
lang: rawConfig.lang,
|
|
16876
17478
|
source: rawConfig.source
|
|
16877
17479
|
};
|
|
17480
|
+
const input = extractInputFromProtobuf(raw.getCustomCode()?.getInput());
|
|
16878
17481
|
return new _CustomCodeNode({
|
|
16879
17482
|
...obj,
|
|
16880
17483
|
type: import_types10.NodeType.CustomCode,
|
|
16881
|
-
data: convertedConfig
|
|
17484
|
+
data: convertedConfig,
|
|
17485
|
+
input
|
|
16882
17486
|
});
|
|
16883
17487
|
}
|
|
16884
17488
|
toRequest() {
|
|
16885
17489
|
const request = new avs_pb10.TaskNode();
|
|
16886
17490
|
request.setId(this.id);
|
|
16887
17491
|
request.setName(this.name);
|
|
16888
|
-
const
|
|
17492
|
+
const node = new avs_pb10.CustomCodeNode();
|
|
16889
17493
|
const config = new avs_pb10.CustomCodeNode.Config();
|
|
16890
17494
|
config.setLang(this.data.lang);
|
|
16891
17495
|
config.setSource(this.data.source);
|
|
16892
|
-
|
|
16893
|
-
|
|
17496
|
+
node.setConfig(config);
|
|
17497
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17498
|
+
if (inputValue) {
|
|
17499
|
+
node.setInput(inputValue);
|
|
17500
|
+
}
|
|
17501
|
+
request.setCustomCode(node);
|
|
16894
17502
|
return request;
|
|
16895
17503
|
}
|
|
16896
17504
|
static fromOutputData(outputData) {
|
|
@@ -16910,7 +17518,7 @@ var customCode_default = CustomCodeNode2;
|
|
|
16910
17518
|
// src/models/node/graphqlQuery.ts
|
|
16911
17519
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
16912
17520
|
var import_types11 = require("@avaprotocol/types");
|
|
16913
|
-
var GraphQLQueryNode2 = class _GraphQLQueryNode extends
|
|
17521
|
+
var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
16914
17522
|
constructor(props) {
|
|
16915
17523
|
super({
|
|
16916
17524
|
...props,
|
|
@@ -16920,17 +17528,19 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16920
17528
|
}
|
|
16921
17529
|
static fromResponse(raw) {
|
|
16922
17530
|
const obj = raw.toObject();
|
|
17531
|
+
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
16923
17532
|
return new _GraphQLQueryNode({
|
|
16924
17533
|
...obj,
|
|
16925
17534
|
type: import_types11.NodeType.GraphQLQuery,
|
|
16926
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17535
|
+
data: raw.getGraphqlQuery().getConfig().toObject(),
|
|
17536
|
+
input
|
|
16927
17537
|
});
|
|
16928
17538
|
}
|
|
16929
17539
|
toRequest() {
|
|
16930
17540
|
const request = new avs_pb11.TaskNode();
|
|
16931
17541
|
request.setId(this.id);
|
|
16932
17542
|
request.setName(this.name);
|
|
16933
|
-
const
|
|
17543
|
+
const node = new avs_pb11.GraphQLQueryNode();
|
|
16934
17544
|
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
16935
17545
|
config.setUrl(this.data.url);
|
|
16936
17546
|
config.setQuery(this.data.query);
|
|
@@ -16940,8 +17550,12 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
16940
17550
|
variablesMap.set(key, value);
|
|
16941
17551
|
});
|
|
16942
17552
|
}
|
|
16943
|
-
|
|
16944
|
-
|
|
17553
|
+
node.setConfig(config);
|
|
17554
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17555
|
+
if (inputValue) {
|
|
17556
|
+
node.setInput(inputValue);
|
|
17557
|
+
}
|
|
17558
|
+
request.setGraphqlQuery(node);
|
|
16945
17559
|
return request;
|
|
16946
17560
|
}
|
|
16947
17561
|
static fromOutputData(outputData) {
|
|
@@ -16954,16 +17568,22 @@ var graphqlQuery_default = GraphQLQueryNode2;
|
|
|
16954
17568
|
// src/models/node/restApi.ts
|
|
16955
17569
|
var avs_pb12 = __toESM(require_avs_pb());
|
|
16956
17570
|
var import_types12 = require("@avaprotocol/types");
|
|
16957
|
-
var RestAPINode2 = class _RestAPINode extends
|
|
17571
|
+
var RestAPINode2 = class _RestAPINode extends Node {
|
|
16958
17572
|
constructor(props) {
|
|
16959
17573
|
super({ ...props, type: import_types12.NodeType.RestAPI, data: props.data });
|
|
16960
17574
|
}
|
|
16961
17575
|
static fromResponse(raw) {
|
|
16962
17576
|
const obj = raw.toObject();
|
|
17577
|
+
let input = void 0;
|
|
17578
|
+
if (raw.hasInput()) {
|
|
17579
|
+
input = extractInputFromProtobuf(raw.getInput());
|
|
17580
|
+
}
|
|
16963
17581
|
return new _RestAPINode({
|
|
16964
17582
|
...obj,
|
|
16965
17583
|
type: import_types12.NodeType.RestAPI,
|
|
16966
|
-
data: raw.getRestApi().getConfig().toObject()
|
|
17584
|
+
data: raw.getRestApi().getConfig().toObject(),
|
|
17585
|
+
input
|
|
17586
|
+
// Include input data from top-level TaskNode
|
|
16967
17587
|
});
|
|
16968
17588
|
}
|
|
16969
17589
|
toRequest() {
|
|
@@ -16984,6 +17604,10 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
16984
17604
|
);
|
|
16985
17605
|
}
|
|
16986
17606
|
nodeData.setConfig(config);
|
|
17607
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17608
|
+
if (inputValue) {
|
|
17609
|
+
request.setInput(inputValue);
|
|
17610
|
+
}
|
|
16987
17611
|
request.setRestApi(nodeData);
|
|
16988
17612
|
return request;
|
|
16989
17613
|
}
|
|
@@ -17005,7 +17629,7 @@ var restApi_default = RestAPINode2;
|
|
|
17005
17629
|
// src/models/node/contractRead.ts
|
|
17006
17630
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
17007
17631
|
var import_types13 = require("@avaprotocol/types");
|
|
17008
|
-
var ContractReadNode2 = class _ContractReadNode extends
|
|
17632
|
+
var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
17009
17633
|
constructor(props) {
|
|
17010
17634
|
super({ ...props, type: import_types13.NodeType.ContractRead, data: props.data });
|
|
17011
17635
|
}
|
|
@@ -17020,17 +17644,19 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17020
17644
|
methodName: call.methodName
|
|
17021
17645
|
})) || []
|
|
17022
17646
|
};
|
|
17647
|
+
const input = extractInputFromProtobuf(raw.getContractRead()?.getInput());
|
|
17023
17648
|
return new _ContractReadNode({
|
|
17024
17649
|
...obj,
|
|
17025
17650
|
type: import_types13.NodeType.ContractRead,
|
|
17026
|
-
data
|
|
17651
|
+
data,
|
|
17652
|
+
input
|
|
17027
17653
|
});
|
|
17028
17654
|
}
|
|
17029
17655
|
toRequest() {
|
|
17030
17656
|
const request = new avs_pb13.TaskNode();
|
|
17031
17657
|
request.setId(this.id);
|
|
17032
17658
|
request.setName(this.name);
|
|
17033
|
-
const
|
|
17659
|
+
const node = new avs_pb13.ContractReadNode();
|
|
17034
17660
|
const config = new avs_pb13.ContractReadNode.Config();
|
|
17035
17661
|
config.setContractAddress(this.data.contractAddress);
|
|
17036
17662
|
config.setContractAbi(this.data.contractAbi);
|
|
@@ -17043,8 +17669,12 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
17043
17669
|
}
|
|
17044
17670
|
config.addMethodCalls(methodCallMsg);
|
|
17045
17671
|
});
|
|
17046
|
-
|
|
17047
|
-
|
|
17672
|
+
node.setConfig(config);
|
|
17673
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17674
|
+
if (inputValue) {
|
|
17675
|
+
node.setInput(inputValue);
|
|
17676
|
+
}
|
|
17677
|
+
request.setContractRead(node);
|
|
17048
17678
|
return request;
|
|
17049
17679
|
}
|
|
17050
17680
|
static fromOutputData(outputData) {
|
|
@@ -17072,28 +17702,34 @@ var contractRead_default = ContractReadNode2;
|
|
|
17072
17702
|
// src/models/node/ethTransfer.ts
|
|
17073
17703
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
17074
17704
|
var import_types14 = require("@avaprotocol/types");
|
|
17075
|
-
var ETHTransferNode2 = class _ETHTransferNode extends
|
|
17705
|
+
var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
17076
17706
|
constructor(props) {
|
|
17077
17707
|
super({ ...props, type: import_types14.NodeType.ETHTransfer, data: props.data });
|
|
17078
17708
|
}
|
|
17079
17709
|
static fromResponse(raw) {
|
|
17080
17710
|
const obj = raw.toObject();
|
|
17711
|
+
const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
|
|
17081
17712
|
return new _ETHTransferNode({
|
|
17082
17713
|
...obj,
|
|
17083
17714
|
type: import_types14.NodeType.ETHTransfer,
|
|
17084
|
-
data: raw.getEthTransfer().getConfig().toObject()
|
|
17715
|
+
data: raw.getEthTransfer().getConfig().toObject(),
|
|
17716
|
+
input
|
|
17085
17717
|
});
|
|
17086
17718
|
}
|
|
17087
17719
|
toRequest() {
|
|
17088
17720
|
const request = new avs_pb14.TaskNode();
|
|
17089
17721
|
request.setId(this.id);
|
|
17090
17722
|
request.setName(this.name);
|
|
17091
|
-
const
|
|
17723
|
+
const node = new avs_pb14.ETHTransferNode();
|
|
17092
17724
|
const config = new avs_pb14.ETHTransferNode.Config();
|
|
17093
17725
|
config.setDestination(this.data.destination);
|
|
17094
17726
|
config.setAmount(this.data.amount);
|
|
17095
|
-
|
|
17096
|
-
|
|
17727
|
+
node.setConfig(config);
|
|
17728
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17729
|
+
if (inputValue) {
|
|
17730
|
+
node.setInput(inputValue);
|
|
17731
|
+
}
|
|
17732
|
+
request.setEthTransfer(node);
|
|
17097
17733
|
return request;
|
|
17098
17734
|
}
|
|
17099
17735
|
static fromOutputData(outputData) {
|
|
@@ -17106,7 +17742,7 @@ var ethTransfer_default = ETHTransferNode2;
|
|
|
17106
17742
|
// src/models/node/branch.ts
|
|
17107
17743
|
var import_types15 = require("@avaprotocol/types");
|
|
17108
17744
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
17109
|
-
var BranchNode2 = class _BranchNode extends
|
|
17745
|
+
var BranchNode2 = class _BranchNode extends Node {
|
|
17110
17746
|
constructor(props) {
|
|
17111
17747
|
super({ ...props, type: import_types15.NodeType.Branch, data: props.data });
|
|
17112
17748
|
}
|
|
@@ -17120,17 +17756,19 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17120
17756
|
expression: condition.expression
|
|
17121
17757
|
})) || []
|
|
17122
17758
|
};
|
|
17759
|
+
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
17123
17760
|
return new _BranchNode({
|
|
17124
17761
|
...obj,
|
|
17125
17762
|
type: import_types15.NodeType.Branch,
|
|
17126
|
-
data
|
|
17763
|
+
data,
|
|
17764
|
+
input
|
|
17127
17765
|
});
|
|
17128
17766
|
}
|
|
17129
17767
|
toRequest() {
|
|
17130
17768
|
const request = new avs_pb15.TaskNode();
|
|
17131
17769
|
request.setId(this.id);
|
|
17132
17770
|
request.setName(this.name);
|
|
17133
|
-
const
|
|
17771
|
+
const node = new avs_pb15.BranchNode();
|
|
17134
17772
|
const config = new avs_pb15.BranchNode.Config();
|
|
17135
17773
|
if (this.data.conditions && this.data.conditions.length > 0) {
|
|
17136
17774
|
const conditionsList = this.data.conditions.map(
|
|
@@ -17144,8 +17782,12 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
17144
17782
|
);
|
|
17145
17783
|
config.setConditionsList(conditionsList);
|
|
17146
17784
|
}
|
|
17147
|
-
|
|
17148
|
-
|
|
17785
|
+
node.setConfig(config);
|
|
17786
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17787
|
+
if (inputValue) {
|
|
17788
|
+
node.setInput(inputValue);
|
|
17789
|
+
}
|
|
17790
|
+
request.setBranch(node);
|
|
17149
17791
|
return request;
|
|
17150
17792
|
}
|
|
17151
17793
|
static fromOutputData(outputData) {
|
|
@@ -17159,28 +17801,34 @@ var branch_default = BranchNode2;
|
|
|
17159
17801
|
// src/models/node/filter.ts
|
|
17160
17802
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
17161
17803
|
var import_types16 = require("@avaprotocol/types");
|
|
17162
|
-
var FilterNode2 = class _FilterNode extends
|
|
17804
|
+
var FilterNode2 = class _FilterNode extends Node {
|
|
17163
17805
|
constructor(props) {
|
|
17164
17806
|
super({ ...props, type: import_types16.NodeType.Filter, data: props.data });
|
|
17165
17807
|
}
|
|
17166
17808
|
static fromResponse(raw) {
|
|
17167
17809
|
const obj = raw.toObject();
|
|
17810
|
+
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
17168
17811
|
return new _FilterNode({
|
|
17169
17812
|
...obj,
|
|
17170
17813
|
type: import_types16.NodeType.Filter,
|
|
17171
|
-
data: raw.getFilter().getConfig().toObject()
|
|
17814
|
+
data: raw.getFilter().getConfig().toObject(),
|
|
17815
|
+
input
|
|
17172
17816
|
});
|
|
17173
17817
|
}
|
|
17174
17818
|
toRequest() {
|
|
17175
17819
|
const request = new avs_pb16.TaskNode();
|
|
17176
17820
|
request.setId(this.id);
|
|
17177
17821
|
request.setName(this.name);
|
|
17178
|
-
const
|
|
17822
|
+
const node = new avs_pb16.FilterNode();
|
|
17179
17823
|
const config = new avs_pb16.FilterNode.Config();
|
|
17180
17824
|
config.setExpression(this.data.expression);
|
|
17181
17825
|
config.setSourceId(this.data.sourceId || "");
|
|
17182
|
-
|
|
17183
|
-
|
|
17826
|
+
node.setConfig(config);
|
|
17827
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17828
|
+
if (inputValue) {
|
|
17829
|
+
node.setInput(inputValue);
|
|
17830
|
+
}
|
|
17831
|
+
request.setFilter(node);
|
|
17184
17832
|
return request;
|
|
17185
17833
|
}
|
|
17186
17834
|
static fromOutputData(outputData) {
|
|
@@ -17193,7 +17841,7 @@ var filter_default = FilterNode2;
|
|
|
17193
17841
|
// src/models/node/loop.ts
|
|
17194
17842
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
17195
17843
|
var import_types17 = require("@avaprotocol/types");
|
|
17196
|
-
var LoopNode2 = class _LoopNode extends
|
|
17844
|
+
var LoopNode2 = class _LoopNode extends Node {
|
|
17197
17845
|
constructor(props) {
|
|
17198
17846
|
super({ ...props, type: import_types17.NodeType.Loop, data: props.data });
|
|
17199
17847
|
}
|
|
@@ -17215,10 +17863,12 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17215
17863
|
contractWrite: loopNodeData.contractWrite,
|
|
17216
17864
|
graphqlDataQuery: loopNodeData.graphqlDataQuery
|
|
17217
17865
|
};
|
|
17866
|
+
const input = extractInputFromProtobuf(raw.getLoop()?.getInput());
|
|
17218
17867
|
return new _LoopNode({
|
|
17219
17868
|
...obj,
|
|
17220
17869
|
type: import_types17.NodeType.Loop,
|
|
17221
|
-
data
|
|
17870
|
+
data,
|
|
17871
|
+
input
|
|
17222
17872
|
});
|
|
17223
17873
|
}
|
|
17224
17874
|
toRequest() {
|
|
@@ -17232,6 +17882,10 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
17232
17882
|
config.setIterVal(data.iterVal || "");
|
|
17233
17883
|
config.setIterKey(data.iterKey || "");
|
|
17234
17884
|
loopNode.setConfig(config);
|
|
17885
|
+
const inputValue = convertInputToProtobuf(this.input);
|
|
17886
|
+
if (inputValue) {
|
|
17887
|
+
loopNode.setInput(inputValue);
|
|
17888
|
+
}
|
|
17235
17889
|
if (data.ethTransfer) {
|
|
17236
17890
|
const ethTransfer = new avs_pb17.ETHTransferNode();
|
|
17237
17891
|
if (data.ethTransfer.config) {
|
|
@@ -17578,7 +18232,6 @@ var workflow_default = Workflow;
|
|
|
17578
18232
|
|
|
17579
18233
|
// src/models/step.ts
|
|
17580
18234
|
var avs_pb20 = __toESM(require_avs_pb());
|
|
17581
|
-
var import_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb");
|
|
17582
18235
|
var Step = class _Step {
|
|
17583
18236
|
constructor(props) {
|
|
17584
18237
|
this.id = props.id;
|
|
@@ -17588,6 +18241,7 @@ var Step = class _Step {
|
|
|
17588
18241
|
this.error = props.error;
|
|
17589
18242
|
this.log = props.log;
|
|
17590
18243
|
this.inputsList = props.inputsList;
|
|
18244
|
+
this.input = props.input;
|
|
17591
18245
|
this.output = props.output;
|
|
17592
18246
|
this.startAt = props.startAt;
|
|
17593
18247
|
this.endAt = props.endAt;
|
|
@@ -17605,220 +18259,268 @@ var Step = class _Step {
|
|
|
17605
18259
|
error: this.error,
|
|
17606
18260
|
log: this.log,
|
|
17607
18261
|
inputsList: this.inputsList,
|
|
18262
|
+
input: this.input,
|
|
17608
18263
|
output: this.output,
|
|
17609
18264
|
startAt: this.startAt,
|
|
17610
18265
|
endAt: this.endAt
|
|
17611
18266
|
};
|
|
17612
18267
|
}
|
|
17613
18268
|
static getOutput(step) {
|
|
17614
|
-
const
|
|
17615
|
-
|
|
17616
|
-
|
|
18269
|
+
const getOutputDataCase = () => {
|
|
18270
|
+
if (typeof step.getOutputDataCase === "function") {
|
|
18271
|
+
return step.getOutputDataCase();
|
|
18272
|
+
}
|
|
18273
|
+
const stepObj = step;
|
|
18274
|
+
if (stepObj.blockTrigger)
|
|
18275
|
+
return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
18276
|
+
if (stepObj.fixedTimeTrigger)
|
|
18277
|
+
return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
18278
|
+
if (stepObj.cronTrigger)
|
|
18279
|
+
return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
18280
|
+
if (stepObj.eventTrigger)
|
|
18281
|
+
return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
18282
|
+
if (stepObj.manualTrigger)
|
|
18283
|
+
return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
18284
|
+
if (stepObj.ethTransfer)
|
|
18285
|
+
return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
18286
|
+
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
18287
|
+
if (stepObj.contractRead)
|
|
18288
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
18289
|
+
if (stepObj.contractWrite)
|
|
18290
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
18291
|
+
if (stepObj.customCode)
|
|
18292
|
+
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
18293
|
+
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
18294
|
+
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
18295
|
+
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
18296
|
+
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
18297
|
+
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
18298
|
+
};
|
|
18299
|
+
switch (getOutputDataCase()) {
|
|
17617
18300
|
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
17618
18301
|
return void 0;
|
|
17619
18302
|
// Trigger outputs
|
|
17620
18303
|
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
17621
|
-
|
|
17622
|
-
return blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
18304
|
+
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger()?.toObject() : step.blockTrigger;
|
|
17623
18305
|
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
17624
|
-
|
|
17625
|
-
return fixedTimeOutput ? {
|
|
17626
|
-
timestamp: fixedTimeOutput.timestamp,
|
|
17627
|
-
timestampIso: fixedTimeOutput.timestampIso
|
|
17628
|
-
} : void 0;
|
|
18306
|
+
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger()?.toObject() : step.fixedTimeTrigger;
|
|
17629
18307
|
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
17630
|
-
|
|
17631
|
-
return cronOutput ? {
|
|
17632
|
-
timestamp: cronOutput.timestamp,
|
|
17633
|
-
timestampIso: cronOutput.timestampIso
|
|
17634
|
-
} : void 0;
|
|
18308
|
+
return typeof step.getCronTrigger === "function" ? step.getCronTrigger()?.toObject() : step.cronTrigger;
|
|
17635
18309
|
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
17636
|
-
const eventTrigger = step.getEventTrigger();
|
|
18310
|
+
const eventTrigger = typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
17637
18311
|
if (eventTrigger) {
|
|
17638
|
-
if (eventTrigger.hasEvmLog()) {
|
|
18312
|
+
if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
|
|
17639
18313
|
return eventTrigger.getEvmLog()?.toObject();
|
|
17640
|
-
} else if (eventTrigger.hasTransferLog()) {
|
|
18314
|
+
} else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
|
|
17641
18315
|
return eventTrigger.getTransferLog()?.toObject();
|
|
18316
|
+
} else if (eventTrigger.evmLog) {
|
|
18317
|
+
return eventTrigger.evmLog;
|
|
18318
|
+
} else if (eventTrigger.transferLog) {
|
|
18319
|
+
return eventTrigger.transferLog;
|
|
17642
18320
|
}
|
|
17643
18321
|
}
|
|
17644
18322
|
return void 0;
|
|
17645
18323
|
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
17646
|
-
|
|
17647
|
-
|
|
17648
|
-
// Node outputs
|
|
18324
|
+
return typeof step.getManualTrigger === "function" ? step.getManualTrigger()?.toObject() || void 0 : step.manualTrigger;
|
|
18325
|
+
// Node outputs - RESTORE MISSING CASES
|
|
17649
18326
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
17650
|
-
|
|
17651
|
-
|
|
17652
|
-
|
|
17653
|
-
|
|
18327
|
+
return typeof step.getEthTransfer === "function" ? step.getEthTransfer()?.toObject() : step.ethTransfer;
|
|
18328
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
18329
|
+
const customCodeOutput = typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
18330
|
+
if (customCodeOutput) {
|
|
18331
|
+
if (typeof customCodeOutput.hasData === "function" && customCodeOutput.hasData()) {
|
|
18332
|
+
try {
|
|
18333
|
+
return convertProtobufValueToJs(customCodeOutput.getData());
|
|
18334
|
+
} catch {
|
|
18335
|
+
return customCodeOutput.getData();
|
|
18336
|
+
}
|
|
18337
|
+
} else if (customCodeOutput.data) {
|
|
18338
|
+
return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
|
|
18339
|
+
}
|
|
18340
|
+
}
|
|
18341
|
+
return void 0;
|
|
18342
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
18343
|
+
const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18344
|
+
if (restApiOutput) {
|
|
18345
|
+
if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
|
|
18346
|
+
try {
|
|
18347
|
+
return convertProtobufValueToJs(restApiOutput.getData());
|
|
18348
|
+
} catch {
|
|
18349
|
+
return restApiOutput.getData();
|
|
18350
|
+
}
|
|
18351
|
+
} else if (restApiOutput.data) {
|
|
18352
|
+
return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
|
|
18353
|
+
}
|
|
18354
|
+
}
|
|
18355
|
+
return void 0;
|
|
18356
|
+
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
18357
|
+
return typeof step.getBranch === "function" ? step.getBranch()?.toObject() : step.branch;
|
|
18358
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
18359
|
+
const loopOutput = typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
18360
|
+
if (loopOutput) {
|
|
18361
|
+
if (typeof loopOutput.getData === "function" && loopOutput.getData()) {
|
|
18362
|
+
try {
|
|
18363
|
+
return JSON.parse(loopOutput.getData());
|
|
18364
|
+
} catch {
|
|
18365
|
+
return loopOutput.getData();
|
|
18366
|
+
}
|
|
18367
|
+
} else if (loopOutput.data) {
|
|
18368
|
+
try {
|
|
18369
|
+
return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
|
|
18370
|
+
} catch {
|
|
18371
|
+
return loopOutput.data;
|
|
18372
|
+
}
|
|
18373
|
+
}
|
|
18374
|
+
}
|
|
18375
|
+
return void 0;
|
|
17654
18376
|
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
17655
|
-
|
|
17656
|
-
|
|
18377
|
+
const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
18378
|
+
if (graphqlOutput) {
|
|
18379
|
+
try {
|
|
18380
|
+
return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
|
|
18381
|
+
} catch {
|
|
18382
|
+
return void 0;
|
|
18383
|
+
}
|
|
18384
|
+
}
|
|
18385
|
+
return void 0;
|
|
17657
18386
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
17658
|
-
|
|
17659
|
-
if (
|
|
17660
|
-
const
|
|
17661
|
-
if (
|
|
17662
|
-
|
|
17663
|
-
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
|
|
17669
|
-
|
|
17670
|
-
|
|
17671
|
-
error: result.getError(),
|
|
17672
|
-
data: dataFields
|
|
17673
|
-
};
|
|
17674
|
-
});
|
|
17675
|
-
return { results: resultArray };
|
|
18387
|
+
const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
18388
|
+
if (contractReadOutput) {
|
|
18389
|
+
const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
|
|
18390
|
+
if (outputObj && outputObj.resultsList) {
|
|
18391
|
+
return {
|
|
18392
|
+
...outputObj,
|
|
18393
|
+
results: outputObj.resultsList.map((result) => ({
|
|
18394
|
+
methodName: result.methodName,
|
|
18395
|
+
success: result.success,
|
|
18396
|
+
error: result.error,
|
|
18397
|
+
data: result.dataList || []
|
|
18398
|
+
}))
|
|
18399
|
+
};
|
|
17676
18400
|
}
|
|
18401
|
+
return outputObj;
|
|
17677
18402
|
}
|
|
17678
18403
|
return void 0;
|
|
17679
18404
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
17680
|
-
|
|
17681
|
-
if (
|
|
17682
|
-
const
|
|
17683
|
-
if (
|
|
17684
|
-
const transformedResults =
|
|
17685
|
-
methodName: result.
|
|
17686
|
-
success: result.
|
|
17687
|
-
transaction: result.
|
|
17688
|
-
hash: result.
|
|
17689
|
-
status: result.
|
|
17690
|
-
blockNumber: result.
|
|
17691
|
-
blockHash: result.
|
|
17692
|
-
gasUsed: result.
|
|
17693
|
-
gasLimit: result.
|
|
17694
|
-
gasPrice: result.
|
|
17695
|
-
effectiveGasPrice: result.
|
|
17696
|
-
from: result.
|
|
17697
|
-
to: result.
|
|
17698
|
-
value: result.
|
|
17699
|
-
nonce: result.
|
|
17700
|
-
transactionIndex: result.
|
|
17701
|
-
confirmations: result.
|
|
17702
|
-
timestamp: result.
|
|
18405
|
+
const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
18406
|
+
if (contractWriteOutput) {
|
|
18407
|
+
const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
|
|
18408
|
+
if (outputObj && outputObj.resultsList) {
|
|
18409
|
+
const transformedResults = outputObj.resultsList.map((result) => ({
|
|
18410
|
+
methodName: result.methodName,
|
|
18411
|
+
success: result.success,
|
|
18412
|
+
transaction: result.transaction ? {
|
|
18413
|
+
hash: result.transaction.hash,
|
|
18414
|
+
status: result.transaction.status,
|
|
18415
|
+
blockNumber: result.transaction.blockNumber,
|
|
18416
|
+
blockHash: result.transaction.blockHash,
|
|
18417
|
+
gasUsed: result.transaction.gasUsed,
|
|
18418
|
+
gasLimit: result.transaction.gasLimit,
|
|
18419
|
+
gasPrice: result.transaction.gasPrice,
|
|
18420
|
+
effectiveGasPrice: result.transaction.effectiveGasPrice,
|
|
18421
|
+
from: result.transaction.from,
|
|
18422
|
+
to: result.transaction.to,
|
|
18423
|
+
value: result.transaction.value,
|
|
18424
|
+
nonce: result.transaction.nonce,
|
|
18425
|
+
transactionIndex: result.transaction.transactionIndex,
|
|
18426
|
+
confirmations: result.transaction.confirmations,
|
|
18427
|
+
timestamp: result.transaction.timestamp
|
|
17703
18428
|
} : null,
|
|
17704
|
-
events: result.
|
|
17705
|
-
eventName: event.
|
|
17706
|
-
address: event.
|
|
17707
|
-
topics: event.
|
|
17708
|
-
data: event.
|
|
17709
|
-
decoded: event.
|
|
17710
|
-
})),
|
|
17711
|
-
error: result.
|
|
17712
|
-
code: result.
|
|
17713
|
-
message: result.
|
|
17714
|
-
revertReason: result.
|
|
18429
|
+
events: result.eventsList?.map((event) => ({
|
|
18430
|
+
eventName: event.eventName,
|
|
18431
|
+
address: event.address,
|
|
18432
|
+
topics: event.topicsList || [],
|
|
18433
|
+
data: event.data,
|
|
18434
|
+
decoded: event.decodedMap || {}
|
|
18435
|
+
})) || [],
|
|
18436
|
+
error: result.error ? {
|
|
18437
|
+
code: result.error.code,
|
|
18438
|
+
message: result.error.message,
|
|
18439
|
+
revertReason: result.error.revertReason
|
|
17715
18440
|
} : null,
|
|
17716
|
-
returnData: result.
|
|
17717
|
-
name: result.
|
|
17718
|
-
type: result.
|
|
17719
|
-
value: result.
|
|
18441
|
+
returnData: result.returnData ? {
|
|
18442
|
+
name: result.returnData.name,
|
|
18443
|
+
type: result.returnData.type,
|
|
18444
|
+
value: result.returnData.value
|
|
17720
18445
|
} : null,
|
|
17721
|
-
inputData: result.
|
|
18446
|
+
inputData: result.inputData
|
|
17722
18447
|
}));
|
|
17723
|
-
|
|
17724
|
-
|
|
17725
|
-
|
|
17726
|
-
|
|
18448
|
+
return {
|
|
18449
|
+
...outputObj,
|
|
18450
|
+
results: transformedResults,
|
|
18451
|
+
// For backward compatibility, provide legacy fields from first result
|
|
18452
|
+
...transformedResults.length > 0 && {
|
|
17727
18453
|
transaction: transformedResults[0].transaction,
|
|
17728
18454
|
success: transformedResults[0].success,
|
|
17729
18455
|
hash: transformedResults[0].transaction?.hash
|
|
17730
|
-
}
|
|
17731
|
-
}
|
|
17732
|
-
return { results: transformedResults };
|
|
17733
|
-
}
|
|
18456
|
+
}
|
|
18457
|
+
};
|
|
17734
18458
|
}
|
|
18459
|
+
return outputObj;
|
|
17735
18460
|
}
|
|
17736
18461
|
return void 0;
|
|
17737
|
-
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
17738
|
-
nodeOutputMessage = step.getCustomCode();
|
|
17739
|
-
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
17740
|
-
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
17741
|
-
nodeOutputMessage = step.getRestApi();
|
|
17742
|
-
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
17743
|
-
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
17744
|
-
return step.getBranch()?.toObject();
|
|
17745
18462
|
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
17746
|
-
|
|
17747
|
-
if (
|
|
17748
|
-
|
|
17749
|
-
|
|
17750
|
-
|
|
17751
|
-
try {
|
|
17752
|
-
const unpackedValue = rawData.unpack(import_struct_pb2.Value.deserializeBinary, "google.protobuf.Value");
|
|
17753
|
-
if (unpackedValue) {
|
|
17754
|
-
return convertProtobufValueToJs(unpackedValue);
|
|
17755
|
-
}
|
|
17756
|
-
} catch (error) {
|
|
17757
|
-
console.warn("Failed to unpack FilterNode Any wrapper:", error);
|
|
17758
|
-
return void 0;
|
|
17759
|
-
}
|
|
17760
|
-
}
|
|
17761
|
-
console.warn("FilterNode output data is not an Any wrapper - this is unexpected");
|
|
18463
|
+
const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
18464
|
+
if (filterOutput) {
|
|
18465
|
+
try {
|
|
18466
|
+
return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
|
|
18467
|
+
} catch {
|
|
17762
18468
|
return void 0;
|
|
17763
18469
|
}
|
|
17764
18470
|
}
|
|
17765
18471
|
return void 0;
|
|
17766
|
-
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
17767
|
-
const loopOutput = step.getLoop();
|
|
17768
|
-
if (!loopOutput) return void 0;
|
|
17769
|
-
const loopData = loopOutput.getData();
|
|
17770
|
-
if (!loopData) return void 0;
|
|
17771
|
-
try {
|
|
17772
|
-
const parsedData = JSON.parse(loopData);
|
|
17773
|
-
if (Array.isArray(parsedData)) {
|
|
17774
|
-
return parsedData.map((item, index) => {
|
|
17775
|
-
if (!item || typeof item !== "object") {
|
|
17776
|
-
return item;
|
|
17777
|
-
}
|
|
17778
|
-
if (item.statusCode !== void 0 && (item.body !== void 0 || item.headers !== void 0)) {
|
|
17779
|
-
return item;
|
|
17780
|
-
}
|
|
17781
|
-
if (item.result !== void 0 || item.output !== void 0 || item.error !== void 0) {
|
|
17782
|
-
return item;
|
|
17783
|
-
}
|
|
17784
|
-
if (item.transactionHash !== void 0) {
|
|
17785
|
-
return { transactionHash: item.transactionHash };
|
|
17786
|
-
}
|
|
17787
|
-
if (item.methodName !== void 0 && item.data !== void 0) {
|
|
17788
|
-
return item;
|
|
17789
|
-
}
|
|
17790
|
-
if (item.data !== void 0 && typeof item.data === "object") {
|
|
17791
|
-
return item;
|
|
17792
|
-
}
|
|
17793
|
-
return item;
|
|
17794
|
-
});
|
|
17795
|
-
}
|
|
17796
|
-
if (parsedData && typeof parsedData === "object") {
|
|
17797
|
-
return parsedData;
|
|
17798
|
-
}
|
|
17799
|
-
return { data: parsedData };
|
|
17800
|
-
} catch (e) {
|
|
17801
|
-
return { data: loopData };
|
|
17802
|
-
}
|
|
17803
18472
|
default:
|
|
17804
18473
|
console.warn(
|
|
17805
|
-
`Unhandled output data type in Step.getOutput: ${
|
|
18474
|
+
`Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
|
|
17806
18475
|
);
|
|
17807
18476
|
return void 0;
|
|
17808
18477
|
}
|
|
17809
18478
|
}
|
|
17810
18479
|
static fromResponse(step) {
|
|
18480
|
+
let inputData = void 0;
|
|
18481
|
+
if (typeof step.hasInput === "function" && step.hasInput()) {
|
|
18482
|
+
const inputValue = step.getInput();
|
|
18483
|
+
if (inputValue) {
|
|
18484
|
+
try {
|
|
18485
|
+
inputData = convertProtobufValueToJs(inputValue);
|
|
18486
|
+
} catch (error) {
|
|
18487
|
+
console.warn("Failed to convert protobuf input value:", error);
|
|
18488
|
+
inputData = inputValue;
|
|
18489
|
+
}
|
|
18490
|
+
}
|
|
18491
|
+
} else if (step.input) {
|
|
18492
|
+
const inputValue = step.input;
|
|
18493
|
+
if (typeof inputValue === "object" && !inputValue.getKindCase) {
|
|
18494
|
+
inputData = inputValue;
|
|
18495
|
+
} else {
|
|
18496
|
+
try {
|
|
18497
|
+
inputData = convertProtobufValueToJs(inputValue);
|
|
18498
|
+
} catch (error) {
|
|
18499
|
+
inputData = inputValue;
|
|
18500
|
+
}
|
|
18501
|
+
}
|
|
18502
|
+
}
|
|
18503
|
+
const getId = () => typeof step.getId === "function" ? step.getId() : step.id;
|
|
18504
|
+
const getType = () => typeof step.getType === "function" ? step.getType() : step.type;
|
|
18505
|
+
const getName = () => typeof step.getName === "function" ? step.getName() : step.name;
|
|
18506
|
+
const getSuccess = () => typeof step.getSuccess === "function" ? step.getSuccess() : step.success;
|
|
18507
|
+
const getError = () => typeof step.getError === "function" ? step.getError() : step.error;
|
|
18508
|
+
const getLog = () => typeof step.getLog === "function" ? step.getLog() : step.log;
|
|
18509
|
+
const getInputsList = () => typeof step.getInputsList === "function" ? step.getInputsList() : step.inputsList || [];
|
|
18510
|
+
const getStartAt = () => typeof step.getStartAt === "function" ? step.getStartAt() : step.startAt;
|
|
18511
|
+
const getEndAt = () => typeof step.getEndAt === "function" ? step.getEndAt() : step.endAt;
|
|
17811
18512
|
return new _Step({
|
|
17812
|
-
id:
|
|
17813
|
-
type: convertProtobufStepTypeToSdk(
|
|
17814
|
-
name:
|
|
17815
|
-
success:
|
|
17816
|
-
error:
|
|
17817
|
-
log:
|
|
17818
|
-
inputsList:
|
|
18513
|
+
id: getId(),
|
|
18514
|
+
type: convertProtobufStepTypeToSdk(getType()),
|
|
18515
|
+
name: getName(),
|
|
18516
|
+
success: getSuccess(),
|
|
18517
|
+
error: getError(),
|
|
18518
|
+
log: getLog(),
|
|
18519
|
+
inputsList: getInputsList(),
|
|
18520
|
+
input: inputData,
|
|
17819
18521
|
output: _Step.getOutput(step),
|
|
17820
|
-
startAt:
|
|
17821
|
-
endAt:
|
|
18522
|
+
startAt: getStartAt(),
|
|
18523
|
+
endAt: getEndAt()
|
|
17822
18524
|
});
|
|
17823
18525
|
}
|
|
17824
18526
|
// Client side does not generate the step, so there's no toRequest() method
|