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