@avaprotocol/sdk-js 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts +17 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1262 -853
- package/dist/index.mjs +1273 -856
- package/dist/models/execution.d.ts +7 -9
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +17 -7
- package/dist/models/node/branch.d.ts +1 -0
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +4 -0
- package/dist/models/node/contractRead.d.ts +1 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +11 -0
- package/dist/models/node/contractWrite.d.ts +1 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +4 -0
- package/dist/models/node/customCode.d.ts +1 -0
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +9 -0
- package/dist/models/node/ethTransfer.d.ts +1 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +4 -0
- package/dist/models/node/factory.d.ts +1 -0
- package/dist/models/node/factory.d.ts.map +1 -1
- package/dist/models/node/factory.js +54 -0
- package/dist/models/node/filter.d.ts +1 -0
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +4 -0
- package/dist/models/node/graphqlQuery.d.ts +1 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +4 -0
- package/dist/models/node/loop.d.ts +1 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +4 -0
- package/dist/models/node/restApi.d.ts +1 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +15 -1
- package/dist/models/trigger/block.d.ts +6 -0
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +9 -0
- package/dist/models/trigger/cron.d.ts +8 -1
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +18 -1
- package/dist/models/trigger/event.d.ts +7 -1
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +10 -1
- package/dist/models/trigger/factory.d.ts +1 -0
- package/dist/models/trigger/factory.d.ts.map +1 -1
- package/dist/models/trigger/factory.js +42 -0
- package/dist/models/trigger/fixedTime.d.ts +8 -1
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +18 -1
- package/dist/models/trigger/interface.d.ts +1 -1
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/manual.d.ts +13 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +17 -0
- package/dist/utils.d.ts +34 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +116 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -137,6 +137,9 @@ var require_avs_pb = __commonJS({
|
|
|
137
137
|
goog.exportSymbol("proto.aggregator.LoopNode.Config", null, global);
|
|
138
138
|
goog.exportSymbol("proto.aggregator.LoopNode.Output", null, global);
|
|
139
139
|
goog.exportSymbol("proto.aggregator.LoopNode.RunnerCase", null, global);
|
|
140
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger", null, global);
|
|
141
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger.Config", null, global);
|
|
142
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger.Output", null, global);
|
|
140
143
|
goog.exportSymbol("proto.aggregator.NodeType", null, global);
|
|
141
144
|
goog.exportSymbol("proto.aggregator.NonceRequest", null, global);
|
|
142
145
|
goog.exportSymbol("proto.aggregator.NonceResp", null, global);
|
|
@@ -160,10 +163,10 @@ var require_avs_pb = __commonJS({
|
|
|
160
163
|
goog.exportSymbol("proto.aggregator.TaskStatus", null, global);
|
|
161
164
|
goog.exportSymbol("proto.aggregator.TaskTrigger", null, global);
|
|
162
165
|
goog.exportSymbol("proto.aggregator.TaskTrigger.TriggerTypeCase", null, global);
|
|
163
|
-
goog.exportSymbol("proto.aggregator.
|
|
166
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskReq", null, global);
|
|
167
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
|
|
168
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
|
|
164
169
|
goog.exportSymbol("proto.aggregator.TriggerType", null, global);
|
|
165
|
-
goog.exportSymbol("proto.aggregator.UserTriggerTaskReq", null, global);
|
|
166
|
-
goog.exportSymbol("proto.aggregator.UserTriggerTaskResp", null, global);
|
|
167
170
|
proto.aggregator.IdReq = function(opt_data) {
|
|
168
171
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
169
172
|
};
|
|
@@ -269,6 +272,27 @@ var require_avs_pb = __commonJS({
|
|
|
269
272
|
if (goog.DEBUG && !COMPILED) {
|
|
270
273
|
proto.aggregator.EventTrigger.TransferLogOutput.displayName = "proto.aggregator.EventTrigger.TransferLogOutput";
|
|
271
274
|
}
|
|
275
|
+
proto.aggregator.ManualTrigger = function(opt_data) {
|
|
276
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
277
|
+
};
|
|
278
|
+
goog.inherits(proto.aggregator.ManualTrigger, jspb.Message);
|
|
279
|
+
if (goog.DEBUG && !COMPILED) {
|
|
280
|
+
proto.aggregator.ManualTrigger.displayName = "proto.aggregator.ManualTrigger";
|
|
281
|
+
}
|
|
282
|
+
proto.aggregator.ManualTrigger.Config = function(opt_data) {
|
|
283
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
284
|
+
};
|
|
285
|
+
goog.inherits(proto.aggregator.ManualTrigger.Config, jspb.Message);
|
|
286
|
+
if (goog.DEBUG && !COMPILED) {
|
|
287
|
+
proto.aggregator.ManualTrigger.Config.displayName = "proto.aggregator.ManualTrigger.Config";
|
|
288
|
+
}
|
|
289
|
+
proto.aggregator.ManualTrigger.Output = function(opt_data) {
|
|
290
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
291
|
+
};
|
|
292
|
+
goog.inherits(proto.aggregator.ManualTrigger.Output, jspb.Message);
|
|
293
|
+
if (goog.DEBUG && !COMPILED) {
|
|
294
|
+
proto.aggregator.ManualTrigger.Output.displayName = "proto.aggregator.ManualTrigger.Output";
|
|
295
|
+
}
|
|
272
296
|
proto.aggregator.TaskTrigger = function(opt_data) {
|
|
273
297
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TaskTrigger.oneofGroups_);
|
|
274
298
|
};
|
|
@@ -612,13 +636,6 @@ var require_avs_pb = __commonJS({
|
|
|
612
636
|
if (goog.DEBUG && !COMPILED) {
|
|
613
637
|
proto.aggregator.KeyResp.displayName = "proto.aggregator.KeyResp";
|
|
614
638
|
}
|
|
615
|
-
proto.aggregator.TriggerReason = function(opt_data) {
|
|
616
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
617
|
-
};
|
|
618
|
-
goog.inherits(proto.aggregator.TriggerReason, jspb.Message);
|
|
619
|
-
if (goog.DEBUG && !COMPILED) {
|
|
620
|
-
proto.aggregator.TriggerReason.displayName = "proto.aggregator.TriggerReason";
|
|
621
|
-
}
|
|
622
639
|
proto.aggregator.GetWalletReq = function(opt_data) {
|
|
623
640
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
624
641
|
};
|
|
@@ -640,19 +657,19 @@ var require_avs_pb = __commonJS({
|
|
|
640
657
|
if (goog.DEBUG && !COMPILED) {
|
|
641
658
|
proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
|
|
642
659
|
}
|
|
643
|
-
proto.aggregator.
|
|
644
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
660
|
+
proto.aggregator.TriggerTaskReq = function(opt_data) {
|
|
661
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TriggerTaskReq.oneofGroups_);
|
|
645
662
|
};
|
|
646
|
-
goog.inherits(proto.aggregator.
|
|
663
|
+
goog.inherits(proto.aggregator.TriggerTaskReq, jspb.Message);
|
|
647
664
|
if (goog.DEBUG && !COMPILED) {
|
|
648
|
-
proto.aggregator.
|
|
665
|
+
proto.aggregator.TriggerTaskReq.displayName = "proto.aggregator.TriggerTaskReq";
|
|
649
666
|
}
|
|
650
|
-
proto.aggregator.
|
|
667
|
+
proto.aggregator.TriggerTaskResp = function(opt_data) {
|
|
651
668
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
652
669
|
};
|
|
653
|
-
goog.inherits(proto.aggregator.
|
|
670
|
+
goog.inherits(proto.aggregator.TriggerTaskResp, jspb.Message);
|
|
654
671
|
if (goog.DEBUG && !COMPILED) {
|
|
655
|
-
proto.aggregator.
|
|
672
|
+
proto.aggregator.TriggerTaskResp.displayName = "proto.aggregator.TriggerTaskResp";
|
|
656
673
|
}
|
|
657
674
|
proto.aggregator.CreateOrUpdateSecretReq = function(opt_data) {
|
|
658
675
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
@@ -1005,7 +1022,8 @@ var require_avs_pb = __commonJS({
|
|
|
1005
1022
|
};
|
|
1006
1023
|
proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1007
1024
|
var f, obj = {
|
|
1008
|
-
|
|
1025
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1026
|
+
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1009
1027
|
};
|
|
1010
1028
|
if (includeInstance) {
|
|
1011
1029
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1030,7 +1048,14 @@ var require_avs_pb = __commonJS({
|
|
|
1030
1048
|
/** @type {number} */
|
|
1031
1049
|
reader.readUint64()
|
|
1032
1050
|
);
|
|
1033
|
-
msg.
|
|
1051
|
+
msg.setTimestamp(value);
|
|
1052
|
+
break;
|
|
1053
|
+
case 2:
|
|
1054
|
+
var value = (
|
|
1055
|
+
/** @type {string} */
|
|
1056
|
+
reader.readString()
|
|
1057
|
+
);
|
|
1058
|
+
msg.setTimestampIso(value);
|
|
1034
1059
|
break;
|
|
1035
1060
|
default:
|
|
1036
1061
|
reader.skipField();
|
|
@@ -1046,23 +1071,39 @@ var require_avs_pb = __commonJS({
|
|
|
1046
1071
|
};
|
|
1047
1072
|
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1048
1073
|
var f = void 0;
|
|
1049
|
-
f = message.
|
|
1074
|
+
f = message.getTimestamp();
|
|
1050
1075
|
if (f !== 0) {
|
|
1051
1076
|
writer.writeUint64(
|
|
1052
1077
|
1,
|
|
1053
1078
|
f
|
|
1054
1079
|
);
|
|
1055
1080
|
}
|
|
1081
|
+
f = message.getTimestampIso();
|
|
1082
|
+
if (f.length > 0) {
|
|
1083
|
+
writer.writeString(
|
|
1084
|
+
2,
|
|
1085
|
+
f
|
|
1086
|
+
);
|
|
1087
|
+
}
|
|
1056
1088
|
};
|
|
1057
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1089
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestamp = function() {
|
|
1058
1090
|
return (
|
|
1059
1091
|
/** @type {number} */
|
|
1060
1092
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
1061
1093
|
);
|
|
1062
1094
|
};
|
|
1063
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1095
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestamp = function(value) {
|
|
1064
1096
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1065
1097
|
};
|
|
1098
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestampIso = function() {
|
|
1099
|
+
return (
|
|
1100
|
+
/** @type {string} */
|
|
1101
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1102
|
+
);
|
|
1103
|
+
};
|
|
1104
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestampIso = function(value) {
|
|
1105
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1106
|
+
};
|
|
1066
1107
|
proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
|
|
1067
1108
|
return (
|
|
1068
1109
|
/** @type{?proto.aggregator.FixedTimeTrigger.Config} */
|
|
@@ -1209,8 +1250,8 @@ var require_avs_pb = __commonJS({
|
|
|
1209
1250
|
};
|
|
1210
1251
|
proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1211
1252
|
var f, obj = {
|
|
1212
|
-
|
|
1213
|
-
|
|
1253
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1254
|
+
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1214
1255
|
};
|
|
1215
1256
|
if (includeInstance) {
|
|
1216
1257
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1235,14 +1276,14 @@ var require_avs_pb = __commonJS({
|
|
|
1235
1276
|
/** @type {number} */
|
|
1236
1277
|
reader.readUint64()
|
|
1237
1278
|
);
|
|
1238
|
-
msg.
|
|
1279
|
+
msg.setTimestamp(value);
|
|
1239
1280
|
break;
|
|
1240
1281
|
case 2:
|
|
1241
1282
|
var value = (
|
|
1242
1283
|
/** @type {string} */
|
|
1243
1284
|
reader.readString()
|
|
1244
1285
|
);
|
|
1245
|
-
msg.
|
|
1286
|
+
msg.setTimestampIso(value);
|
|
1246
1287
|
break;
|
|
1247
1288
|
default:
|
|
1248
1289
|
reader.skipField();
|
|
@@ -1258,14 +1299,14 @@ var require_avs_pb = __commonJS({
|
|
|
1258
1299
|
};
|
|
1259
1300
|
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1260
1301
|
var f = void 0;
|
|
1261
|
-
f = message.
|
|
1302
|
+
f = message.getTimestamp();
|
|
1262
1303
|
if (f !== 0) {
|
|
1263
1304
|
writer.writeUint64(
|
|
1264
1305
|
1,
|
|
1265
1306
|
f
|
|
1266
1307
|
);
|
|
1267
1308
|
}
|
|
1268
|
-
f = message.
|
|
1309
|
+
f = message.getTimestampIso();
|
|
1269
1310
|
if (f.length > 0) {
|
|
1270
1311
|
writer.writeString(
|
|
1271
1312
|
2,
|
|
@@ -1273,22 +1314,22 @@ var require_avs_pb = __commonJS({
|
|
|
1273
1314
|
);
|
|
1274
1315
|
}
|
|
1275
1316
|
};
|
|
1276
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1317
|
+
proto.aggregator.CronTrigger.Output.prototype.getTimestamp = function() {
|
|
1277
1318
|
return (
|
|
1278
1319
|
/** @type {number} */
|
|
1279
1320
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
1280
1321
|
);
|
|
1281
1322
|
};
|
|
1282
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1323
|
+
proto.aggregator.CronTrigger.Output.prototype.setTimestamp = function(value) {
|
|
1283
1324
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1284
1325
|
};
|
|
1285
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1326
|
+
proto.aggregator.CronTrigger.Output.prototype.getTimestampIso = function() {
|
|
1286
1327
|
return (
|
|
1287
1328
|
/** @type {string} */
|
|
1288
1329
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1289
1330
|
);
|
|
1290
1331
|
};
|
|
1291
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1332
|
+
proto.aggregator.CronTrigger.Output.prototype.setTimestampIso = function(value) {
|
|
1292
1333
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1293
1334
|
};
|
|
1294
1335
|
proto.aggregator.CronTrigger.prototype.getConfig = function() {
|
|
@@ -2359,6 +2400,178 @@ var require_avs_pb = __commonJS({
|
|
|
2359
2400
|
proto.aggregator.EventTrigger.prototype.hasConfig = function() {
|
|
2360
2401
|
return jspb.Message.getField(this, 1) != null;
|
|
2361
2402
|
};
|
|
2403
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2404
|
+
proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2405
|
+
return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
|
|
2406
|
+
};
|
|
2407
|
+
proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
|
|
2408
|
+
var f, obj = {
|
|
2409
|
+
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
2410
|
+
};
|
|
2411
|
+
if (includeInstance) {
|
|
2412
|
+
obj.$jspbMessageInstance = msg;
|
|
2413
|
+
}
|
|
2414
|
+
return obj;
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
proto.aggregator.ManualTrigger.deserializeBinary = function(bytes) {
|
|
2418
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2419
|
+
var msg = new proto.aggregator.ManualTrigger();
|
|
2420
|
+
return proto.aggregator.ManualTrigger.deserializeBinaryFromReader(msg, reader);
|
|
2421
|
+
};
|
|
2422
|
+
proto.aggregator.ManualTrigger.deserializeBinaryFromReader = function(msg, reader) {
|
|
2423
|
+
while (reader.nextField()) {
|
|
2424
|
+
if (reader.isEndGroup()) {
|
|
2425
|
+
break;
|
|
2426
|
+
}
|
|
2427
|
+
var field = reader.getFieldNumber();
|
|
2428
|
+
switch (field) {
|
|
2429
|
+
case 1:
|
|
2430
|
+
var value = new proto.aggregator.ManualTrigger.Config();
|
|
2431
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
|
|
2432
|
+
msg.setConfig(value);
|
|
2433
|
+
break;
|
|
2434
|
+
default:
|
|
2435
|
+
reader.skipField();
|
|
2436
|
+
break;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
return msg;
|
|
2440
|
+
};
|
|
2441
|
+
proto.aggregator.ManualTrigger.prototype.serializeBinary = function() {
|
|
2442
|
+
var writer = new jspb.BinaryWriter();
|
|
2443
|
+
proto.aggregator.ManualTrigger.serializeBinaryToWriter(this, writer);
|
|
2444
|
+
return writer.getResultBuffer();
|
|
2445
|
+
};
|
|
2446
|
+
proto.aggregator.ManualTrigger.serializeBinaryToWriter = function(message, writer) {
|
|
2447
|
+
var f = void 0;
|
|
2448
|
+
f = message.getConfig();
|
|
2449
|
+
if (f != null) {
|
|
2450
|
+
writer.writeMessage(
|
|
2451
|
+
1,
|
|
2452
|
+
f,
|
|
2453
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
|
|
2454
|
+
);
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2458
|
+
proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
2459
|
+
return proto.aggregator.ManualTrigger.Config.toObject(opt_includeInstance, this);
|
|
2460
|
+
};
|
|
2461
|
+
proto.aggregator.ManualTrigger.Config.toObject = function(includeInstance, msg) {
|
|
2462
|
+
var f, obj = {};
|
|
2463
|
+
if (includeInstance) {
|
|
2464
|
+
obj.$jspbMessageInstance = msg;
|
|
2465
|
+
}
|
|
2466
|
+
return obj;
|
|
2467
|
+
};
|
|
2468
|
+
}
|
|
2469
|
+
proto.aggregator.ManualTrigger.Config.deserializeBinary = function(bytes) {
|
|
2470
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2471
|
+
var msg = new proto.aggregator.ManualTrigger.Config();
|
|
2472
|
+
return proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader(msg, reader);
|
|
2473
|
+
};
|
|
2474
|
+
proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader = function(msg, reader) {
|
|
2475
|
+
while (reader.nextField()) {
|
|
2476
|
+
if (reader.isEndGroup()) {
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
var field = reader.getFieldNumber();
|
|
2480
|
+
switch (field) {
|
|
2481
|
+
default:
|
|
2482
|
+
reader.skipField();
|
|
2483
|
+
break;
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
return msg;
|
|
2487
|
+
};
|
|
2488
|
+
proto.aggregator.ManualTrigger.Config.prototype.serializeBinary = function() {
|
|
2489
|
+
var writer = new jspb.BinaryWriter();
|
|
2490
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter(this, writer);
|
|
2491
|
+
return writer.getResultBuffer();
|
|
2492
|
+
};
|
|
2493
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter = function(message, writer) {
|
|
2494
|
+
var f = void 0;
|
|
2495
|
+
};
|
|
2496
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2497
|
+
proto.aggregator.ManualTrigger.Output.prototype.toObject = function(opt_includeInstance) {
|
|
2498
|
+
return proto.aggregator.ManualTrigger.Output.toObject(opt_includeInstance, this);
|
|
2499
|
+
};
|
|
2500
|
+
proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2501
|
+
var f, obj = {
|
|
2502
|
+
runAt: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2503
|
+
};
|
|
2504
|
+
if (includeInstance) {
|
|
2505
|
+
obj.$jspbMessageInstance = msg;
|
|
2506
|
+
}
|
|
2507
|
+
return obj;
|
|
2508
|
+
};
|
|
2509
|
+
}
|
|
2510
|
+
proto.aggregator.ManualTrigger.Output.deserializeBinary = function(bytes) {
|
|
2511
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2512
|
+
var msg = new proto.aggregator.ManualTrigger.Output();
|
|
2513
|
+
return proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader(msg, reader);
|
|
2514
|
+
};
|
|
2515
|
+
proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader = function(msg, reader) {
|
|
2516
|
+
while (reader.nextField()) {
|
|
2517
|
+
if (reader.isEndGroup()) {
|
|
2518
|
+
break;
|
|
2519
|
+
}
|
|
2520
|
+
var field = reader.getFieldNumber();
|
|
2521
|
+
switch (field) {
|
|
2522
|
+
case 1:
|
|
2523
|
+
var value = (
|
|
2524
|
+
/** @type {number} */
|
|
2525
|
+
reader.readUint64()
|
|
2526
|
+
);
|
|
2527
|
+
msg.setRunAt(value);
|
|
2528
|
+
break;
|
|
2529
|
+
default:
|
|
2530
|
+
reader.skipField();
|
|
2531
|
+
break;
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
return msg;
|
|
2535
|
+
};
|
|
2536
|
+
proto.aggregator.ManualTrigger.Output.prototype.serializeBinary = function() {
|
|
2537
|
+
var writer = new jspb.BinaryWriter();
|
|
2538
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter(this, writer);
|
|
2539
|
+
return writer.getResultBuffer();
|
|
2540
|
+
};
|
|
2541
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
2542
|
+
var f = void 0;
|
|
2543
|
+
f = message.getRunAt();
|
|
2544
|
+
if (f !== 0) {
|
|
2545
|
+
writer.writeUint64(
|
|
2546
|
+
1,
|
|
2547
|
+
f
|
|
2548
|
+
);
|
|
2549
|
+
}
|
|
2550
|
+
};
|
|
2551
|
+
proto.aggregator.ManualTrigger.Output.prototype.getRunAt = function() {
|
|
2552
|
+
return (
|
|
2553
|
+
/** @type {number} */
|
|
2554
|
+
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
2555
|
+
);
|
|
2556
|
+
};
|
|
2557
|
+
proto.aggregator.ManualTrigger.Output.prototype.setRunAt = function(value) {
|
|
2558
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2559
|
+
};
|
|
2560
|
+
proto.aggregator.ManualTrigger.prototype.getConfig = function() {
|
|
2561
|
+
return (
|
|
2562
|
+
/** @type{?proto.aggregator.ManualTrigger.Config} */
|
|
2563
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Config, 1)
|
|
2564
|
+
);
|
|
2565
|
+
};
|
|
2566
|
+
proto.aggregator.ManualTrigger.prototype.setConfig = function(value) {
|
|
2567
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2568
|
+
};
|
|
2569
|
+
proto.aggregator.ManualTrigger.prototype.clearConfig = function() {
|
|
2570
|
+
return this.setConfig(void 0);
|
|
2571
|
+
};
|
|
2572
|
+
proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
|
|
2573
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2574
|
+
};
|
|
2362
2575
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
2363
2576
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
2364
2577
|
TRIGGER_TYPE_NOT_SET: 0,
|
|
@@ -3838,7 +4051,7 @@ var require_avs_pb = __commonJS({
|
|
|
3838
4051
|
};
|
|
3839
4052
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
3840
4053
|
var f, obj = {
|
|
3841
|
-
data: (f = msg.getData()) &&
|
|
4054
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f)
|
|
3842
4055
|
};
|
|
3843
4056
|
if (includeInstance) {
|
|
3844
4057
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3859,8 +4072,8 @@ var require_avs_pb = __commonJS({
|
|
|
3859
4072
|
var field = reader.getFieldNumber();
|
|
3860
4073
|
switch (field) {
|
|
3861
4074
|
case 1:
|
|
3862
|
-
var value = new
|
|
3863
|
-
reader.readMessage(value,
|
|
4075
|
+
var value = new google_protobuf_struct_pb.Value();
|
|
4076
|
+
reader.readMessage(value, google_protobuf_struct_pb.Value.deserializeBinaryFromReader);
|
|
3864
4077
|
msg.setData(value);
|
|
3865
4078
|
break;
|
|
3866
4079
|
default:
|
|
@@ -3882,14 +4095,14 @@ var require_avs_pb = __commonJS({
|
|
|
3882
4095
|
writer.writeMessage(
|
|
3883
4096
|
1,
|
|
3884
4097
|
f,
|
|
3885
|
-
|
|
4098
|
+
google_protobuf_struct_pb.Value.serializeBinaryToWriter
|
|
3886
4099
|
);
|
|
3887
4100
|
}
|
|
3888
4101
|
};
|
|
3889
4102
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
3890
4103
|
return (
|
|
3891
|
-
/** @type{?proto.google.protobuf.
|
|
3892
|
-
jspb.Message.getWrapperField(this,
|
|
4104
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
4105
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)
|
|
3893
4106
|
);
|
|
3894
4107
|
};
|
|
3895
4108
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -5627,13 +5840,14 @@ var require_avs_pb = __commonJS({
|
|
|
5627
5840
|
return jspb.Message.getField(this, 18) != null;
|
|
5628
5841
|
};
|
|
5629
5842
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
5630
|
-
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13]];
|
|
5843
|
+
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
5631
5844
|
proto.aggregator.Execution.OutputDataCase = {
|
|
5632
5845
|
OUTPUT_DATA_NOT_SET: 0,
|
|
5633
5846
|
BLOCK_TRIGGER: 10,
|
|
5634
5847
|
FIXED_TIME_TRIGGER: 11,
|
|
5635
5848
|
CRON_TRIGGER: 12,
|
|
5636
|
-
EVENT_TRIGGER: 13
|
|
5849
|
+
EVENT_TRIGGER: 13,
|
|
5850
|
+
MANUAL_TRIGGER: 14
|
|
5637
5851
|
};
|
|
5638
5852
|
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
5639
5853
|
return (
|
|
@@ -5652,7 +5866,7 @@ var require_avs_pb = __commonJS({
|
|
|
5652
5866
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5653
5867
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5654
5868
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5655
|
-
|
|
5869
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5656
5870
|
stepsList: jspb.Message.toObjectList(
|
|
5657
5871
|
msg.getStepsList(),
|
|
5658
5872
|
proto.aggregator.Execution.Step.toObject,
|
|
@@ -5662,7 +5876,8 @@ var require_avs_pb = __commonJS({
|
|
|
5662
5876
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
5663
5877
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
5664
5878
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
5665
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f)
|
|
5879
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
5880
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
5666
5881
|
};
|
|
5667
5882
|
if (includeInstance) {
|
|
5668
5883
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5718,9 +5933,11 @@ var require_avs_pb = __commonJS({
|
|
|
5718
5933
|
msg.setError(value);
|
|
5719
5934
|
break;
|
|
5720
5935
|
case 6:
|
|
5721
|
-
var value =
|
|
5722
|
-
|
|
5723
|
-
|
|
5936
|
+
var value = (
|
|
5937
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
5938
|
+
reader.readEnum()
|
|
5939
|
+
);
|
|
5940
|
+
msg.setTriggerType(value);
|
|
5724
5941
|
break;
|
|
5725
5942
|
case 8:
|
|
5726
5943
|
var value = new proto.aggregator.Execution.Step();
|
|
@@ -5754,6 +5971,11 @@ var require_avs_pb = __commonJS({
|
|
|
5754
5971
|
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
5755
5972
|
msg.setEventTrigger(value);
|
|
5756
5973
|
break;
|
|
5974
|
+
case 14:
|
|
5975
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
5976
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
5977
|
+
msg.setManualTrigger(value);
|
|
5978
|
+
break;
|
|
5757
5979
|
default:
|
|
5758
5980
|
reader.skipField();
|
|
5759
5981
|
break;
|
|
@@ -5803,12 +6025,11 @@ var require_avs_pb = __commonJS({
|
|
|
5803
6025
|
f
|
|
5804
6026
|
);
|
|
5805
6027
|
}
|
|
5806
|
-
f = message.
|
|
5807
|
-
if (f
|
|
5808
|
-
writer.
|
|
6028
|
+
f = message.getTriggerType();
|
|
6029
|
+
if (f !== 0) {
|
|
6030
|
+
writer.writeEnum(
|
|
5809
6031
|
6,
|
|
5810
|
-
f
|
|
5811
|
-
proto.aggregator.TriggerReason.serializeBinaryToWriter
|
|
6032
|
+
f
|
|
5812
6033
|
);
|
|
5813
6034
|
}
|
|
5814
6035
|
f = message.getStepsList();
|
|
@@ -5858,6 +6079,14 @@ var require_avs_pb = __commonJS({
|
|
|
5858
6079
|
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
5859
6080
|
);
|
|
5860
6081
|
}
|
|
6082
|
+
f = message.getManualTrigger();
|
|
6083
|
+
if (f != null) {
|
|
6084
|
+
writer.writeMessage(
|
|
6085
|
+
14,
|
|
6086
|
+
f,
|
|
6087
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6088
|
+
);
|
|
6089
|
+
}
|
|
5861
6090
|
};
|
|
5862
6091
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
5863
6092
|
proto.aggregator.Execution.Step.oneofGroups_ = [[3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
@@ -6399,20 +6628,14 @@ var require_avs_pb = __commonJS({
|
|
|
6399
6628
|
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6400
6629
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6401
6630
|
};
|
|
6402
|
-
proto.aggregator.Execution.prototype.
|
|
6631
|
+
proto.aggregator.Execution.prototype.getTriggerType = function() {
|
|
6403
6632
|
return (
|
|
6404
|
-
/** @type{
|
|
6405
|
-
jspb.Message.
|
|
6633
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
6634
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
6406
6635
|
);
|
|
6407
6636
|
};
|
|
6408
|
-
proto.aggregator.Execution.prototype.
|
|
6409
|
-
return jspb.Message.
|
|
6410
|
-
};
|
|
6411
|
-
proto.aggregator.Execution.prototype.clearReason = function() {
|
|
6412
|
-
return this.setReason(void 0);
|
|
6413
|
-
};
|
|
6414
|
-
proto.aggregator.Execution.prototype.hasReason = function() {
|
|
6415
|
-
return jspb.Message.getField(this, 6) != null;
|
|
6637
|
+
proto.aggregator.Execution.prototype.setTriggerType = function(value) {
|
|
6638
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
6416
6639
|
};
|
|
6417
6640
|
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6418
6641
|
return (
|
|
@@ -6498,6 +6721,21 @@ var require_avs_pb = __commonJS({
|
|
|
6498
6721
|
proto.aggregator.Execution.prototype.hasEventTrigger = function() {
|
|
6499
6722
|
return jspb.Message.getField(this, 13) != null;
|
|
6500
6723
|
};
|
|
6724
|
+
proto.aggregator.Execution.prototype.getManualTrigger = function() {
|
|
6725
|
+
return (
|
|
6726
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
6727
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 14)
|
|
6728
|
+
);
|
|
6729
|
+
};
|
|
6730
|
+
proto.aggregator.Execution.prototype.setManualTrigger = function(value) {
|
|
6731
|
+
return jspb.Message.setOneofWrapperField(this, 14, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6732
|
+
};
|
|
6733
|
+
proto.aggregator.Execution.prototype.clearManualTrigger = function() {
|
|
6734
|
+
return this.setManualTrigger(void 0);
|
|
6735
|
+
};
|
|
6736
|
+
proto.aggregator.Execution.prototype.hasManualTrigger = function() {
|
|
6737
|
+
return jspb.Message.getField(this, 14) != null;
|
|
6738
|
+
};
|
|
6501
6739
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
6502
6740
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6503
6741
|
proto.aggregator.Task.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8430,7 +8668,10 @@ var require_avs_pb = __commonJS({
|
|
|
8430
8668
|
};
|
|
8431
8669
|
proto.aggregator.KeyResp.toObject = function(includeInstance, msg) {
|
|
8432
8670
|
var f, obj = {
|
|
8433
|
-
|
|
8671
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8672
|
+
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8673
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8674
|
+
expiry: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
8434
8675
|
};
|
|
8435
8676
|
if (includeInstance) {
|
|
8436
8677
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8451,12 +8692,33 @@ var require_avs_pb = __commonJS({
|
|
|
8451
8692
|
var field = reader.getFieldNumber();
|
|
8452
8693
|
switch (field) {
|
|
8453
8694
|
case 1:
|
|
8695
|
+
var value = (
|
|
8696
|
+
/** @type {string} */
|
|
8697
|
+
reader.readString()
|
|
8698
|
+
);
|
|
8699
|
+
msg.setAddress(value);
|
|
8700
|
+
break;
|
|
8701
|
+
case 2:
|
|
8454
8702
|
var value = (
|
|
8455
8703
|
/** @type {string} */
|
|
8456
8704
|
reader.readString()
|
|
8457
8705
|
);
|
|
8458
8706
|
msg.setKey(value);
|
|
8459
8707
|
break;
|
|
8708
|
+
case 3:
|
|
8709
|
+
var value = (
|
|
8710
|
+
/** @type {string} */
|
|
8711
|
+
reader.readString()
|
|
8712
|
+
);
|
|
8713
|
+
msg.setMessage(value);
|
|
8714
|
+
break;
|
|
8715
|
+
case 4:
|
|
8716
|
+
var value = (
|
|
8717
|
+
/** @type {number} */
|
|
8718
|
+
reader.readUint64()
|
|
8719
|
+
);
|
|
8720
|
+
msg.setExpiry(value);
|
|
8721
|
+
break;
|
|
8460
8722
|
default:
|
|
8461
8723
|
reader.skipField();
|
|
8462
8724
|
break;
|
|
@@ -8471,183 +8733,71 @@ var require_avs_pb = __commonJS({
|
|
|
8471
8733
|
};
|
|
8472
8734
|
proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
|
|
8473
8735
|
var f = void 0;
|
|
8474
|
-
f = message.
|
|
8736
|
+
f = message.getAddress();
|
|
8475
8737
|
if (f.length > 0) {
|
|
8476
8738
|
writer.writeString(
|
|
8477
8739
|
1,
|
|
8478
8740
|
f
|
|
8479
8741
|
);
|
|
8480
8742
|
}
|
|
8743
|
+
f = message.getKey();
|
|
8744
|
+
if (f.length > 0) {
|
|
8745
|
+
writer.writeString(
|
|
8746
|
+
2,
|
|
8747
|
+
f
|
|
8748
|
+
);
|
|
8749
|
+
}
|
|
8750
|
+
f = message.getMessage();
|
|
8751
|
+
if (f.length > 0) {
|
|
8752
|
+
writer.writeString(
|
|
8753
|
+
3,
|
|
8754
|
+
f
|
|
8755
|
+
);
|
|
8756
|
+
}
|
|
8757
|
+
f = message.getExpiry();
|
|
8758
|
+
if (f !== 0) {
|
|
8759
|
+
writer.writeUint64(
|
|
8760
|
+
4,
|
|
8761
|
+
f
|
|
8762
|
+
);
|
|
8763
|
+
}
|
|
8481
8764
|
};
|
|
8482
|
-
proto.aggregator.KeyResp.prototype.
|
|
8765
|
+
proto.aggregator.KeyResp.prototype.getAddress = function() {
|
|
8483
8766
|
return (
|
|
8484
8767
|
/** @type {string} */
|
|
8485
8768
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8486
8769
|
);
|
|
8487
8770
|
};
|
|
8488
|
-
proto.aggregator.KeyResp.prototype.
|
|
8771
|
+
proto.aggregator.KeyResp.prototype.setAddress = function(value) {
|
|
8489
8772
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8490
8773
|
};
|
|
8491
|
-
|
|
8492
|
-
proto.aggregator.TriggerReason.prototype.toObject = function(opt_includeInstance) {
|
|
8493
|
-
return proto.aggregator.TriggerReason.toObject(opt_includeInstance, this);
|
|
8494
|
-
};
|
|
8495
|
-
proto.aggregator.TriggerReason.toObject = function(includeInstance, msg) {
|
|
8496
|
-
var f, obj = {
|
|
8497
|
-
blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
8498
|
-
logIndex: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8499
|
-
txHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8500
|
-
epoch: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
8501
|
-
type: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
8502
|
-
};
|
|
8503
|
-
if (includeInstance) {
|
|
8504
|
-
obj.$jspbMessageInstance = msg;
|
|
8505
|
-
}
|
|
8506
|
-
return obj;
|
|
8507
|
-
};
|
|
8508
|
-
}
|
|
8509
|
-
proto.aggregator.TriggerReason.deserializeBinary = function(bytes) {
|
|
8510
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
8511
|
-
var msg = new proto.aggregator.TriggerReason();
|
|
8512
|
-
return proto.aggregator.TriggerReason.deserializeBinaryFromReader(msg, reader);
|
|
8513
|
-
};
|
|
8514
|
-
proto.aggregator.TriggerReason.deserializeBinaryFromReader = function(msg, reader) {
|
|
8515
|
-
while (reader.nextField()) {
|
|
8516
|
-
if (reader.isEndGroup()) {
|
|
8517
|
-
break;
|
|
8518
|
-
}
|
|
8519
|
-
var field = reader.getFieldNumber();
|
|
8520
|
-
switch (field) {
|
|
8521
|
-
case 1:
|
|
8522
|
-
var value = (
|
|
8523
|
-
/** @type {number} */
|
|
8524
|
-
reader.readUint64()
|
|
8525
|
-
);
|
|
8526
|
-
msg.setBlockNumber(value);
|
|
8527
|
-
break;
|
|
8528
|
-
case 2:
|
|
8529
|
-
var value = (
|
|
8530
|
-
/** @type {number} */
|
|
8531
|
-
reader.readUint64()
|
|
8532
|
-
);
|
|
8533
|
-
msg.setLogIndex(value);
|
|
8534
|
-
break;
|
|
8535
|
-
case 3:
|
|
8536
|
-
var value = (
|
|
8537
|
-
/** @type {string} */
|
|
8538
|
-
reader.readString()
|
|
8539
|
-
);
|
|
8540
|
-
msg.setTxHash(value);
|
|
8541
|
-
break;
|
|
8542
|
-
case 4:
|
|
8543
|
-
var value = (
|
|
8544
|
-
/** @type {number} */
|
|
8545
|
-
reader.readUint64()
|
|
8546
|
-
);
|
|
8547
|
-
msg.setEpoch(value);
|
|
8548
|
-
break;
|
|
8549
|
-
case 5:
|
|
8550
|
-
var value = (
|
|
8551
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
8552
|
-
reader.readEnum()
|
|
8553
|
-
);
|
|
8554
|
-
msg.setType(value);
|
|
8555
|
-
break;
|
|
8556
|
-
default:
|
|
8557
|
-
reader.skipField();
|
|
8558
|
-
break;
|
|
8559
|
-
}
|
|
8560
|
-
}
|
|
8561
|
-
return msg;
|
|
8562
|
-
};
|
|
8563
|
-
proto.aggregator.TriggerReason.prototype.serializeBinary = function() {
|
|
8564
|
-
var writer = new jspb.BinaryWriter();
|
|
8565
|
-
proto.aggregator.TriggerReason.serializeBinaryToWriter(this, writer);
|
|
8566
|
-
return writer.getResultBuffer();
|
|
8567
|
-
};
|
|
8568
|
-
proto.aggregator.TriggerReason.serializeBinaryToWriter = function(message, writer) {
|
|
8569
|
-
var f = void 0;
|
|
8570
|
-
f = message.getBlockNumber();
|
|
8571
|
-
if (f !== 0) {
|
|
8572
|
-
writer.writeUint64(
|
|
8573
|
-
1,
|
|
8574
|
-
f
|
|
8575
|
-
);
|
|
8576
|
-
}
|
|
8577
|
-
f = message.getLogIndex();
|
|
8578
|
-
if (f !== 0) {
|
|
8579
|
-
writer.writeUint64(
|
|
8580
|
-
2,
|
|
8581
|
-
f
|
|
8582
|
-
);
|
|
8583
|
-
}
|
|
8584
|
-
f = message.getTxHash();
|
|
8585
|
-
if (f.length > 0) {
|
|
8586
|
-
writer.writeString(
|
|
8587
|
-
3,
|
|
8588
|
-
f
|
|
8589
|
-
);
|
|
8590
|
-
}
|
|
8591
|
-
f = message.getEpoch();
|
|
8592
|
-
if (f !== 0) {
|
|
8593
|
-
writer.writeUint64(
|
|
8594
|
-
4,
|
|
8595
|
-
f
|
|
8596
|
-
);
|
|
8597
|
-
}
|
|
8598
|
-
f = message.getType();
|
|
8599
|
-
if (f !== 0) {
|
|
8600
|
-
writer.writeEnum(
|
|
8601
|
-
5,
|
|
8602
|
-
f
|
|
8603
|
-
);
|
|
8604
|
-
}
|
|
8605
|
-
};
|
|
8606
|
-
proto.aggregator.TriggerReason.prototype.getBlockNumber = function() {
|
|
8607
|
-
return (
|
|
8608
|
-
/** @type {number} */
|
|
8609
|
-
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
8610
|
-
);
|
|
8611
|
-
};
|
|
8612
|
-
proto.aggregator.TriggerReason.prototype.setBlockNumber = function(value) {
|
|
8613
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
8614
|
-
};
|
|
8615
|
-
proto.aggregator.TriggerReason.prototype.getLogIndex = function() {
|
|
8774
|
+
proto.aggregator.KeyResp.prototype.getKey = function() {
|
|
8616
8775
|
return (
|
|
8617
|
-
/** @type {
|
|
8618
|
-
jspb.Message.getFieldWithDefault(this, 2,
|
|
8776
|
+
/** @type {string} */
|
|
8777
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
8619
8778
|
);
|
|
8620
8779
|
};
|
|
8621
|
-
proto.aggregator.
|
|
8622
|
-
return jspb.Message.
|
|
8780
|
+
proto.aggregator.KeyResp.prototype.setKey = function(value) {
|
|
8781
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8623
8782
|
};
|
|
8624
|
-
proto.aggregator.
|
|
8783
|
+
proto.aggregator.KeyResp.prototype.getMessage = function() {
|
|
8625
8784
|
return (
|
|
8626
8785
|
/** @type {string} */
|
|
8627
8786
|
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
8628
8787
|
);
|
|
8629
8788
|
};
|
|
8630
|
-
proto.aggregator.
|
|
8789
|
+
proto.aggregator.KeyResp.prototype.setMessage = function(value) {
|
|
8631
8790
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8632
8791
|
};
|
|
8633
|
-
proto.aggregator.
|
|
8792
|
+
proto.aggregator.KeyResp.prototype.getExpiry = function() {
|
|
8634
8793
|
return (
|
|
8635
8794
|
/** @type {number} */
|
|
8636
8795
|
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
8637
8796
|
);
|
|
8638
8797
|
};
|
|
8639
|
-
proto.aggregator.
|
|
8798
|
+
proto.aggregator.KeyResp.prototype.setExpiry = function(value) {
|
|
8640
8799
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
8641
8800
|
};
|
|
8642
|
-
proto.aggregator.TriggerReason.prototype.getType = function() {
|
|
8643
|
-
return (
|
|
8644
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
8645
|
-
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
8646
|
-
);
|
|
8647
|
-
};
|
|
8648
|
-
proto.aggregator.TriggerReason.prototype.setType = function(value) {
|
|
8649
|
-
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
8650
|
-
};
|
|
8651
8801
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8652
8802
|
proto.aggregator.GetWalletReq.prototype.toObject = function(opt_includeInstance) {
|
|
8653
8803
|
return proto.aggregator.GetWalletReq.toObject(opt_includeInstance, this);
|
|
@@ -9104,15 +9254,35 @@ var require_avs_pb = __commonJS({
|
|
|
9104
9254
|
proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
|
|
9105
9255
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
9106
9256
|
};
|
|
9257
|
+
proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
|
|
9258
|
+
proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
|
|
9259
|
+
TRIGGER_OUTPUT_NOT_SET: 0,
|
|
9260
|
+
BLOCK_TRIGGER: 3,
|
|
9261
|
+
FIXED_TIME_TRIGGER: 4,
|
|
9262
|
+
CRON_TRIGGER: 5,
|
|
9263
|
+
EVENT_TRIGGER: 6,
|
|
9264
|
+
MANUAL_TRIGGER: 7
|
|
9265
|
+
};
|
|
9266
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerOutputCase = function() {
|
|
9267
|
+
return (
|
|
9268
|
+
/** @type {proto.aggregator.TriggerTaskReq.TriggerOutputCase} */
|
|
9269
|
+
jspb.Message.computeOneofCase(this, proto.aggregator.TriggerTaskReq.oneofGroups_[0])
|
|
9270
|
+
);
|
|
9271
|
+
};
|
|
9107
9272
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9108
|
-
proto.aggregator.
|
|
9109
|
-
return proto.aggregator.
|
|
9273
|
+
proto.aggregator.TriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
9274
|
+
return proto.aggregator.TriggerTaskReq.toObject(opt_includeInstance, this);
|
|
9110
9275
|
};
|
|
9111
|
-
proto.aggregator.
|
|
9276
|
+
proto.aggregator.TriggerTaskReq.toObject = function(includeInstance, msg) {
|
|
9112
9277
|
var f, obj = {
|
|
9113
9278
|
taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9114
|
-
|
|
9115
|
-
|
|
9279
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9280
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
9281
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
9282
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
9283
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
9284
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
9285
|
+
isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
9116
9286
|
};
|
|
9117
9287
|
if (includeInstance) {
|
|
9118
9288
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9120,12 +9290,12 @@ var require_avs_pb = __commonJS({
|
|
|
9120
9290
|
return obj;
|
|
9121
9291
|
};
|
|
9122
9292
|
}
|
|
9123
|
-
proto.aggregator.
|
|
9293
|
+
proto.aggregator.TriggerTaskReq.deserializeBinary = function(bytes) {
|
|
9124
9294
|
var reader = new jspb.BinaryReader(bytes);
|
|
9125
|
-
var msg = new proto.aggregator.
|
|
9126
|
-
return proto.aggregator.
|
|
9295
|
+
var msg = new proto.aggregator.TriggerTaskReq();
|
|
9296
|
+
return proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
9127
9297
|
};
|
|
9128
|
-
proto.aggregator.
|
|
9298
|
+
proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
9129
9299
|
while (reader.nextField()) {
|
|
9130
9300
|
if (reader.isEndGroup()) {
|
|
9131
9301
|
break;
|
|
@@ -9140,11 +9310,38 @@ var require_avs_pb = __commonJS({
|
|
|
9140
9310
|
msg.setTaskId(value);
|
|
9141
9311
|
break;
|
|
9142
9312
|
case 2:
|
|
9143
|
-
var value =
|
|
9144
|
-
|
|
9145
|
-
|
|
9313
|
+
var value = (
|
|
9314
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
9315
|
+
reader.readEnum()
|
|
9316
|
+
);
|
|
9317
|
+
msg.setTriggerType(value);
|
|
9146
9318
|
break;
|
|
9147
9319
|
case 3:
|
|
9320
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
9321
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
9322
|
+
msg.setBlockTrigger(value);
|
|
9323
|
+
break;
|
|
9324
|
+
case 4:
|
|
9325
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
9326
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
9327
|
+
msg.setFixedTimeTrigger(value);
|
|
9328
|
+
break;
|
|
9329
|
+
case 5:
|
|
9330
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
9331
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
9332
|
+
msg.setCronTrigger(value);
|
|
9333
|
+
break;
|
|
9334
|
+
case 6:
|
|
9335
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
9336
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
9337
|
+
msg.setEventTrigger(value);
|
|
9338
|
+
break;
|
|
9339
|
+
case 7:
|
|
9340
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
9341
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
9342
|
+
msg.setManualTrigger(value);
|
|
9343
|
+
break;
|
|
9344
|
+
case 8:
|
|
9148
9345
|
var value = (
|
|
9149
9346
|
/** @type {boolean} */
|
|
9150
9347
|
reader.readBool()
|
|
@@ -9158,12 +9355,12 @@ var require_avs_pb = __commonJS({
|
|
|
9158
9355
|
}
|
|
9159
9356
|
return msg;
|
|
9160
9357
|
};
|
|
9161
|
-
proto.aggregator.
|
|
9358
|
+
proto.aggregator.TriggerTaskReq.prototype.serializeBinary = function() {
|
|
9162
9359
|
var writer = new jspb.BinaryWriter();
|
|
9163
|
-
proto.aggregator.
|
|
9360
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter(this, writer);
|
|
9164
9361
|
return writer.getResultBuffer();
|
|
9165
9362
|
};
|
|
9166
|
-
proto.aggregator.
|
|
9363
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
9167
9364
|
var f = void 0;
|
|
9168
9365
|
f = message.getTaskId();
|
|
9169
9366
|
if (f.length > 0) {
|
|
@@ -9172,60 +9369,168 @@ var require_avs_pb = __commonJS({
|
|
|
9172
9369
|
f
|
|
9173
9370
|
);
|
|
9174
9371
|
}
|
|
9175
|
-
f = message.
|
|
9372
|
+
f = message.getTriggerType();
|
|
9373
|
+
if (f !== 0) {
|
|
9374
|
+
writer.writeEnum(
|
|
9375
|
+
2,
|
|
9376
|
+
f
|
|
9377
|
+
);
|
|
9378
|
+
}
|
|
9379
|
+
f = message.getBlockTrigger();
|
|
9380
|
+
if (f != null) {
|
|
9381
|
+
writer.writeMessage(
|
|
9382
|
+
3,
|
|
9383
|
+
f,
|
|
9384
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
9385
|
+
);
|
|
9386
|
+
}
|
|
9387
|
+
f = message.getFixedTimeTrigger();
|
|
9176
9388
|
if (f != null) {
|
|
9177
9389
|
writer.writeMessage(
|
|
9178
|
-
|
|
9390
|
+
4,
|
|
9391
|
+
f,
|
|
9392
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
9393
|
+
);
|
|
9394
|
+
}
|
|
9395
|
+
f = message.getCronTrigger();
|
|
9396
|
+
if (f != null) {
|
|
9397
|
+
writer.writeMessage(
|
|
9398
|
+
5,
|
|
9399
|
+
f,
|
|
9400
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
9401
|
+
);
|
|
9402
|
+
}
|
|
9403
|
+
f = message.getEventTrigger();
|
|
9404
|
+
if (f != null) {
|
|
9405
|
+
writer.writeMessage(
|
|
9406
|
+
6,
|
|
9407
|
+
f,
|
|
9408
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
9409
|
+
);
|
|
9410
|
+
}
|
|
9411
|
+
f = message.getManualTrigger();
|
|
9412
|
+
if (f != null) {
|
|
9413
|
+
writer.writeMessage(
|
|
9414
|
+
7,
|
|
9179
9415
|
f,
|
|
9180
|
-
proto.aggregator.
|
|
9416
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
9181
9417
|
);
|
|
9182
9418
|
}
|
|
9183
9419
|
f = message.getIsBlocking();
|
|
9184
9420
|
if (f) {
|
|
9185
9421
|
writer.writeBool(
|
|
9186
|
-
|
|
9422
|
+
8,
|
|
9187
9423
|
f
|
|
9188
9424
|
);
|
|
9189
9425
|
}
|
|
9190
9426
|
};
|
|
9191
|
-
proto.aggregator.
|
|
9427
|
+
proto.aggregator.TriggerTaskReq.prototype.getTaskId = function() {
|
|
9192
9428
|
return (
|
|
9193
9429
|
/** @type {string} */
|
|
9194
9430
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
9195
9431
|
);
|
|
9196
9432
|
};
|
|
9197
|
-
proto.aggregator.
|
|
9433
|
+
proto.aggregator.TriggerTaskReq.prototype.setTaskId = function(value) {
|
|
9198
9434
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9199
9435
|
};
|
|
9200
|
-
proto.aggregator.
|
|
9436
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerType = function() {
|
|
9201
9437
|
return (
|
|
9202
|
-
/** @type{
|
|
9203
|
-
jspb.Message.
|
|
9438
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
9439
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9204
9440
|
);
|
|
9205
9441
|
};
|
|
9206
|
-
proto.aggregator.
|
|
9207
|
-
return jspb.Message.
|
|
9442
|
+
proto.aggregator.TriggerTaskReq.prototype.setTriggerType = function(value) {
|
|
9443
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
9444
|
+
};
|
|
9445
|
+
proto.aggregator.TriggerTaskReq.prototype.getBlockTrigger = function() {
|
|
9446
|
+
return (
|
|
9447
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
9448
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 3)
|
|
9449
|
+
);
|
|
9208
9450
|
};
|
|
9209
|
-
proto.aggregator.
|
|
9210
|
-
return
|
|
9451
|
+
proto.aggregator.TriggerTaskReq.prototype.setBlockTrigger = function(value) {
|
|
9452
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9211
9453
|
};
|
|
9212
|
-
proto.aggregator.
|
|
9213
|
-
return
|
|
9454
|
+
proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
|
|
9455
|
+
return this.setBlockTrigger(void 0);
|
|
9456
|
+
};
|
|
9457
|
+
proto.aggregator.TriggerTaskReq.prototype.hasBlockTrigger = function() {
|
|
9458
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9459
|
+
};
|
|
9460
|
+
proto.aggregator.TriggerTaskReq.prototype.getFixedTimeTrigger = function() {
|
|
9461
|
+
return (
|
|
9462
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
9463
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 4)
|
|
9464
|
+
);
|
|
9465
|
+
};
|
|
9466
|
+
proto.aggregator.TriggerTaskReq.prototype.setFixedTimeTrigger = function(value) {
|
|
9467
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9468
|
+
};
|
|
9469
|
+
proto.aggregator.TriggerTaskReq.prototype.clearFixedTimeTrigger = function() {
|
|
9470
|
+
return this.setFixedTimeTrigger(void 0);
|
|
9471
|
+
};
|
|
9472
|
+
proto.aggregator.TriggerTaskReq.prototype.hasFixedTimeTrigger = function() {
|
|
9473
|
+
return jspb.Message.getField(this, 4) != null;
|
|
9474
|
+
};
|
|
9475
|
+
proto.aggregator.TriggerTaskReq.prototype.getCronTrigger = function() {
|
|
9476
|
+
return (
|
|
9477
|
+
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
9478
|
+
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 5)
|
|
9479
|
+
);
|
|
9480
|
+
};
|
|
9481
|
+
proto.aggregator.TriggerTaskReq.prototype.setCronTrigger = function(value) {
|
|
9482
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9483
|
+
};
|
|
9484
|
+
proto.aggregator.TriggerTaskReq.prototype.clearCronTrigger = function() {
|
|
9485
|
+
return this.setCronTrigger(void 0);
|
|
9486
|
+
};
|
|
9487
|
+
proto.aggregator.TriggerTaskReq.prototype.hasCronTrigger = function() {
|
|
9488
|
+
return jspb.Message.getField(this, 5) != null;
|
|
9489
|
+
};
|
|
9490
|
+
proto.aggregator.TriggerTaskReq.prototype.getEventTrigger = function() {
|
|
9491
|
+
return (
|
|
9492
|
+
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
9493
|
+
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 6)
|
|
9494
|
+
);
|
|
9495
|
+
};
|
|
9496
|
+
proto.aggregator.TriggerTaskReq.prototype.setEventTrigger = function(value) {
|
|
9497
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9498
|
+
};
|
|
9499
|
+
proto.aggregator.TriggerTaskReq.prototype.clearEventTrigger = function() {
|
|
9500
|
+
return this.setEventTrigger(void 0);
|
|
9501
|
+
};
|
|
9502
|
+
proto.aggregator.TriggerTaskReq.prototype.hasEventTrigger = function() {
|
|
9503
|
+
return jspb.Message.getField(this, 6) != null;
|
|
9504
|
+
};
|
|
9505
|
+
proto.aggregator.TriggerTaskReq.prototype.getManualTrigger = function() {
|
|
9506
|
+
return (
|
|
9507
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
9508
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 7)
|
|
9509
|
+
);
|
|
9510
|
+
};
|
|
9511
|
+
proto.aggregator.TriggerTaskReq.prototype.setManualTrigger = function(value) {
|
|
9512
|
+
return jspb.Message.setOneofWrapperField(this, 7, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9513
|
+
};
|
|
9514
|
+
proto.aggregator.TriggerTaskReq.prototype.clearManualTrigger = function() {
|
|
9515
|
+
return this.setManualTrigger(void 0);
|
|
9516
|
+
};
|
|
9517
|
+
proto.aggregator.TriggerTaskReq.prototype.hasManualTrigger = function() {
|
|
9518
|
+
return jspb.Message.getField(this, 7) != null;
|
|
9214
9519
|
};
|
|
9215
|
-
proto.aggregator.
|
|
9520
|
+
proto.aggregator.TriggerTaskReq.prototype.getIsBlocking = function() {
|
|
9216
9521
|
return (
|
|
9217
9522
|
/** @type {boolean} */
|
|
9218
|
-
jspb.Message.getBooleanFieldWithDefault(this,
|
|
9523
|
+
jspb.Message.getBooleanFieldWithDefault(this, 8, false)
|
|
9219
9524
|
);
|
|
9220
9525
|
};
|
|
9221
|
-
proto.aggregator.
|
|
9222
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
9526
|
+
proto.aggregator.TriggerTaskReq.prototype.setIsBlocking = function(value) {
|
|
9527
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
9223
9528
|
};
|
|
9224
9529
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9225
|
-
proto.aggregator.
|
|
9226
|
-
return proto.aggregator.
|
|
9530
|
+
proto.aggregator.TriggerTaskResp.prototype.toObject = function(opt_includeInstance) {
|
|
9531
|
+
return proto.aggregator.TriggerTaskResp.toObject(opt_includeInstance, this);
|
|
9227
9532
|
};
|
|
9228
|
-
proto.aggregator.
|
|
9533
|
+
proto.aggregator.TriggerTaskResp.toObject = function(includeInstance, msg) {
|
|
9229
9534
|
var f, obj = {
|
|
9230
9535
|
executionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9231
9536
|
status: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
@@ -9236,12 +9541,12 @@ var require_avs_pb = __commonJS({
|
|
|
9236
9541
|
return obj;
|
|
9237
9542
|
};
|
|
9238
9543
|
}
|
|
9239
|
-
proto.aggregator.
|
|
9544
|
+
proto.aggregator.TriggerTaskResp.deserializeBinary = function(bytes) {
|
|
9240
9545
|
var reader = new jspb.BinaryReader(bytes);
|
|
9241
|
-
var msg = new proto.aggregator.
|
|
9242
|
-
return proto.aggregator.
|
|
9546
|
+
var msg = new proto.aggregator.TriggerTaskResp();
|
|
9547
|
+
return proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader(msg, reader);
|
|
9243
9548
|
};
|
|
9244
|
-
proto.aggregator.
|
|
9549
|
+
proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
9245
9550
|
while (reader.nextField()) {
|
|
9246
9551
|
if (reader.isEndGroup()) {
|
|
9247
9552
|
break;
|
|
@@ -9269,12 +9574,12 @@ var require_avs_pb = __commonJS({
|
|
|
9269
9574
|
}
|
|
9270
9575
|
return msg;
|
|
9271
9576
|
};
|
|
9272
|
-
proto.aggregator.
|
|
9577
|
+
proto.aggregator.TriggerTaskResp.prototype.serializeBinary = function() {
|
|
9273
9578
|
var writer = new jspb.BinaryWriter();
|
|
9274
|
-
proto.aggregator.
|
|
9579
|
+
proto.aggregator.TriggerTaskResp.serializeBinaryToWriter(this, writer);
|
|
9275
9580
|
return writer.getResultBuffer();
|
|
9276
9581
|
};
|
|
9277
|
-
proto.aggregator.
|
|
9582
|
+
proto.aggregator.TriggerTaskResp.serializeBinaryToWriter = function(message, writer) {
|
|
9278
9583
|
var f = void 0;
|
|
9279
9584
|
f = message.getExecutionId();
|
|
9280
9585
|
if (f.length > 0) {
|
|
@@ -9291,22 +9596,22 @@ var require_avs_pb = __commonJS({
|
|
|
9291
9596
|
);
|
|
9292
9597
|
}
|
|
9293
9598
|
};
|
|
9294
|
-
proto.aggregator.
|
|
9599
|
+
proto.aggregator.TriggerTaskResp.prototype.getExecutionId = function() {
|
|
9295
9600
|
return (
|
|
9296
9601
|
/** @type {string} */
|
|
9297
9602
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
9298
9603
|
);
|
|
9299
9604
|
};
|
|
9300
|
-
proto.aggregator.
|
|
9605
|
+
proto.aggregator.TriggerTaskResp.prototype.setExecutionId = function(value) {
|
|
9301
9606
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9302
9607
|
};
|
|
9303
|
-
proto.aggregator.
|
|
9608
|
+
proto.aggregator.TriggerTaskResp.prototype.getStatus = function() {
|
|
9304
9609
|
return (
|
|
9305
9610
|
/** @type {!proto.aggregator.ExecutionStatus} */
|
|
9306
9611
|
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9307
9612
|
);
|
|
9308
9613
|
};
|
|
9309
|
-
proto.aggregator.
|
|
9614
|
+
proto.aggregator.TriggerTaskResp.prototype.setStatus = function(value) {
|
|
9310
9615
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
9311
9616
|
};
|
|
9312
9617
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -11463,13 +11768,14 @@ var require_avs_pb = __commonJS({
|
|
|
11463
11768
|
this.getTriggerConfigMap().clear();
|
|
11464
11769
|
return this;
|
|
11465
11770
|
};
|
|
11466
|
-
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13]];
|
|
11771
|
+
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
11467
11772
|
proto.aggregator.RunTriggerResp.OutputDataCase = {
|
|
11468
11773
|
OUTPUT_DATA_NOT_SET: 0,
|
|
11469
11774
|
BLOCK_TRIGGER: 10,
|
|
11470
11775
|
FIXED_TIME_TRIGGER: 11,
|
|
11471
11776
|
CRON_TRIGGER: 12,
|
|
11472
|
-
EVENT_TRIGGER: 13
|
|
11777
|
+
EVENT_TRIGGER: 13,
|
|
11778
|
+
MANUAL_TRIGGER: 14
|
|
11473
11779
|
};
|
|
11474
11780
|
proto.aggregator.RunTriggerResp.prototype.getOutputDataCase = function() {
|
|
11475
11781
|
return (
|
|
@@ -11489,7 +11795,8 @@ var require_avs_pb = __commonJS({
|
|
|
11489
11795
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
11490
11796
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
11491
11797
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
11492
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f)
|
|
11798
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
11799
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
11493
11800
|
};
|
|
11494
11801
|
if (includeInstance) {
|
|
11495
11802
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11550,6 +11857,11 @@ var require_avs_pb = __commonJS({
|
|
|
11550
11857
|
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
11551
11858
|
msg.setEventTrigger(value);
|
|
11552
11859
|
break;
|
|
11860
|
+
case 14:
|
|
11861
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
11862
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
11863
|
+
msg.setManualTrigger(value);
|
|
11864
|
+
break;
|
|
11553
11865
|
default:
|
|
11554
11866
|
reader.skipField();
|
|
11555
11867
|
break;
|
|
@@ -11617,6 +11929,14 @@ var require_avs_pb = __commonJS({
|
|
|
11617
11929
|
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
11618
11930
|
);
|
|
11619
11931
|
}
|
|
11932
|
+
f = message.getManualTrigger();
|
|
11933
|
+
if (f != null) {
|
|
11934
|
+
writer.writeMessage(
|
|
11935
|
+
14,
|
|
11936
|
+
f,
|
|
11937
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
11938
|
+
);
|
|
11939
|
+
}
|
|
11620
11940
|
};
|
|
11621
11941
|
proto.aggregator.RunTriggerResp.prototype.getSuccess = function() {
|
|
11622
11942
|
return (
|
|
@@ -11705,11 +12025,26 @@ var require_avs_pb = __commonJS({
|
|
|
11705
12025
|
proto.aggregator.RunTriggerResp.prototype.hasEventTrigger = function() {
|
|
11706
12026
|
return jspb.Message.getField(this, 13) != null;
|
|
11707
12027
|
};
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
12028
|
+
proto.aggregator.RunTriggerResp.prototype.getManualTrigger = function() {
|
|
12029
|
+
return (
|
|
12030
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
12031
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 14)
|
|
12032
|
+
);
|
|
12033
|
+
};
|
|
12034
|
+
proto.aggregator.RunTriggerResp.prototype.setManualTrigger = function(value) {
|
|
12035
|
+
return jspb.Message.setOneofWrapperField(this, 14, proto.aggregator.RunTriggerResp.oneofGroups_[0], value);
|
|
12036
|
+
};
|
|
12037
|
+
proto.aggregator.RunTriggerResp.prototype.clearManualTrigger = function() {
|
|
12038
|
+
return this.setManualTrigger(void 0);
|
|
12039
|
+
};
|
|
12040
|
+
proto.aggregator.RunTriggerResp.prototype.hasManualTrigger = function() {
|
|
12041
|
+
return jspb.Message.getField(this, 14) != null;
|
|
12042
|
+
};
|
|
12043
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12044
|
+
proto.aggregator.Evm.prototype.toObject = function(opt_includeInstance) {
|
|
12045
|
+
return proto.aggregator.Evm.toObject(opt_includeInstance, this);
|
|
12046
|
+
};
|
|
12047
|
+
proto.aggregator.Evm.toObject = function(includeInstance, msg) {
|
|
11713
12048
|
var f, obj = {};
|
|
11714
12049
|
if (includeInstance) {
|
|
11715
12050
|
obj.$jspbMessageInstance = msg;
|
|
@@ -12832,8 +13167,10 @@ var require_avs_pb = __commonJS({
|
|
|
12832
13167
|
EXECUTING: 4
|
|
12833
13168
|
};
|
|
12834
13169
|
proto.aggregator.ExecutionStatus = {
|
|
12835
|
-
|
|
12836
|
-
|
|
13170
|
+
EXECUTION_STATUS_UNSPECIFIED: 0,
|
|
13171
|
+
EXECUTION_STATUS_PENDING: 1,
|
|
13172
|
+
EXECUTION_STATUS_COMPLETED: 2,
|
|
13173
|
+
EXECUTION_STATUS_FAILED: 3
|
|
12837
13174
|
};
|
|
12838
13175
|
goog.object.extend(exports2, proto.aggregator);
|
|
12839
13176
|
}
|
|
@@ -12844,352 +13181,352 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
12844
13181
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
12845
13182
|
"use strict";
|
|
12846
13183
|
var grpc = require("@grpc/grpc-js");
|
|
12847
|
-
var
|
|
13184
|
+
var avs_pb24 = require_avs_pb();
|
|
12848
13185
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
12849
13186
|
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
12850
13187
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
12851
13188
|
var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
12852
13189
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
12853
|
-
if (!(arg instanceof
|
|
13190
|
+
if (!(arg instanceof avs_pb24.CreateOrUpdateSecretReq)) {
|
|
12854
13191
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
12855
13192
|
}
|
|
12856
13193
|
return Buffer.from(arg.serializeBinary());
|
|
12857
13194
|
}
|
|
12858
13195
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
12859
|
-
return
|
|
13196
|
+
return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12860
13197
|
}
|
|
12861
13198
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
12862
|
-
if (!(arg instanceof
|
|
13199
|
+
if (!(arg instanceof avs_pb24.CreateTaskReq)) {
|
|
12863
13200
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
12864
13201
|
}
|
|
12865
13202
|
return Buffer.from(arg.serializeBinary());
|
|
12866
13203
|
}
|
|
12867
13204
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
12868
|
-
return
|
|
13205
|
+
return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12869
13206
|
}
|
|
12870
13207
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
12871
|
-
if (!(arg instanceof
|
|
13208
|
+
if (!(arg instanceof avs_pb24.CreateTaskResp)) {
|
|
12872
13209
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
12873
13210
|
}
|
|
12874
13211
|
return Buffer.from(arg.serializeBinary());
|
|
12875
13212
|
}
|
|
12876
13213
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
12877
|
-
return
|
|
13214
|
+
return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12878
13215
|
}
|
|
12879
13216
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
12880
|
-
if (!(arg instanceof
|
|
13217
|
+
if (!(arg instanceof avs_pb24.DeleteSecretReq)) {
|
|
12881
13218
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
12882
13219
|
}
|
|
12883
13220
|
return Buffer.from(arg.serializeBinary());
|
|
12884
13221
|
}
|
|
12885
13222
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
12886
|
-
return
|
|
13223
|
+
return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12887
13224
|
}
|
|
12888
13225
|
function serialize_aggregator_Execution(arg) {
|
|
12889
|
-
if (!(arg instanceof
|
|
13226
|
+
if (!(arg instanceof avs_pb24.Execution)) {
|
|
12890
13227
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
12891
13228
|
}
|
|
12892
13229
|
return Buffer.from(arg.serializeBinary());
|
|
12893
13230
|
}
|
|
12894
13231
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
12895
|
-
return
|
|
13232
|
+
return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12896
13233
|
}
|
|
12897
13234
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
12898
|
-
if (!(arg instanceof
|
|
13235
|
+
if (!(arg instanceof avs_pb24.ExecutionReq)) {
|
|
12899
13236
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
12900
13237
|
}
|
|
12901
13238
|
return Buffer.from(arg.serializeBinary());
|
|
12902
13239
|
}
|
|
12903
13240
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
12904
|
-
return
|
|
13241
|
+
return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12905
13242
|
}
|
|
12906
13243
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
12907
|
-
if (!(arg instanceof
|
|
13244
|
+
if (!(arg instanceof avs_pb24.ExecutionStatusResp)) {
|
|
12908
13245
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
12909
13246
|
}
|
|
12910
13247
|
return Buffer.from(arg.serializeBinary());
|
|
12911
13248
|
}
|
|
12912
13249
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
12913
|
-
return
|
|
13250
|
+
return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12914
13251
|
}
|
|
12915
13252
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
12916
|
-
if (!(arg instanceof
|
|
13253
|
+
if (!(arg instanceof avs_pb24.GetExecutionCountReq)) {
|
|
12917
13254
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
12918
13255
|
}
|
|
12919
13256
|
return Buffer.from(arg.serializeBinary());
|
|
12920
13257
|
}
|
|
12921
13258
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
12922
|
-
return
|
|
13259
|
+
return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12923
13260
|
}
|
|
12924
13261
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
12925
|
-
if (!(arg instanceof
|
|
13262
|
+
if (!(arg instanceof avs_pb24.GetExecutionCountResp)) {
|
|
12926
13263
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
12927
13264
|
}
|
|
12928
13265
|
return Buffer.from(arg.serializeBinary());
|
|
12929
13266
|
}
|
|
12930
13267
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
12931
|
-
return
|
|
13268
|
+
return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12932
13269
|
}
|
|
12933
13270
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
12934
|
-
if (!(arg instanceof
|
|
13271
|
+
if (!(arg instanceof avs_pb24.GetExecutionStatsReq)) {
|
|
12935
13272
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
12936
13273
|
}
|
|
12937
13274
|
return Buffer.from(arg.serializeBinary());
|
|
12938
13275
|
}
|
|
12939
13276
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
12940
|
-
return
|
|
13277
|
+
return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12941
13278
|
}
|
|
12942
13279
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
12943
|
-
if (!(arg instanceof
|
|
13280
|
+
if (!(arg instanceof avs_pb24.GetExecutionStatsResp)) {
|
|
12944
13281
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
12945
13282
|
}
|
|
12946
13283
|
return Buffer.from(arg.serializeBinary());
|
|
12947
13284
|
}
|
|
12948
13285
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
12949
|
-
return
|
|
13286
|
+
return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12950
13287
|
}
|
|
12951
13288
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
12952
|
-
if (!(arg instanceof
|
|
13289
|
+
if (!(arg instanceof avs_pb24.GetKeyReq)) {
|
|
12953
13290
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
12954
13291
|
}
|
|
12955
13292
|
return Buffer.from(arg.serializeBinary());
|
|
12956
13293
|
}
|
|
12957
13294
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
12958
|
-
return
|
|
13295
|
+
return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12959
13296
|
}
|
|
12960
13297
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
12961
|
-
if (!(arg instanceof
|
|
13298
|
+
if (!(arg instanceof avs_pb24.GetSignatureFormatReq)) {
|
|
12962
13299
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
12963
13300
|
}
|
|
12964
13301
|
return Buffer.from(arg.serializeBinary());
|
|
12965
13302
|
}
|
|
12966
13303
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
12967
|
-
return
|
|
13304
|
+
return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12968
13305
|
}
|
|
12969
13306
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
12970
|
-
if (!(arg instanceof
|
|
13307
|
+
if (!(arg instanceof avs_pb24.GetSignatureFormatResp)) {
|
|
12971
13308
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
12972
13309
|
}
|
|
12973
13310
|
return Buffer.from(arg.serializeBinary());
|
|
12974
13311
|
}
|
|
12975
13312
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
12976
|
-
return
|
|
13313
|
+
return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12977
13314
|
}
|
|
12978
13315
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
12979
|
-
if (!(arg instanceof
|
|
13316
|
+
if (!(arg instanceof avs_pb24.GetWalletReq)) {
|
|
12980
13317
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
12981
13318
|
}
|
|
12982
13319
|
return Buffer.from(arg.serializeBinary());
|
|
12983
13320
|
}
|
|
12984
13321
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
12985
|
-
return
|
|
13322
|
+
return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12986
13323
|
}
|
|
12987
13324
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
12988
|
-
if (!(arg instanceof
|
|
13325
|
+
if (!(arg instanceof avs_pb24.GetWalletResp)) {
|
|
12989
13326
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
12990
13327
|
}
|
|
12991
13328
|
return Buffer.from(arg.serializeBinary());
|
|
12992
13329
|
}
|
|
12993
13330
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
12994
|
-
return
|
|
13331
|
+
return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12995
13332
|
}
|
|
12996
13333
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
12997
|
-
if (!(arg instanceof
|
|
13334
|
+
if (!(arg instanceof avs_pb24.GetWorkflowCountReq)) {
|
|
12998
13335
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
12999
13336
|
}
|
|
13000
13337
|
return Buffer.from(arg.serializeBinary());
|
|
13001
13338
|
}
|
|
13002
13339
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13003
|
-
return
|
|
13340
|
+
return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13004
13341
|
}
|
|
13005
13342
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13006
|
-
if (!(arg instanceof
|
|
13343
|
+
if (!(arg instanceof avs_pb24.GetWorkflowCountResp)) {
|
|
13007
13344
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13008
13345
|
}
|
|
13009
13346
|
return Buffer.from(arg.serializeBinary());
|
|
13010
13347
|
}
|
|
13011
13348
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13012
|
-
return
|
|
13349
|
+
return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13013
13350
|
}
|
|
13014
13351
|
function serialize_aggregator_IdReq(arg) {
|
|
13015
|
-
if (!(arg instanceof
|
|
13352
|
+
if (!(arg instanceof avs_pb24.IdReq)) {
|
|
13016
13353
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13017
13354
|
}
|
|
13018
13355
|
return Buffer.from(arg.serializeBinary());
|
|
13019
13356
|
}
|
|
13020
13357
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13021
|
-
return
|
|
13358
|
+
return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13022
13359
|
}
|
|
13023
13360
|
function serialize_aggregator_KeyResp(arg) {
|
|
13024
|
-
if (!(arg instanceof
|
|
13361
|
+
if (!(arg instanceof avs_pb24.KeyResp)) {
|
|
13025
13362
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13026
13363
|
}
|
|
13027
13364
|
return Buffer.from(arg.serializeBinary());
|
|
13028
13365
|
}
|
|
13029
13366
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13030
|
-
return
|
|
13367
|
+
return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13031
13368
|
}
|
|
13032
13369
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13033
|
-
if (!(arg instanceof
|
|
13370
|
+
if (!(arg instanceof avs_pb24.ListExecutionsReq)) {
|
|
13034
13371
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13035
13372
|
}
|
|
13036
13373
|
return Buffer.from(arg.serializeBinary());
|
|
13037
13374
|
}
|
|
13038
13375
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13039
|
-
return
|
|
13376
|
+
return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13040
13377
|
}
|
|
13041
13378
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13042
|
-
if (!(arg instanceof
|
|
13379
|
+
if (!(arg instanceof avs_pb24.ListExecutionsResp)) {
|
|
13043
13380
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13044
13381
|
}
|
|
13045
13382
|
return Buffer.from(arg.serializeBinary());
|
|
13046
13383
|
}
|
|
13047
13384
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13048
|
-
return
|
|
13385
|
+
return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13049
13386
|
}
|
|
13050
13387
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13051
|
-
if (!(arg instanceof
|
|
13388
|
+
if (!(arg instanceof avs_pb24.ListSecretsReq)) {
|
|
13052
13389
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13053
13390
|
}
|
|
13054
13391
|
return Buffer.from(arg.serializeBinary());
|
|
13055
13392
|
}
|
|
13056
13393
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13057
|
-
return
|
|
13394
|
+
return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13058
13395
|
}
|
|
13059
13396
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13060
|
-
if (!(arg instanceof
|
|
13397
|
+
if (!(arg instanceof avs_pb24.ListSecretsResp)) {
|
|
13061
13398
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13062
13399
|
}
|
|
13063
13400
|
return Buffer.from(arg.serializeBinary());
|
|
13064
13401
|
}
|
|
13065
13402
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13066
|
-
return
|
|
13403
|
+
return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13067
13404
|
}
|
|
13068
13405
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13069
|
-
if (!(arg instanceof
|
|
13406
|
+
if (!(arg instanceof avs_pb24.ListTasksReq)) {
|
|
13070
13407
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13071
13408
|
}
|
|
13072
13409
|
return Buffer.from(arg.serializeBinary());
|
|
13073
13410
|
}
|
|
13074
13411
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13075
|
-
return
|
|
13412
|
+
return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13076
13413
|
}
|
|
13077
13414
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13078
|
-
if (!(arg instanceof
|
|
13415
|
+
if (!(arg instanceof avs_pb24.ListTasksResp)) {
|
|
13079
13416
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13080
13417
|
}
|
|
13081
13418
|
return Buffer.from(arg.serializeBinary());
|
|
13082
13419
|
}
|
|
13083
13420
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13084
|
-
return
|
|
13421
|
+
return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13085
13422
|
}
|
|
13086
13423
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13087
|
-
if (!(arg instanceof
|
|
13424
|
+
if (!(arg instanceof avs_pb24.ListWalletReq)) {
|
|
13088
13425
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13089
13426
|
}
|
|
13090
13427
|
return Buffer.from(arg.serializeBinary());
|
|
13091
13428
|
}
|
|
13092
13429
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13093
|
-
return
|
|
13430
|
+
return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13094
13431
|
}
|
|
13095
13432
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13096
|
-
if (!(arg instanceof
|
|
13433
|
+
if (!(arg instanceof avs_pb24.ListWalletResp)) {
|
|
13097
13434
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13098
13435
|
}
|
|
13099
13436
|
return Buffer.from(arg.serializeBinary());
|
|
13100
13437
|
}
|
|
13101
13438
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13102
|
-
return
|
|
13439
|
+
return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13103
13440
|
}
|
|
13104
13441
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13105
|
-
if (!(arg instanceof
|
|
13442
|
+
if (!(arg instanceof avs_pb24.NonceRequest)) {
|
|
13106
13443
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13107
13444
|
}
|
|
13108
13445
|
return Buffer.from(arg.serializeBinary());
|
|
13109
13446
|
}
|
|
13110
13447
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13111
|
-
return
|
|
13448
|
+
return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13112
13449
|
}
|
|
13113
13450
|
function serialize_aggregator_NonceResp(arg) {
|
|
13114
|
-
if (!(arg instanceof
|
|
13451
|
+
if (!(arg instanceof avs_pb24.NonceResp)) {
|
|
13115
13452
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13116
13453
|
}
|
|
13117
13454
|
return Buffer.from(arg.serializeBinary());
|
|
13118
13455
|
}
|
|
13119
13456
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13120
|
-
return
|
|
13457
|
+
return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13121
13458
|
}
|
|
13122
13459
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13123
|
-
if (!(arg instanceof
|
|
13460
|
+
if (!(arg instanceof avs_pb24.RunNodeWithInputsReq)) {
|
|
13124
13461
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13125
13462
|
}
|
|
13126
13463
|
return Buffer.from(arg.serializeBinary());
|
|
13127
13464
|
}
|
|
13128
13465
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13129
|
-
return
|
|
13466
|
+
return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13130
13467
|
}
|
|
13131
13468
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13132
|
-
if (!(arg instanceof
|
|
13469
|
+
if (!(arg instanceof avs_pb24.RunNodeWithInputsResp)) {
|
|
13133
13470
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13134
13471
|
}
|
|
13135
13472
|
return Buffer.from(arg.serializeBinary());
|
|
13136
13473
|
}
|
|
13137
13474
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13138
|
-
return
|
|
13475
|
+
return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13139
13476
|
}
|
|
13140
13477
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13141
|
-
if (!(arg instanceof
|
|
13478
|
+
if (!(arg instanceof avs_pb24.RunTriggerReq)) {
|
|
13142
13479
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13143
13480
|
}
|
|
13144
13481
|
return Buffer.from(arg.serializeBinary());
|
|
13145
13482
|
}
|
|
13146
13483
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13147
|
-
return
|
|
13484
|
+
return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13148
13485
|
}
|
|
13149
13486
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13150
|
-
if (!(arg instanceof
|
|
13487
|
+
if (!(arg instanceof avs_pb24.RunTriggerResp)) {
|
|
13151
13488
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13152
13489
|
}
|
|
13153
13490
|
return Buffer.from(arg.serializeBinary());
|
|
13154
13491
|
}
|
|
13155
13492
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13156
|
-
return
|
|
13493
|
+
return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13157
13494
|
}
|
|
13158
13495
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13159
|
-
if (!(arg instanceof
|
|
13496
|
+
if (!(arg instanceof avs_pb24.SetWalletReq)) {
|
|
13160
13497
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13161
13498
|
}
|
|
13162
13499
|
return Buffer.from(arg.serializeBinary());
|
|
13163
13500
|
}
|
|
13164
13501
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13165
|
-
return
|
|
13502
|
+
return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13166
13503
|
}
|
|
13167
13504
|
function serialize_aggregator_Task(arg) {
|
|
13168
|
-
if (!(arg instanceof
|
|
13505
|
+
if (!(arg instanceof avs_pb24.Task)) {
|
|
13169
13506
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13170
13507
|
}
|
|
13171
13508
|
return Buffer.from(arg.serializeBinary());
|
|
13172
13509
|
}
|
|
13173
13510
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13174
|
-
return
|
|
13511
|
+
return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13175
13512
|
}
|
|
13176
|
-
function
|
|
13177
|
-
if (!(arg instanceof
|
|
13178
|
-
throw new Error("Expected argument of type aggregator.
|
|
13513
|
+
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
13514
|
+
if (!(arg instanceof avs_pb24.TriggerTaskReq)) {
|
|
13515
|
+
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
13179
13516
|
}
|
|
13180
13517
|
return Buffer.from(arg.serializeBinary());
|
|
13181
13518
|
}
|
|
13182
|
-
function
|
|
13183
|
-
return
|
|
13519
|
+
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13520
|
+
return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13184
13521
|
}
|
|
13185
|
-
function
|
|
13186
|
-
if (!(arg instanceof
|
|
13187
|
-
throw new Error("Expected argument of type aggregator.
|
|
13522
|
+
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
13523
|
+
if (!(arg instanceof avs_pb24.TriggerTaskResp)) {
|
|
13524
|
+
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
13188
13525
|
}
|
|
13189
13526
|
return Buffer.from(arg.serializeBinary());
|
|
13190
13527
|
}
|
|
13191
|
-
function
|
|
13192
|
-
return
|
|
13528
|
+
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
13529
|
+
return avs_pb24.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13193
13530
|
}
|
|
13194
13531
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13195
13532
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13206,8 +13543,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13206
13543
|
path: "/aggregator.Aggregator/GetKey",
|
|
13207
13544
|
requestStream: false,
|
|
13208
13545
|
responseStream: false,
|
|
13209
|
-
requestType:
|
|
13210
|
-
responseType:
|
|
13546
|
+
requestType: avs_pb24.GetKeyReq,
|
|
13547
|
+
responseType: avs_pb24.KeyResp,
|
|
13211
13548
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13212
13549
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13213
13550
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13218,8 +13555,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13218
13555
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13219
13556
|
requestStream: false,
|
|
13220
13557
|
responseStream: false,
|
|
13221
|
-
requestType:
|
|
13222
|
-
responseType:
|
|
13558
|
+
requestType: avs_pb24.GetSignatureFormatReq,
|
|
13559
|
+
responseType: avs_pb24.GetSignatureFormatResp,
|
|
13223
13560
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13224
13561
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13225
13562
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13230,8 +13567,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13230
13567
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13231
13568
|
requestStream: false,
|
|
13232
13569
|
responseStream: false,
|
|
13233
|
-
requestType:
|
|
13234
|
-
responseType:
|
|
13570
|
+
requestType: avs_pb24.NonceRequest,
|
|
13571
|
+
responseType: avs_pb24.NonceResp,
|
|
13235
13572
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13236
13573
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13237
13574
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13241,8 +13578,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13241
13578
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13242
13579
|
requestStream: false,
|
|
13243
13580
|
responseStream: false,
|
|
13244
|
-
requestType:
|
|
13245
|
-
responseType:
|
|
13581
|
+
requestType: avs_pb24.GetWalletReq,
|
|
13582
|
+
responseType: avs_pb24.GetWalletResp,
|
|
13246
13583
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13247
13584
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13248
13585
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13252,8 +13589,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13252
13589
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13253
13590
|
requestStream: false,
|
|
13254
13591
|
responseStream: false,
|
|
13255
|
-
requestType:
|
|
13256
|
-
responseType:
|
|
13592
|
+
requestType: avs_pb24.SetWalletReq,
|
|
13593
|
+
responseType: avs_pb24.GetWalletResp,
|
|
13257
13594
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13258
13595
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13259
13596
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13263,8 +13600,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13263
13600
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13264
13601
|
requestStream: false,
|
|
13265
13602
|
responseStream: false,
|
|
13266
|
-
requestType:
|
|
13267
|
-
responseType:
|
|
13603
|
+
requestType: avs_pb24.ListWalletReq,
|
|
13604
|
+
responseType: avs_pb24.ListWalletResp,
|
|
13268
13605
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13269
13606
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13270
13607
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13275,8 +13612,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13275
13612
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13276
13613
|
requestStream: false,
|
|
13277
13614
|
responseStream: false,
|
|
13278
|
-
requestType:
|
|
13279
|
-
responseType:
|
|
13615
|
+
requestType: avs_pb24.CreateTaskReq,
|
|
13616
|
+
responseType: avs_pb24.CreateTaskResp,
|
|
13280
13617
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13281
13618
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13282
13619
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13286,8 +13623,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13286
13623
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13287
13624
|
requestStream: false,
|
|
13288
13625
|
responseStream: false,
|
|
13289
|
-
requestType:
|
|
13290
|
-
responseType:
|
|
13626
|
+
requestType: avs_pb24.ListTasksReq,
|
|
13627
|
+
responseType: avs_pb24.ListTasksResp,
|
|
13291
13628
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13292
13629
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13293
13630
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13297,8 +13634,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13297
13634
|
path: "/aggregator.Aggregator/GetTask",
|
|
13298
13635
|
requestStream: false,
|
|
13299
13636
|
responseStream: false,
|
|
13300
|
-
requestType:
|
|
13301
|
-
responseType:
|
|
13637
|
+
requestType: avs_pb24.IdReq,
|
|
13638
|
+
responseType: avs_pb24.Task,
|
|
13302
13639
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13303
13640
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13304
13641
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13308,8 +13645,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13308
13645
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13309
13646
|
requestStream: false,
|
|
13310
13647
|
responseStream: false,
|
|
13311
|
-
requestType:
|
|
13312
|
-
responseType:
|
|
13648
|
+
requestType: avs_pb24.ListExecutionsReq,
|
|
13649
|
+
responseType: avs_pb24.ListExecutionsResp,
|
|
13313
13650
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13314
13651
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13315
13652
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13319,8 +13656,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13319
13656
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13320
13657
|
requestStream: false,
|
|
13321
13658
|
responseStream: false,
|
|
13322
|
-
requestType:
|
|
13323
|
-
responseType:
|
|
13659
|
+
requestType: avs_pb24.ExecutionReq,
|
|
13660
|
+
responseType: avs_pb24.Execution,
|
|
13324
13661
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13325
13662
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13326
13663
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13330,8 +13667,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13330
13667
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13331
13668
|
requestStream: false,
|
|
13332
13669
|
responseStream: false,
|
|
13333
|
-
requestType:
|
|
13334
|
-
responseType:
|
|
13670
|
+
requestType: avs_pb24.ExecutionReq,
|
|
13671
|
+
responseType: avs_pb24.ExecutionStatusResp,
|
|
13335
13672
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13336
13673
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13337
13674
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13341,7 +13678,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13341
13678
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13342
13679
|
requestStream: false,
|
|
13343
13680
|
responseStream: false,
|
|
13344
|
-
requestType:
|
|
13681
|
+
requestType: avs_pb24.IdReq,
|
|
13345
13682
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13346
13683
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13347
13684
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13352,7 +13689,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13352
13689
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13353
13690
|
requestStream: false,
|
|
13354
13691
|
responseStream: false,
|
|
13355
|
-
requestType:
|
|
13692
|
+
requestType: avs_pb24.IdReq,
|
|
13356
13693
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13357
13694
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13358
13695
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13363,12 +13700,12 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13363
13700
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13364
13701
|
requestStream: false,
|
|
13365
13702
|
responseStream: false,
|
|
13366
|
-
requestType:
|
|
13367
|
-
responseType:
|
|
13368
|
-
requestSerialize:
|
|
13369
|
-
requestDeserialize:
|
|
13370
|
-
responseSerialize:
|
|
13371
|
-
responseDeserialize:
|
|
13703
|
+
requestType: avs_pb24.TriggerTaskReq,
|
|
13704
|
+
responseType: avs_pb24.TriggerTaskResp,
|
|
13705
|
+
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
13706
|
+
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
13707
|
+
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
13708
|
+
responseDeserialize: deserialize_aggregator_TriggerTaskResp
|
|
13372
13709
|
},
|
|
13373
13710
|
// CreateSecret allow you to define a secret to be used in your tasks. The secret can be used with a special syntax of ${{secrets.name }}.
|
|
13374
13711
|
// You can decide whether to grant secret to a single workflow or many workflow, or all of your workflow
|
|
@@ -13377,7 +13714,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13377
13714
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13378
13715
|
requestStream: false,
|
|
13379
13716
|
responseStream: false,
|
|
13380
|
-
requestType:
|
|
13717
|
+
requestType: avs_pb24.CreateOrUpdateSecretReq,
|
|
13381
13718
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13382
13719
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13383
13720
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13388,7 +13725,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13388
13725
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13389
13726
|
requestStream: false,
|
|
13390
13727
|
responseStream: false,
|
|
13391
|
-
requestType:
|
|
13728
|
+
requestType: avs_pb24.DeleteSecretReq,
|
|
13392
13729
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13393
13730
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13394
13731
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13401,8 +13738,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13401
13738
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13402
13739
|
requestStream: false,
|
|
13403
13740
|
responseStream: false,
|
|
13404
|
-
requestType:
|
|
13405
|
-
responseType:
|
|
13741
|
+
requestType: avs_pb24.ListSecretsReq,
|
|
13742
|
+
responseType: avs_pb24.ListSecretsResp,
|
|
13406
13743
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13407
13744
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13408
13745
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13414,7 +13751,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13414
13751
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13415
13752
|
requestStream: false,
|
|
13416
13753
|
responseStream: false,
|
|
13417
|
-
requestType:
|
|
13754
|
+
requestType: avs_pb24.CreateOrUpdateSecretReq,
|
|
13418
13755
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13419
13756
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13420
13757
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13431,8 +13768,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13431
13768
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13432
13769
|
requestStream: false,
|
|
13433
13770
|
responseStream: false,
|
|
13434
|
-
requestType:
|
|
13435
|
-
responseType:
|
|
13771
|
+
requestType: avs_pb24.GetWorkflowCountReq,
|
|
13772
|
+
responseType: avs_pb24.GetWorkflowCountResp,
|
|
13436
13773
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13437
13774
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13438
13775
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13446,8 +13783,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13446
13783
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13447
13784
|
requestStream: false,
|
|
13448
13785
|
responseStream: false,
|
|
13449
|
-
requestType:
|
|
13450
|
-
responseType:
|
|
13786
|
+
requestType: avs_pb24.GetExecutionCountReq,
|
|
13787
|
+
responseType: avs_pb24.GetExecutionCountResp,
|
|
13451
13788
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13452
13789
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13453
13790
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13460,8 +13797,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13460
13797
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13461
13798
|
requestStream: false,
|
|
13462
13799
|
responseStream: false,
|
|
13463
|
-
requestType:
|
|
13464
|
-
responseType:
|
|
13800
|
+
requestType: avs_pb24.GetExecutionStatsReq,
|
|
13801
|
+
responseType: avs_pb24.GetExecutionStatsResp,
|
|
13465
13802
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13466
13803
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13467
13804
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13472,8 +13809,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13472
13809
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13473
13810
|
requestStream: false,
|
|
13474
13811
|
responseStream: false,
|
|
13475
|
-
requestType:
|
|
13476
|
-
responseType:
|
|
13812
|
+
requestType: avs_pb24.RunNodeWithInputsReq,
|
|
13813
|
+
responseType: avs_pb24.RunNodeWithInputsResp,
|
|
13477
13814
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13478
13815
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13479
13816
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13484,8 +13821,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13484
13821
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13485
13822
|
requestStream: false,
|
|
13486
13823
|
responseStream: false,
|
|
13487
|
-
requestType:
|
|
13488
|
-
responseType:
|
|
13824
|
+
requestType: avs_pb24.RunTriggerReq,
|
|
13825
|
+
responseType: avs_pb24.RunTriggerResp,
|
|
13489
13826
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13490
13827
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13491
13828
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
@@ -13523,18 +13860,16 @@ __export(index_exports, {
|
|
|
13523
13860
|
Step: () => step_default,
|
|
13524
13861
|
Trigger: () => interface_default,
|
|
13525
13862
|
TriggerFactory: () => factory_default,
|
|
13526
|
-
TriggerReason: () => reason_default,
|
|
13527
13863
|
Workflow: () => workflow_default
|
|
13528
13864
|
});
|
|
13529
13865
|
module.exports = __toCommonJS(index_exports);
|
|
13530
|
-
var import_lodash4 = __toESM(require("lodash"));
|
|
13531
13866
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
13532
13867
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13533
|
-
var
|
|
13868
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
13534
13869
|
|
|
13535
13870
|
// src/models/workflow.ts
|
|
13536
13871
|
var import_lodash3 = __toESM(require("lodash"));
|
|
13537
|
-
var
|
|
13872
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
13538
13873
|
|
|
13539
13874
|
// src/models/edge.ts
|
|
13540
13875
|
var avs_pb = __toESM(require_avs_pb());
|
|
@@ -13557,6 +13892,9 @@ var Edge = class _Edge {
|
|
|
13557
13892
|
};
|
|
13558
13893
|
var edge_default = Edge;
|
|
13559
13894
|
|
|
13895
|
+
// src/models/trigger/factory.ts
|
|
13896
|
+
var avs_pb7 = __toESM(require_avs_pb());
|
|
13897
|
+
|
|
13560
13898
|
// src/models/trigger/block.ts
|
|
13561
13899
|
var avs_pb2 = __toESM(require_avs_pb());
|
|
13562
13900
|
|
|
@@ -13627,6 +13965,15 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
13627
13965
|
getOutput() {
|
|
13628
13966
|
return this.output;
|
|
13629
13967
|
}
|
|
13968
|
+
/**
|
|
13969
|
+
* Extract output data from RunTriggerResp for block triggers
|
|
13970
|
+
* @param outputData - The RunTriggerResp containing block trigger output
|
|
13971
|
+
* @returns Plain JavaScript object with block trigger data
|
|
13972
|
+
*/
|
|
13973
|
+
static fromOutputData(outputData) {
|
|
13974
|
+
const blockOutput = outputData.getBlockTrigger();
|
|
13975
|
+
return blockOutput?.toObject() || null;
|
|
13976
|
+
}
|
|
13630
13977
|
};
|
|
13631
13978
|
var block_default = BlockTrigger2;
|
|
13632
13979
|
|
|
@@ -13669,13 +14016,28 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13669
14016
|
});
|
|
13670
14017
|
}
|
|
13671
14018
|
/**
|
|
13672
|
-
* Convert raw data from
|
|
14019
|
+
* Convert raw data from runTrigger response to CronOutput format
|
|
13673
14020
|
* @param rawData - The raw data from the gRPC response
|
|
13674
14021
|
* @returns {CronTriggerOutput | undefined} - The converted data
|
|
13675
14022
|
*/
|
|
13676
14023
|
getOutput() {
|
|
13677
14024
|
return this.output;
|
|
13678
14025
|
}
|
|
14026
|
+
/**
|
|
14027
|
+
* Extract output data from RunTriggerResp for cron triggers
|
|
14028
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
14029
|
+
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
14030
|
+
* @returns Plain JavaScript object with cron trigger data
|
|
14031
|
+
*/
|
|
14032
|
+
static fromOutputData(outputData) {
|
|
14033
|
+
const cronOutput = outputData.getCronTrigger();
|
|
14034
|
+
if (!cronOutput) return null;
|
|
14035
|
+
const outputObj = cronOutput.toObject();
|
|
14036
|
+
return {
|
|
14037
|
+
timestamp: outputObj.timestamp,
|
|
14038
|
+
timestampIso: outputObj.timestampIso
|
|
14039
|
+
};
|
|
14040
|
+
}
|
|
13679
14041
|
};
|
|
13680
14042
|
var cron_default = CronTrigger2;
|
|
13681
14043
|
|
|
@@ -13743,13 +14105,22 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
13743
14105
|
});
|
|
13744
14106
|
}
|
|
13745
14107
|
/**
|
|
13746
|
-
* Convert raw data from
|
|
14108
|
+
* Convert raw data from runTrigger response to EventOutput format
|
|
13747
14109
|
* @param rawData - The raw data from the gRPC response
|
|
13748
14110
|
* @returns {EventTriggerOutput | undefined} - The converted data
|
|
13749
14111
|
*/
|
|
13750
14112
|
getOutput() {
|
|
13751
14113
|
return this.output;
|
|
13752
14114
|
}
|
|
14115
|
+
/**
|
|
14116
|
+
* Extract output data from RunTriggerResp for event triggers
|
|
14117
|
+
* @param outputData - The RunTriggerResp containing event trigger output
|
|
14118
|
+
* @returns Plain JavaScript object with event trigger data
|
|
14119
|
+
*/
|
|
14120
|
+
static fromOutputData(outputData) {
|
|
14121
|
+
const eventOutput = outputData.getEventTrigger();
|
|
14122
|
+
return eventOutput?.toObject() || null;
|
|
14123
|
+
}
|
|
13753
14124
|
};
|
|
13754
14125
|
var event_default = EventTrigger2;
|
|
13755
14126
|
|
|
@@ -13792,13 +14163,28 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
13792
14163
|
});
|
|
13793
14164
|
}
|
|
13794
14165
|
/**
|
|
13795
|
-
* Convert raw data from
|
|
14166
|
+
* Convert raw data from runTrigger response to FixedTimeOutput format
|
|
13796
14167
|
* @param rawData - The raw data from the gRPC response
|
|
13797
14168
|
* @returns {FixedTimeTriggerOutput | undefined} - The converted data
|
|
13798
14169
|
*/
|
|
13799
14170
|
getOutput() {
|
|
13800
14171
|
return this.output;
|
|
13801
14172
|
}
|
|
14173
|
+
/**
|
|
14174
|
+
* Extract output data from RunTriggerResp for fixed time triggers
|
|
14175
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
14176
|
+
* @param outputData - The RunTriggerResp containing fixed time trigger output
|
|
14177
|
+
* @returns Plain JavaScript object with fixed time trigger data
|
|
14178
|
+
*/
|
|
14179
|
+
static fromOutputData(outputData) {
|
|
14180
|
+
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
14181
|
+
if (!fixedTimeOutput) return null;
|
|
14182
|
+
const outputObj = fixedTimeOutput.toObject();
|
|
14183
|
+
return {
|
|
14184
|
+
timestamp: outputObj.timestamp,
|
|
14185
|
+
timestampIso: outputObj.timestampIso
|
|
14186
|
+
};
|
|
14187
|
+
}
|
|
13802
14188
|
};
|
|
13803
14189
|
var fixedTime_default = FixedTimeTrigger2;
|
|
13804
14190
|
|
|
@@ -13828,11 +14214,93 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
13828
14214
|
getInputVariables() {
|
|
13829
14215
|
return this.data;
|
|
13830
14216
|
}
|
|
14217
|
+
/**
|
|
14218
|
+
* Convert raw data from runTrigger response to ManualOutput format
|
|
14219
|
+
* @param rawData - The raw data from the gRPC response
|
|
14220
|
+
* @returns {ManualTriggerOutput | undefined} - The converted data
|
|
14221
|
+
*/
|
|
14222
|
+
getOutput() {
|
|
14223
|
+
return this.output;
|
|
14224
|
+
}
|
|
14225
|
+
/**
|
|
14226
|
+
* Extract output data from RunTriggerResp for manual triggers
|
|
14227
|
+
* @param outputData - The RunTriggerResp containing manual trigger output
|
|
14228
|
+
* @returns Plain JavaScript object with manual trigger data
|
|
14229
|
+
*/
|
|
14230
|
+
static fromOutputData(outputData) {
|
|
14231
|
+
const manualOutput = outputData.getManualTrigger();
|
|
14232
|
+
return manualOutput?.toObject() || null;
|
|
14233
|
+
}
|
|
13831
14234
|
};
|
|
13832
14235
|
var manual_default = ManualTrigger;
|
|
13833
14236
|
|
|
13834
14237
|
// src/models/trigger/factory.ts
|
|
13835
14238
|
var import_types6 = require("@avaprotocol/types");
|
|
14239
|
+
|
|
14240
|
+
// src/utils.ts
|
|
14241
|
+
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
14242
|
+
function convertProtobufValueToJs(value) {
|
|
14243
|
+
if (!value) {
|
|
14244
|
+
return void 0;
|
|
14245
|
+
}
|
|
14246
|
+
switch (value.getKindCase()) {
|
|
14247
|
+
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
14248
|
+
return null;
|
|
14249
|
+
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
14250
|
+
return value.getNumberValue();
|
|
14251
|
+
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
14252
|
+
return value.getStringValue();
|
|
14253
|
+
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
14254
|
+
return value.getBoolValue();
|
|
14255
|
+
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
14256
|
+
const struct = value.getStructValue();
|
|
14257
|
+
if (!struct) return {};
|
|
14258
|
+
const jsObj = {};
|
|
14259
|
+
const fields = struct.getFieldsMap();
|
|
14260
|
+
fields.forEach((val, key) => {
|
|
14261
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
14262
|
+
});
|
|
14263
|
+
return jsObj;
|
|
14264
|
+
}
|
|
14265
|
+
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
14266
|
+
const list = value.getListValue();
|
|
14267
|
+
if (!list) return [];
|
|
14268
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
14269
|
+
}
|
|
14270
|
+
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
14271
|
+
default:
|
|
14272
|
+
return void 0;
|
|
14273
|
+
}
|
|
14274
|
+
}
|
|
14275
|
+
function convertJSValueToProtobuf(value) {
|
|
14276
|
+
const protobufValue = new import_struct_pb.Value();
|
|
14277
|
+
if (value === null || value === void 0) {
|
|
14278
|
+
protobufValue.setNullValue(0);
|
|
14279
|
+
} else if (typeof value === "number") {
|
|
14280
|
+
protobufValue.setNumberValue(value);
|
|
14281
|
+
} else if (typeof value === "string") {
|
|
14282
|
+
protobufValue.setStringValue(value);
|
|
14283
|
+
} else if (typeof value === "boolean") {
|
|
14284
|
+
protobufValue.setBoolValue(value);
|
|
14285
|
+
} else if (Array.isArray(value)) {
|
|
14286
|
+
const listValue = new import_struct_pb.ListValue();
|
|
14287
|
+
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
14288
|
+
listValue.setValuesList(convertedValues);
|
|
14289
|
+
protobufValue.setListValue(listValue);
|
|
14290
|
+
} else if (typeof value === "object") {
|
|
14291
|
+
const structValue = new import_struct_pb.Struct();
|
|
14292
|
+
const fieldsMap = structValue.getFieldsMap();
|
|
14293
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
14294
|
+
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
14295
|
+
});
|
|
14296
|
+
protobufValue.setStructValue(structValue);
|
|
14297
|
+
} else {
|
|
14298
|
+
protobufValue.setStringValue(String(value));
|
|
14299
|
+
}
|
|
14300
|
+
return protobufValue;
|
|
14301
|
+
}
|
|
14302
|
+
|
|
14303
|
+
// src/models/trigger/factory.ts
|
|
13836
14304
|
var TriggerFactory = class {
|
|
13837
14305
|
/**
|
|
13838
14306
|
* Static factory method to create Trigger instances
|
|
@@ -13875,14 +14343,51 @@ var TriggerFactory = class {
|
|
|
13875
14343
|
throw new Error("Unknown trigger type");
|
|
13876
14344
|
}
|
|
13877
14345
|
}
|
|
14346
|
+
static fromOutputData(outputData) {
|
|
14347
|
+
let triggerOutput = null;
|
|
14348
|
+
let rawData = null;
|
|
14349
|
+
switch (outputData.getOutputDataCase()) {
|
|
14350
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.BLOCK_TRIGGER:
|
|
14351
|
+
triggerOutput = outputData.getBlockTrigger();
|
|
14352
|
+
break;
|
|
14353
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
14354
|
+
triggerOutput = outputData.getFixedTimeTrigger();
|
|
14355
|
+
break;
|
|
14356
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.CRON_TRIGGER:
|
|
14357
|
+
triggerOutput = outputData.getCronTrigger();
|
|
14358
|
+
break;
|
|
14359
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.EVENT_TRIGGER:
|
|
14360
|
+
triggerOutput = outputData.getEventTrigger();
|
|
14361
|
+
break;
|
|
14362
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.MANUAL_TRIGGER:
|
|
14363
|
+
triggerOutput = outputData.getManualTrigger();
|
|
14364
|
+
break;
|
|
14365
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14366
|
+
default:
|
|
14367
|
+
throw new Error(
|
|
14368
|
+
`Unsupported output data case: ${outputData.getOutputDataCase()}`
|
|
14369
|
+
);
|
|
14370
|
+
}
|
|
14371
|
+
if (!triggerOutput) {
|
|
14372
|
+
return null;
|
|
14373
|
+
}
|
|
14374
|
+
if (typeof triggerOutput.getData === "function") {
|
|
14375
|
+
rawData = triggerOutput.getData();
|
|
14376
|
+
if (rawData) {
|
|
14377
|
+
return convertProtobufValueToJs(rawData);
|
|
14378
|
+
}
|
|
14379
|
+
}
|
|
14380
|
+
return triggerOutput.toObject();
|
|
14381
|
+
}
|
|
13878
14382
|
};
|
|
13879
14383
|
var factory_default = TriggerFactory;
|
|
13880
14384
|
|
|
13881
14385
|
// src/models/node/factory.ts
|
|
14386
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
13882
14387
|
var import_lodash2 = __toESM(require("lodash"));
|
|
13883
14388
|
|
|
13884
14389
|
// src/models/node/interface.ts
|
|
13885
|
-
var
|
|
14390
|
+
var avs_pb8 = __toESM(require_avs_pb());
|
|
13886
14391
|
var import_types7 = require("@avaprotocol/types");
|
|
13887
14392
|
var import_lodash = __toESM(require("lodash"));
|
|
13888
14393
|
var Node = class {
|
|
@@ -13893,9 +14398,9 @@ var Node = class {
|
|
|
13893
14398
|
this.data = props.data;
|
|
13894
14399
|
}
|
|
13895
14400
|
toRequest() {
|
|
13896
|
-
const request = new
|
|
14401
|
+
const request = new avs_pb8.TaskNode();
|
|
13897
14402
|
const raw = request.serializeBinary();
|
|
13898
|
-
const parsed =
|
|
14403
|
+
const parsed = avs_pb8.TaskNode.deserializeBinary(raw);
|
|
13899
14404
|
if (!import_lodash.default.isEqual(request, parsed)) {
|
|
13900
14405
|
throw new Error("Invalid request object");
|
|
13901
14406
|
}
|
|
@@ -13905,7 +14410,7 @@ var Node = class {
|
|
|
13905
14410
|
var interface_default2 = Node;
|
|
13906
14411
|
|
|
13907
14412
|
// src/models/node/contractWrite.ts
|
|
13908
|
-
var
|
|
14413
|
+
var avs_pb9 = __toESM(require_avs_pb());
|
|
13909
14414
|
var import_types8 = require("@avaprotocol/types");
|
|
13910
14415
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
13911
14416
|
constructor(props) {
|
|
@@ -13920,11 +14425,11 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
13920
14425
|
});
|
|
13921
14426
|
}
|
|
13922
14427
|
toRequest() {
|
|
13923
|
-
const request = new
|
|
14428
|
+
const request = new avs_pb9.TaskNode();
|
|
13924
14429
|
request.setId(this.id);
|
|
13925
14430
|
request.setName(this.name);
|
|
13926
|
-
const nodeData = new
|
|
13927
|
-
const config = new
|
|
14431
|
+
const nodeData = new avs_pb9.ContractWriteNode();
|
|
14432
|
+
const config = new avs_pb9.ContractWriteNode.Config();
|
|
13928
14433
|
config.setContractAddress(this.data.contractAddress);
|
|
13929
14434
|
config.setCallData(this.data.callData);
|
|
13930
14435
|
config.setContractAbi(this.data.contractAbi);
|
|
@@ -13932,11 +14437,15 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
13932
14437
|
request.setContractWrite(nodeData);
|
|
13933
14438
|
return request;
|
|
13934
14439
|
}
|
|
14440
|
+
static fromOutputData(outputData) {
|
|
14441
|
+
const contractWriteOutput = outputData.getContractWrite();
|
|
14442
|
+
return contractWriteOutput?.toObject() || null;
|
|
14443
|
+
}
|
|
13935
14444
|
};
|
|
13936
14445
|
var contractWrite_default = ContractWriteNode2;
|
|
13937
14446
|
|
|
13938
14447
|
// src/models/node/customCode.ts
|
|
13939
|
-
var
|
|
14448
|
+
var avs_pb10 = __toESM(require_avs_pb());
|
|
13940
14449
|
var import_types9 = require("@avaprotocol/types");
|
|
13941
14450
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
13942
14451
|
constructor(props) {
|
|
@@ -13951,22 +14460,29 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
13951
14460
|
});
|
|
13952
14461
|
}
|
|
13953
14462
|
toRequest() {
|
|
13954
|
-
const request = new
|
|
14463
|
+
const request = new avs_pb10.TaskNode();
|
|
13955
14464
|
request.setId(this.id);
|
|
13956
14465
|
request.setName(this.name);
|
|
13957
|
-
const nodeData = new
|
|
13958
|
-
const config = new
|
|
14466
|
+
const nodeData = new avs_pb10.CustomCodeNode();
|
|
14467
|
+
const config = new avs_pb10.CustomCodeNode.Config();
|
|
13959
14468
|
config.setLang(this.data.lang);
|
|
13960
14469
|
config.setSource(this.data.source);
|
|
13961
14470
|
nodeData.setConfig(config);
|
|
13962
14471
|
request.setCustomCode(nodeData);
|
|
13963
14472
|
return request;
|
|
13964
14473
|
}
|
|
14474
|
+
static fromOutputData(outputData) {
|
|
14475
|
+
const customCodeOutput = outputData.getCustomCode();
|
|
14476
|
+
if (customCodeOutput?.getData()) {
|
|
14477
|
+
return convertProtobufValueToJs(customCodeOutput.getData());
|
|
14478
|
+
}
|
|
14479
|
+
return null;
|
|
14480
|
+
}
|
|
13965
14481
|
};
|
|
13966
14482
|
var customCode_default = CustomCodeNode2;
|
|
13967
14483
|
|
|
13968
14484
|
// src/models/node/graphqlQuery.ts
|
|
13969
|
-
var
|
|
14485
|
+
var avs_pb11 = __toESM(require_avs_pb());
|
|
13970
14486
|
var import_types10 = require("@avaprotocol/types");
|
|
13971
14487
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
13972
14488
|
constructor(props) {
|
|
@@ -13985,11 +14501,11 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
13985
14501
|
});
|
|
13986
14502
|
}
|
|
13987
14503
|
toRequest() {
|
|
13988
|
-
const request = new
|
|
14504
|
+
const request = new avs_pb11.TaskNode();
|
|
13989
14505
|
request.setId(this.id);
|
|
13990
14506
|
request.setName(this.name);
|
|
13991
|
-
const nodeData = new
|
|
13992
|
-
const config = new
|
|
14507
|
+
const nodeData = new avs_pb11.GraphQLQueryNode();
|
|
14508
|
+
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
13993
14509
|
config.setUrl(this.data.url);
|
|
13994
14510
|
config.setQuery(this.data.query);
|
|
13995
14511
|
if (this.data.variablesMap && this.data.variablesMap.length > 0) {
|
|
@@ -14002,11 +14518,15 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14002
14518
|
request.setGraphqlQuery(nodeData);
|
|
14003
14519
|
return request;
|
|
14004
14520
|
}
|
|
14521
|
+
static fromOutputData(outputData) {
|
|
14522
|
+
const graphqlOutput = outputData.getGraphql();
|
|
14523
|
+
return graphqlOutput?.toObject() || null;
|
|
14524
|
+
}
|
|
14005
14525
|
};
|
|
14006
14526
|
var graphqlQuery_default = GraphQLQueryNode2;
|
|
14007
14527
|
|
|
14008
14528
|
// src/models/node/restApi.ts
|
|
14009
|
-
var
|
|
14529
|
+
var avs_pb12 = __toESM(require_avs_pb());
|
|
14010
14530
|
var import_types11 = require("@avaprotocol/types");
|
|
14011
14531
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14012
14532
|
constructor(props) {
|
|
@@ -14021,29 +14541,43 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
14021
14541
|
});
|
|
14022
14542
|
}
|
|
14023
14543
|
toRequest() {
|
|
14024
|
-
const request = new
|
|
14544
|
+
const request = new avs_pb12.TaskNode();
|
|
14025
14545
|
request.setId(this.id);
|
|
14026
14546
|
request.setName(this.name);
|
|
14027
|
-
const nodeData = new
|
|
14028
|
-
const config = new
|
|
14547
|
+
const nodeData = new avs_pb12.RestAPINode();
|
|
14548
|
+
const config = new avs_pb12.RestAPINode.Config();
|
|
14029
14549
|
config.setUrl(this.data.url);
|
|
14030
14550
|
config.setMethod(this.data.method);
|
|
14031
14551
|
config.setBody(this.data.body || "");
|
|
14032
14552
|
if (this.data.headersMap && this.data.headersMap.length > 0) {
|
|
14033
14553
|
const headersMap = config.getHeadersMap();
|
|
14034
|
-
this.data.headersMap.forEach(
|
|
14035
|
-
|
|
14036
|
-
|
|
14554
|
+
this.data.headersMap.forEach(
|
|
14555
|
+
([key, value]) => {
|
|
14556
|
+
headersMap.set(key, value);
|
|
14557
|
+
}
|
|
14558
|
+
);
|
|
14037
14559
|
}
|
|
14038
14560
|
nodeData.setConfig(config);
|
|
14039
14561
|
request.setRestApi(nodeData);
|
|
14040
14562
|
return request;
|
|
14041
14563
|
}
|
|
14564
|
+
static fromOutputData(outputData) {
|
|
14565
|
+
const restApiOutput = outputData.getRestApi();
|
|
14566
|
+
if (!restApiOutput) {
|
|
14567
|
+
console.log("Debug RestAPI: No restApiOutput found");
|
|
14568
|
+
return null;
|
|
14569
|
+
}
|
|
14570
|
+
const rawData = restApiOutput.getData();
|
|
14571
|
+
if (rawData) {
|
|
14572
|
+
return convertProtobufValueToJs(rawData);
|
|
14573
|
+
}
|
|
14574
|
+
return restApiOutput.toObject();
|
|
14575
|
+
}
|
|
14042
14576
|
};
|
|
14043
14577
|
var restApi_default = RestAPINode2;
|
|
14044
14578
|
|
|
14045
14579
|
// src/models/node/contractRead.ts
|
|
14046
|
-
var
|
|
14580
|
+
var avs_pb13 = __toESM(require_avs_pb());
|
|
14047
14581
|
var import_types12 = require("@avaprotocol/types");
|
|
14048
14582
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14049
14583
|
constructor(props) {
|
|
@@ -14058,11 +14592,11 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
14058
14592
|
});
|
|
14059
14593
|
}
|
|
14060
14594
|
toRequest() {
|
|
14061
|
-
const request = new
|
|
14595
|
+
const request = new avs_pb13.TaskNode();
|
|
14062
14596
|
request.setId(this.id);
|
|
14063
14597
|
request.setName(this.name);
|
|
14064
|
-
const nodeData = new
|
|
14065
|
-
const config = new
|
|
14598
|
+
const nodeData = new avs_pb13.ContractReadNode();
|
|
14599
|
+
const config = new avs_pb13.ContractReadNode.Config();
|
|
14066
14600
|
config.setContractAddress(this.data.contractAddress);
|
|
14067
14601
|
config.setCallData(this.data.callData);
|
|
14068
14602
|
config.setContractAbi(this.data.contractAbi);
|
|
@@ -14070,11 +14604,21 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
14070
14604
|
request.setContractRead(nodeData);
|
|
14071
14605
|
return request;
|
|
14072
14606
|
}
|
|
14607
|
+
static fromOutputData(outputData) {
|
|
14608
|
+
const contractReadOutput = outputData.getContractRead();
|
|
14609
|
+
if (contractReadOutput && contractReadOutput.getDataList()) {
|
|
14610
|
+
const dataList = contractReadOutput.getDataList();
|
|
14611
|
+
return {
|
|
14612
|
+
dataList: dataList.map((value) => convertProtobufValueToJs(value))
|
|
14613
|
+
};
|
|
14614
|
+
}
|
|
14615
|
+
return null;
|
|
14616
|
+
}
|
|
14073
14617
|
};
|
|
14074
14618
|
var contractRead_default = ContractReadNode2;
|
|
14075
14619
|
|
|
14076
14620
|
// src/models/node/ethTransfer.ts
|
|
14077
|
-
var
|
|
14621
|
+
var avs_pb14 = __toESM(require_avs_pb());
|
|
14078
14622
|
var import_types13 = require("@avaprotocol/types");
|
|
14079
14623
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14080
14624
|
constructor(props) {
|
|
@@ -14089,23 +14633,27 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14089
14633
|
});
|
|
14090
14634
|
}
|
|
14091
14635
|
toRequest() {
|
|
14092
|
-
const request = new
|
|
14636
|
+
const request = new avs_pb14.TaskNode();
|
|
14093
14637
|
request.setId(this.id);
|
|
14094
14638
|
request.setName(this.name);
|
|
14095
|
-
const nodeData = new
|
|
14096
|
-
const config = new
|
|
14639
|
+
const nodeData = new avs_pb14.ETHTransferNode();
|
|
14640
|
+
const config = new avs_pb14.ETHTransferNode.Config();
|
|
14097
14641
|
config.setDestination(this.data.destination);
|
|
14098
14642
|
config.setAmount(this.data.amount);
|
|
14099
14643
|
nodeData.setConfig(config);
|
|
14100
14644
|
request.setEthTransfer(nodeData);
|
|
14101
14645
|
return request;
|
|
14102
14646
|
}
|
|
14647
|
+
static fromOutputData(outputData) {
|
|
14648
|
+
const ethTransferOutput = outputData.getEthTransfer();
|
|
14649
|
+
return ethTransferOutput?.toObject() || null;
|
|
14650
|
+
}
|
|
14103
14651
|
};
|
|
14104
14652
|
var ethTransfer_default = ETHTransferNode2;
|
|
14105
14653
|
|
|
14106
14654
|
// src/models/node/branch.ts
|
|
14107
14655
|
var import_types14 = require("@avaprotocol/types");
|
|
14108
|
-
var
|
|
14656
|
+
var avs_pb15 = __toESM(require_avs_pb());
|
|
14109
14657
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14110
14658
|
constructor(props) {
|
|
14111
14659
|
super({ ...props, type: import_types14.NodeType.Branch, data: props.data });
|
|
@@ -14119,15 +14667,15 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
14119
14667
|
});
|
|
14120
14668
|
}
|
|
14121
14669
|
toRequest() {
|
|
14122
|
-
const request = new
|
|
14670
|
+
const request = new avs_pb15.TaskNode();
|
|
14123
14671
|
request.setId(this.id);
|
|
14124
14672
|
request.setName(this.name);
|
|
14125
|
-
const nodeData = new
|
|
14126
|
-
const config = new
|
|
14673
|
+
const nodeData = new avs_pb15.BranchNode();
|
|
14674
|
+
const config = new avs_pb15.BranchNode.Config();
|
|
14127
14675
|
if (this.data.conditionsList && this.data.conditionsList.length > 0) {
|
|
14128
14676
|
const conditionsList = this.data.conditionsList.map(
|
|
14129
14677
|
(condition) => {
|
|
14130
|
-
const conditionObj = new
|
|
14678
|
+
const conditionObj = new avs_pb15.BranchNode.Condition();
|
|
14131
14679
|
conditionObj.setId(condition.id);
|
|
14132
14680
|
conditionObj.setType(condition.type);
|
|
14133
14681
|
conditionObj.setExpression(condition.expression);
|
|
@@ -14140,12 +14688,16 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
14140
14688
|
request.setBranch(nodeData);
|
|
14141
14689
|
return request;
|
|
14142
14690
|
}
|
|
14691
|
+
static fromOutputData(outputData) {
|
|
14692
|
+
const branchOutput = outputData.getBranch();
|
|
14693
|
+
return branchOutput?.toObject() || null;
|
|
14694
|
+
}
|
|
14143
14695
|
// TODO: do we need a getConditionId() to avoid exporting BranchNodeData?
|
|
14144
14696
|
};
|
|
14145
14697
|
var branch_default = BranchNode2;
|
|
14146
14698
|
|
|
14147
14699
|
// src/models/node/filter.ts
|
|
14148
|
-
var
|
|
14700
|
+
var avs_pb16 = __toESM(require_avs_pb());
|
|
14149
14701
|
var import_types15 = require("@avaprotocol/types");
|
|
14150
14702
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14151
14703
|
constructor(props) {
|
|
@@ -14160,22 +14712,26 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
14160
14712
|
});
|
|
14161
14713
|
}
|
|
14162
14714
|
toRequest() {
|
|
14163
|
-
const request = new
|
|
14715
|
+
const request = new avs_pb16.TaskNode();
|
|
14164
14716
|
request.setId(this.id);
|
|
14165
14717
|
request.setName(this.name);
|
|
14166
|
-
const nodeData = new
|
|
14167
|
-
const config = new
|
|
14718
|
+
const nodeData = new avs_pb16.FilterNode();
|
|
14719
|
+
const config = new avs_pb16.FilterNode.Config();
|
|
14168
14720
|
config.setExpression(this.data.expression);
|
|
14169
14721
|
config.setSourceId(this.data.sourceId || "");
|
|
14170
14722
|
nodeData.setConfig(config);
|
|
14171
14723
|
request.setFilter(nodeData);
|
|
14172
14724
|
return request;
|
|
14173
14725
|
}
|
|
14726
|
+
static fromOutputData(outputData) {
|
|
14727
|
+
const filterOutput = outputData.getFilter();
|
|
14728
|
+
return filterOutput?.toObject() || null;
|
|
14729
|
+
}
|
|
14174
14730
|
};
|
|
14175
14731
|
var filter_default = FilterNode2;
|
|
14176
14732
|
|
|
14177
14733
|
// src/models/node/loop.ts
|
|
14178
|
-
var
|
|
14734
|
+
var avs_pb17 = __toESM(require_avs_pb());
|
|
14179
14735
|
var import_types16 = require("@avaprotocol/types");
|
|
14180
14736
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14181
14737
|
constructor(props) {
|
|
@@ -14206,29 +14762,29 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14206
14762
|
});
|
|
14207
14763
|
}
|
|
14208
14764
|
toRequest() {
|
|
14209
|
-
const node = new
|
|
14210
|
-
const loopNode = new
|
|
14765
|
+
const node = new avs_pb17.TaskNode();
|
|
14766
|
+
const loopNode = new avs_pb17.LoopNode();
|
|
14211
14767
|
node.setId(this.id);
|
|
14212
14768
|
node.setName(this.name);
|
|
14213
14769
|
const data = this.data;
|
|
14214
|
-
const config = new
|
|
14770
|
+
const config = new avs_pb17.LoopNode.Config();
|
|
14215
14771
|
config.setSourceId(data.sourceId || "");
|
|
14216
14772
|
config.setIterVal(data.iterVal || "");
|
|
14217
14773
|
config.setIterKey(data.iterKey || "");
|
|
14218
14774
|
loopNode.setConfig(config);
|
|
14219
14775
|
if (data.ethTransfer) {
|
|
14220
|
-
const ethTransfer = new
|
|
14776
|
+
const ethTransfer = new avs_pb17.ETHTransferNode();
|
|
14221
14777
|
if (data.ethTransfer.config) {
|
|
14222
|
-
const config2 = new
|
|
14778
|
+
const config2 = new avs_pb17.ETHTransferNode.Config();
|
|
14223
14779
|
config2.setDestination(data.ethTransfer.config.destination);
|
|
14224
14780
|
config2.setAmount(data.ethTransfer.config.amount);
|
|
14225
14781
|
ethTransfer.setConfig(config2);
|
|
14226
14782
|
}
|
|
14227
14783
|
loopNode.setEthTransfer(ethTransfer);
|
|
14228
14784
|
} else if (data.contractWrite) {
|
|
14229
|
-
const contractWrite = new
|
|
14785
|
+
const contractWrite = new avs_pb17.ContractWriteNode();
|
|
14230
14786
|
if (data.contractWrite.config) {
|
|
14231
|
-
const config2 = new
|
|
14787
|
+
const config2 = new avs_pb17.ContractWriteNode.Config();
|
|
14232
14788
|
config2.setContractAddress(data.contractWrite.config.contractAddress);
|
|
14233
14789
|
config2.setCallData(data.contractWrite.config.callData);
|
|
14234
14790
|
config2.setContractAbi(data.contractWrite.config.contractAbi);
|
|
@@ -14236,9 +14792,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14236
14792
|
}
|
|
14237
14793
|
loopNode.setContractWrite(contractWrite);
|
|
14238
14794
|
} else if (data.contractRead) {
|
|
14239
|
-
const contractRead = new
|
|
14795
|
+
const contractRead = new avs_pb17.ContractReadNode();
|
|
14240
14796
|
if (data.contractRead.config) {
|
|
14241
|
-
const config2 = new
|
|
14797
|
+
const config2 = new avs_pb17.ContractReadNode.Config();
|
|
14242
14798
|
config2.setContractAddress(data.contractRead.config.contractAddress);
|
|
14243
14799
|
config2.setCallData(data.contractRead.config.callData);
|
|
14244
14800
|
config2.setContractAbi(data.contractRead.config.contractAbi);
|
|
@@ -14246,9 +14802,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14246
14802
|
}
|
|
14247
14803
|
loopNode.setContractRead(contractRead);
|
|
14248
14804
|
} else if (data.graphqlDataQuery) {
|
|
14249
|
-
const graphqlQuery = new
|
|
14805
|
+
const graphqlQuery = new avs_pb17.GraphQLQueryNode();
|
|
14250
14806
|
if (data.graphqlDataQuery.config) {
|
|
14251
|
-
const config2 = new
|
|
14807
|
+
const config2 = new avs_pb17.GraphQLQueryNode.Config();
|
|
14252
14808
|
config2.setUrl(data.graphqlDataQuery.config.url);
|
|
14253
14809
|
config2.setQuery(data.graphqlDataQuery.config.query);
|
|
14254
14810
|
if (data.graphqlDataQuery.config.variablesMap && data.graphqlDataQuery.config.variablesMap.length > 0) {
|
|
@@ -14260,9 +14816,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14260
14816
|
}
|
|
14261
14817
|
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
14262
14818
|
} else if (data.restApi) {
|
|
14263
|
-
const restApi = new
|
|
14819
|
+
const restApi = new avs_pb17.RestAPINode();
|
|
14264
14820
|
if (data.restApi.config) {
|
|
14265
|
-
const config2 = new
|
|
14821
|
+
const config2 = new avs_pb17.RestAPINode.Config();
|
|
14266
14822
|
config2.setUrl(data.restApi.config.url);
|
|
14267
14823
|
config2.setMethod(data.restApi.config.method);
|
|
14268
14824
|
config2.setBody(data.restApi.config.body || "");
|
|
@@ -14275,9 +14831,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14275
14831
|
}
|
|
14276
14832
|
loopNode.setRestApi(restApi);
|
|
14277
14833
|
} else if (data.customCode) {
|
|
14278
|
-
const customCode = new
|
|
14834
|
+
const customCode = new avs_pb17.CustomCodeNode();
|
|
14279
14835
|
if (data.customCode.config) {
|
|
14280
|
-
const config2 = new
|
|
14836
|
+
const config2 = new avs_pb17.CustomCodeNode.Config();
|
|
14281
14837
|
config2.setLang(data.customCode.config.lang);
|
|
14282
14838
|
config2.setSource(data.customCode.config.source);
|
|
14283
14839
|
customCode.setConfig(config2);
|
|
@@ -14287,6 +14843,10 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14287
14843
|
node.setLoop(loopNode);
|
|
14288
14844
|
return node;
|
|
14289
14845
|
}
|
|
14846
|
+
static fromOutputData(outputData) {
|
|
14847
|
+
const loopOutput = outputData.getLoop();
|
|
14848
|
+
return loopOutput?.toObject() || null;
|
|
14849
|
+
}
|
|
14290
14850
|
};
|
|
14291
14851
|
var loop_default = LoopNode2;
|
|
14292
14852
|
|
|
@@ -14346,6 +14906,52 @@ var NodeFactory = class {
|
|
|
14346
14906
|
throw new Error(`Unsupported node type: ${raw.getName()}`);
|
|
14347
14907
|
}
|
|
14348
14908
|
}
|
|
14909
|
+
static fromOutputData(outputData) {
|
|
14910
|
+
let nodeOutput = null;
|
|
14911
|
+
let rawData = null;
|
|
14912
|
+
switch (outputData.getOutputDataCase()) {
|
|
14913
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
14914
|
+
nodeOutput = outputData.getRestApi();
|
|
14915
|
+
break;
|
|
14916
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
14917
|
+
nodeOutput = outputData.getCustomCode();
|
|
14918
|
+
break;
|
|
14919
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
14920
|
+
nodeOutput = outputData.getContractRead();
|
|
14921
|
+
break;
|
|
14922
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
14923
|
+
nodeOutput = outputData.getContractWrite();
|
|
14924
|
+
break;
|
|
14925
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
14926
|
+
nodeOutput = outputData.getEthTransfer();
|
|
14927
|
+
break;
|
|
14928
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
14929
|
+
nodeOutput = outputData.getGraphql();
|
|
14930
|
+
break;
|
|
14931
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
14932
|
+
nodeOutput = outputData.getBranch();
|
|
14933
|
+
break;
|
|
14934
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
14935
|
+
nodeOutput = outputData.getFilter();
|
|
14936
|
+
break;
|
|
14937
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
14938
|
+
nodeOutput = outputData.getLoop();
|
|
14939
|
+
break;
|
|
14940
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14941
|
+
default:
|
|
14942
|
+
throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
|
|
14943
|
+
}
|
|
14944
|
+
if (!nodeOutput) {
|
|
14945
|
+
return null;
|
|
14946
|
+
}
|
|
14947
|
+
if (typeof nodeOutput.getData === "function") {
|
|
14948
|
+
rawData = nodeOutput.getData();
|
|
14949
|
+
if (rawData) {
|
|
14950
|
+
return convertProtobufValueToJs(rawData);
|
|
14951
|
+
}
|
|
14952
|
+
}
|
|
14953
|
+
return nodeOutput.toObject();
|
|
14954
|
+
}
|
|
14349
14955
|
};
|
|
14350
14956
|
var factory_default2 = NodeFactory;
|
|
14351
14957
|
|
|
@@ -14353,11 +14959,11 @@ var factory_default2 = NodeFactory;
|
|
|
14353
14959
|
var import_types18 = require("@avaprotocol/types");
|
|
14354
14960
|
function convertStatusToString(status) {
|
|
14355
14961
|
const conversionMap = {
|
|
14356
|
-
[
|
|
14357
|
-
[
|
|
14358
|
-
[
|
|
14359
|
-
[
|
|
14360
|
-
[
|
|
14962
|
+
[avs_pb19.TaskStatus.ACTIVE]: import_types18.WorkflowStatus.Active,
|
|
14963
|
+
[avs_pb19.TaskStatus.COMPLETED]: import_types18.WorkflowStatus.Completed,
|
|
14964
|
+
[avs_pb19.TaskStatus.FAILED]: import_types18.WorkflowStatus.Failed,
|
|
14965
|
+
[avs_pb19.TaskStatus.CANCELED]: import_types18.WorkflowStatus.Canceled,
|
|
14966
|
+
[avs_pb19.TaskStatus.EXECUTING]: import_types18.WorkflowStatus.Executing
|
|
14361
14967
|
};
|
|
14362
14968
|
return conversionMap[status];
|
|
14363
14969
|
}
|
|
@@ -14445,7 +15051,7 @@ var Workflow = class _Workflow {
|
|
|
14445
15051
|
});
|
|
14446
15052
|
}
|
|
14447
15053
|
toRequest() {
|
|
14448
|
-
const request = new
|
|
15054
|
+
const request = new avs_pb19.CreateTaskReq();
|
|
14449
15055
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
14450
15056
|
request.setTrigger(this.trigger.toRequest());
|
|
14451
15057
|
import_lodash3.default.map(this.nodes, (node) => request.addNodes(node.toRequest()));
|
|
@@ -14462,144 +15068,11 @@ var Workflow = class _Workflow {
|
|
|
14462
15068
|
var workflow_default = Workflow;
|
|
14463
15069
|
|
|
14464
15070
|
// src/models/execution.ts
|
|
14465
|
-
var
|
|
14466
|
-
|
|
14467
|
-
// src/models/trigger/reason.ts
|
|
14468
|
-
var avs_pb18 = __toESM(require_avs_pb());
|
|
15071
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
14469
15072
|
var import_types19 = require("@avaprotocol/types");
|
|
14470
|
-
var convertTriggerType = (grpcType) => {
|
|
14471
|
-
const conversionMap = {
|
|
14472
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_FIXED_TIME]: import_types19.TriggerType.FixedTime,
|
|
14473
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_CRON]: import_types19.TriggerType.Cron,
|
|
14474
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_BLOCK]: import_types19.TriggerType.Block,
|
|
14475
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_EVENT]: import_types19.TriggerType.Event,
|
|
14476
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_MANUAL]: import_types19.TriggerType.Manual,
|
|
14477
|
-
[avs_pb18.TriggerType.TRIGGER_TYPE_UNSPECIFIED]: import_types19.TriggerType.Unspecified
|
|
14478
|
-
};
|
|
14479
|
-
return conversionMap[grpcType];
|
|
14480
|
-
};
|
|
14481
|
-
var TriggerReason2 = class _TriggerReason {
|
|
14482
|
-
constructor(props) {
|
|
14483
|
-
this.type = props.type;
|
|
14484
|
-
switch (props.type) {
|
|
14485
|
-
case import_types19.TriggerType.FixedTime:
|
|
14486
|
-
case import_types19.TriggerType.Cron:
|
|
14487
|
-
this.epoch = props.epoch;
|
|
14488
|
-
break;
|
|
14489
|
-
case import_types19.TriggerType.Block:
|
|
14490
|
-
this.blockNumber = props.blockNumber;
|
|
14491
|
-
break;
|
|
14492
|
-
case import_types19.TriggerType.Event:
|
|
14493
|
-
this.blockNumber = props.blockNumber;
|
|
14494
|
-
this.logIndex = props.logIndex;
|
|
14495
|
-
this.txHash = props.txHash;
|
|
14496
|
-
break;
|
|
14497
|
-
case import_types19.TriggerType.Manual:
|
|
14498
|
-
case import_types19.TriggerType.Unspecified:
|
|
14499
|
-
break;
|
|
14500
|
-
default:
|
|
14501
|
-
throw new Error("Unsupported trigger type");
|
|
14502
|
-
}
|
|
14503
|
-
}
|
|
14504
|
-
static fromResponse(data) {
|
|
14505
|
-
if (!data) {
|
|
14506
|
-
return void 0;
|
|
14507
|
-
}
|
|
14508
|
-
return new _TriggerReason({
|
|
14509
|
-
type: convertTriggerType(data.getType()),
|
|
14510
|
-
blockNumber: data.getBlockNumber(),
|
|
14511
|
-
epoch: data.getEpoch(),
|
|
14512
|
-
logIndex: data.getLogIndex(),
|
|
14513
|
-
txHash: data.getTxHash()
|
|
14514
|
-
});
|
|
14515
|
-
}
|
|
14516
|
-
toRequest() {
|
|
14517
|
-
const request = new avs_pb18.TriggerReason();
|
|
14518
|
-
switch (this.type) {
|
|
14519
|
-
case import_types19.TriggerType.FixedTime:
|
|
14520
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14521
|
-
if (this.epoch) {
|
|
14522
|
-
request.setEpoch(this.epoch);
|
|
14523
|
-
}
|
|
14524
|
-
break;
|
|
14525
|
-
case import_types19.TriggerType.Cron:
|
|
14526
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_CRON);
|
|
14527
|
-
if (this.epoch) {
|
|
14528
|
-
request.setEpoch(this.epoch);
|
|
14529
|
-
}
|
|
14530
|
-
break;
|
|
14531
|
-
case import_types19.TriggerType.Block:
|
|
14532
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
14533
|
-
if (this.blockNumber) {
|
|
14534
|
-
request.setBlockNumber(this.blockNumber);
|
|
14535
|
-
}
|
|
14536
|
-
break;
|
|
14537
|
-
case import_types19.TriggerType.Event:
|
|
14538
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_EVENT);
|
|
14539
|
-
if (this.blockNumber) {
|
|
14540
|
-
request.setBlockNumber(this.blockNumber);
|
|
14541
|
-
}
|
|
14542
|
-
if (this.logIndex) {
|
|
14543
|
-
request.setLogIndex(this.logIndex);
|
|
14544
|
-
}
|
|
14545
|
-
if (this.txHash) {
|
|
14546
|
-
request.setTxHash(this.txHash);
|
|
14547
|
-
}
|
|
14548
|
-
break;
|
|
14549
|
-
case import_types19.TriggerType.Manual:
|
|
14550
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
14551
|
-
break;
|
|
14552
|
-
case import_types19.TriggerType.Unspecified:
|
|
14553
|
-
request.setType(avs_pb18.TriggerType.TRIGGER_TYPE_UNSPECIFIED);
|
|
14554
|
-
break;
|
|
14555
|
-
default:
|
|
14556
|
-
throw new Error("Unsupported trigger type");
|
|
14557
|
-
}
|
|
14558
|
-
return request;
|
|
14559
|
-
}
|
|
14560
|
-
};
|
|
14561
|
-
var reason_default = TriggerReason2;
|
|
14562
|
-
|
|
14563
|
-
// src/models/step.ts
|
|
14564
|
-
var avs_pb19 = __toESM(require_avs_pb());
|
|
14565
|
-
|
|
14566
|
-
// src/utils.ts
|
|
14567
|
-
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
14568
|
-
function convertProtobufValueToJs(value) {
|
|
14569
|
-
if (!value) {
|
|
14570
|
-
return void 0;
|
|
14571
|
-
}
|
|
14572
|
-
switch (value.getKindCase()) {
|
|
14573
|
-
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
14574
|
-
return null;
|
|
14575
|
-
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
14576
|
-
return value.getNumberValue();
|
|
14577
|
-
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
14578
|
-
return value.getStringValue();
|
|
14579
|
-
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
14580
|
-
return value.getBoolValue();
|
|
14581
|
-
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
14582
|
-
const struct = value.getStructValue();
|
|
14583
|
-
if (!struct) return {};
|
|
14584
|
-
const jsObj = {};
|
|
14585
|
-
const fields = struct.getFieldsMap();
|
|
14586
|
-
fields.forEach((val, key) => {
|
|
14587
|
-
jsObj[key] = convertProtobufValueToJs(val);
|
|
14588
|
-
});
|
|
14589
|
-
return jsObj;
|
|
14590
|
-
}
|
|
14591
|
-
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
14592
|
-
const list = value.getListValue();
|
|
14593
|
-
if (!list) return [];
|
|
14594
|
-
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
14595
|
-
}
|
|
14596
|
-
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
14597
|
-
default:
|
|
14598
|
-
return void 0;
|
|
14599
|
-
}
|
|
14600
|
-
}
|
|
14601
15073
|
|
|
14602
15074
|
// src/models/step.ts
|
|
15075
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
14603
15076
|
var Step = class _Step {
|
|
14604
15077
|
// Changed to any
|
|
14605
15078
|
constructor(props) {
|
|
@@ -14616,37 +15089,37 @@ var Step = class _Step {
|
|
|
14616
15089
|
const outputDataType = step.getOutputDataCase();
|
|
14617
15090
|
let nodeOutputMessage;
|
|
14618
15091
|
switch (outputDataType) {
|
|
14619
|
-
case
|
|
15092
|
+
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14620
15093
|
return null;
|
|
14621
|
-
case
|
|
15094
|
+
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
14622
15095
|
return step.getEthTransfer()?.toObject();
|
|
14623
15096
|
// Specific structure, not google.protobuf.Value
|
|
14624
|
-
case
|
|
15097
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
14625
15098
|
nodeOutputMessage = step.getGraphql();
|
|
14626
15099
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14627
|
-
case
|
|
15100
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
14628
15101
|
nodeOutputMessage = step.getContractRead();
|
|
14629
15102
|
if (nodeOutputMessage) {
|
|
14630
15103
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
14631
15104
|
}
|
|
14632
15105
|
return [];
|
|
14633
15106
|
// Default to empty array if no data
|
|
14634
|
-
case
|
|
15107
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
14635
15108
|
return step.getContractWrite()?.toObject();
|
|
14636
15109
|
// Specific structure
|
|
14637
|
-
case
|
|
15110
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
14638
15111
|
nodeOutputMessage = step.getCustomCode();
|
|
14639
15112
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
14640
|
-
case
|
|
15113
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
14641
15114
|
nodeOutputMessage = step.getRestApi();
|
|
14642
15115
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14643
|
-
case
|
|
15116
|
+
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
14644
15117
|
return step.getBranch()?.toObject();
|
|
14645
15118
|
// Specific structure
|
|
14646
|
-
case
|
|
15119
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
14647
15120
|
nodeOutputMessage = step.getFilter();
|
|
14648
15121
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14649
|
-
case
|
|
15122
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
14650
15123
|
return step.getLoop()?.getData();
|
|
14651
15124
|
default:
|
|
14652
15125
|
console.warn(
|
|
@@ -14681,26 +15154,32 @@ var Execution3 = class _Execution {
|
|
|
14681
15154
|
this.error = props.error;
|
|
14682
15155
|
this.stepsList = props.stepsList;
|
|
14683
15156
|
this.triggerName = props.triggerName;
|
|
14684
|
-
this.
|
|
15157
|
+
this.triggerType = props.triggerType;
|
|
14685
15158
|
this.triggerOutput = props.triggerOutput;
|
|
14686
15159
|
}
|
|
14687
15160
|
static fromResponse(execution) {
|
|
14688
15161
|
const triggerOutputDataType = execution.getOutputDataCase();
|
|
14689
15162
|
let triggerOutputData;
|
|
14690
15163
|
switch (triggerOutputDataType) {
|
|
14691
|
-
case
|
|
15164
|
+
case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
14692
15165
|
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
14693
15166
|
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
14694
15167
|
break;
|
|
14695
|
-
case
|
|
15168
|
+
case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
14696
15169
|
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
14697
|
-
triggerOutputData = fixedTimeOutput ? {
|
|
15170
|
+
triggerOutputData = fixedTimeOutput ? {
|
|
15171
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15172
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15173
|
+
} : void 0;
|
|
14698
15174
|
break;
|
|
14699
|
-
case
|
|
15175
|
+
case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
|
|
14700
15176
|
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
14701
|
-
triggerOutputData = cronOutput ? {
|
|
15177
|
+
triggerOutputData = cronOutput ? {
|
|
15178
|
+
timestamp: cronOutput.timestamp,
|
|
15179
|
+
timestampIso: cronOutput.timestampIso
|
|
15180
|
+
} : void 0;
|
|
14702
15181
|
break;
|
|
14703
|
-
case
|
|
15182
|
+
case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
14704
15183
|
const eventTrigger = execution.getEventTrigger();
|
|
14705
15184
|
if (eventTrigger) {
|
|
14706
15185
|
if (eventTrigger.hasEvmLog()) {
|
|
@@ -14710,7 +15189,11 @@ var Execution3 = class _Execution {
|
|
|
14710
15189
|
}
|
|
14711
15190
|
}
|
|
14712
15191
|
break;
|
|
14713
|
-
case
|
|
15192
|
+
case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
|
|
15193
|
+
const manualOutput = execution.getManualTrigger()?.toObject();
|
|
15194
|
+
triggerOutputData = manualOutput || void 0;
|
|
15195
|
+
break;
|
|
15196
|
+
case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14714
15197
|
triggerOutputData = void 0;
|
|
14715
15198
|
break;
|
|
14716
15199
|
}
|
|
@@ -14721,7 +15204,8 @@ var Execution3 = class _Execution {
|
|
|
14721
15204
|
success: execution.getSuccess(),
|
|
14722
15205
|
error: execution.getError(),
|
|
14723
15206
|
triggerName: execution.getTriggerName(),
|
|
14724
|
-
|
|
15207
|
+
triggerType: import_types19.TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
|
|
15208
|
+
// Convert protobuf enum to SDK enum
|
|
14725
15209
|
triggerOutput: triggerOutputData,
|
|
14726
15210
|
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
14727
15211
|
});
|
|
@@ -14731,7 +15215,7 @@ var Execution3 = class _Execution {
|
|
|
14731
15215
|
var execution_default = Execution3;
|
|
14732
15216
|
|
|
14733
15217
|
// src/models/secret.ts
|
|
14734
|
-
var
|
|
15218
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
14735
15219
|
var Secret = class {
|
|
14736
15220
|
constructor(props) {
|
|
14737
15221
|
this.name = props.name;
|
|
@@ -14744,7 +15228,7 @@ var Secret = class {
|
|
|
14744
15228
|
this.description = props.description;
|
|
14745
15229
|
}
|
|
14746
15230
|
toRequest() {
|
|
14747
|
-
const request = new
|
|
15231
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
14748
15232
|
request.setName(this.name);
|
|
14749
15233
|
if (this.secret) {
|
|
14750
15234
|
request.setSecret(this.secret);
|
|
@@ -14795,7 +15279,7 @@ var BaseClient = class {
|
|
|
14795
15279
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
14796
15280
|
*/
|
|
14797
15281
|
async getSignatureFormat(wallet) {
|
|
14798
|
-
const request = new
|
|
15282
|
+
const request = new avs_pb23.GetSignatureFormatReq();
|
|
14799
15283
|
request.setWallet(wallet);
|
|
14800
15284
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
14801
15285
|
return { message: result.getMessage() };
|
|
@@ -14810,7 +15294,7 @@ var BaseClient = class {
|
|
|
14810
15294
|
message,
|
|
14811
15295
|
apiKey
|
|
14812
15296
|
}) {
|
|
14813
|
-
const request = new
|
|
15297
|
+
const request = new avs_pb23.GetKeyReq();
|
|
14814
15298
|
request.setMessage(message);
|
|
14815
15299
|
request.setSignature(apiKey);
|
|
14816
15300
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -14826,7 +15310,7 @@ var BaseClient = class {
|
|
|
14826
15310
|
message,
|
|
14827
15311
|
signature
|
|
14828
15312
|
}) {
|
|
14829
|
-
const request = new
|
|
15313
|
+
const request = new avs_pb23.GetKeyReq();
|
|
14830
15314
|
request.setMessage(message);
|
|
14831
15315
|
request.setSignature(signature);
|
|
14832
15316
|
const result = await this.sendGrpcRequest(
|
|
@@ -14865,112 +15349,32 @@ var BaseClient = class {
|
|
|
14865
15349
|
return this.factoryAddress;
|
|
14866
15350
|
}
|
|
14867
15351
|
/**
|
|
14868
|
-
* Send a gRPC request with
|
|
14869
|
-
* @param method - The method name
|
|
14870
|
-
* @param request - The request
|
|
14871
|
-
* @param options -
|
|
14872
|
-
* @returns {Promise<TResponse>} - The response from the
|
|
15352
|
+
* Send a gRPC request with authentication and error handling
|
|
15353
|
+
* @param method - The method name to call
|
|
15354
|
+
* @param request - The request object
|
|
15355
|
+
* @param options - Request options
|
|
15356
|
+
* @returns {Promise<TResponse>} - The response from the server
|
|
14873
15357
|
*/
|
|
14874
15358
|
sendGrpcRequest(method, request, options) {
|
|
14875
|
-
const metadata = import_lodash4.default.cloneDeep(this.metadata);
|
|
14876
|
-
if (options?.authKey) {
|
|
14877
|
-
metadata.set(import_types21.AUTH_KEY_HEADER, options.authKey);
|
|
14878
|
-
} else if (this.authKey) {
|
|
14879
|
-
metadata.set(import_types21.AUTH_KEY_HEADER, this.authKey);
|
|
14880
|
-
}
|
|
14881
15359
|
return new Promise((resolve, reject) => {
|
|
14882
|
-
|
|
15360
|
+
const metadata = new import_grpc_js.Metadata();
|
|
15361
|
+
const authKey = options?.authKey || this.authKey;
|
|
15362
|
+
if (authKey) {
|
|
15363
|
+
metadata.set(import_types21.AUTH_KEY_HEADER, authKey);
|
|
15364
|
+
}
|
|
15365
|
+
this.rpcClient[method](
|
|
14883
15366
|
request,
|
|
14884
15367
|
metadata,
|
|
14885
15368
|
(error, response) => {
|
|
14886
|
-
if (error)
|
|
14887
|
-
|
|
15369
|
+
if (error) {
|
|
15370
|
+
reject(error);
|
|
15371
|
+
} else {
|
|
15372
|
+
resolve(response);
|
|
15373
|
+
}
|
|
14888
15374
|
}
|
|
14889
15375
|
);
|
|
14890
15376
|
});
|
|
14891
15377
|
}
|
|
14892
|
-
/**
|
|
14893
|
-
* Convert a protobuf Value to a JavaScript value
|
|
14894
|
-
* @param value - The protobuf Value object
|
|
14895
|
-
* @returns {any} - The converted JavaScript value
|
|
14896
|
-
*/
|
|
14897
|
-
convertProtobufValueToJS(value) {
|
|
14898
|
-
if (!value) return null;
|
|
14899
|
-
if (value.hasNullValue && value.hasNullValue()) {
|
|
14900
|
-
return null;
|
|
14901
|
-
}
|
|
14902
|
-
if (value.hasNumberValue && value.hasNumberValue()) {
|
|
14903
|
-
return value.getNumberValue();
|
|
14904
|
-
}
|
|
14905
|
-
if (value.hasStringValue && value.hasStringValue()) {
|
|
14906
|
-
return value.getStringValue();
|
|
14907
|
-
}
|
|
14908
|
-
if (value.hasBoolValue && value.hasBoolValue()) {
|
|
14909
|
-
return value.getBoolValue();
|
|
14910
|
-
}
|
|
14911
|
-
if (value.hasStructValue && value.hasStructValue()) {
|
|
14912
|
-
const struct = value.getStructValue();
|
|
14913
|
-
const result = {};
|
|
14914
|
-
if (struct && struct.getFieldsMap) {
|
|
14915
|
-
const fieldsMap = struct.getFieldsMap();
|
|
14916
|
-
fieldsMap.forEach((fieldValue, key) => {
|
|
14917
|
-
result[key] = this.convertProtobufValueToJS(fieldValue);
|
|
14918
|
-
});
|
|
14919
|
-
}
|
|
14920
|
-
return result;
|
|
14921
|
-
}
|
|
14922
|
-
if (value.hasListValue && value.hasListValue()) {
|
|
14923
|
-
const list = value.getListValue();
|
|
14924
|
-
if (list && list.getValuesList) {
|
|
14925
|
-
return list.getValuesList().map((item) => this.convertProtobufValueToJS(item));
|
|
14926
|
-
}
|
|
14927
|
-
return [];
|
|
14928
|
-
}
|
|
14929
|
-
if (typeof value.getNumberValue === "function") {
|
|
14930
|
-
return value.getNumberValue();
|
|
14931
|
-
}
|
|
14932
|
-
if (typeof value.getStringValue === "function") {
|
|
14933
|
-
return value.getStringValue();
|
|
14934
|
-
}
|
|
14935
|
-
if (typeof value.getBoolValue === "function") {
|
|
14936
|
-
return value.getBoolValue();
|
|
14937
|
-
}
|
|
14938
|
-
return value;
|
|
14939
|
-
}
|
|
14940
|
-
/**
|
|
14941
|
-
* Convert a JavaScript value to a protobuf Value
|
|
14942
|
-
* @param value - The JavaScript value to convert
|
|
14943
|
-
* @returns {any} - The protobuf Value object
|
|
14944
|
-
*/
|
|
14945
|
-
convertJSValueToProtobuf(value) {
|
|
14946
|
-
const protobufValue = new (require("google-protobuf/google/protobuf/struct_pb")).Value();
|
|
14947
|
-
if (value === null || value === void 0) {
|
|
14948
|
-
protobufValue.setNullValue(0);
|
|
14949
|
-
} else if (typeof value === "number") {
|
|
14950
|
-
protobufValue.setNumberValue(value);
|
|
14951
|
-
} else if (typeof value === "string") {
|
|
14952
|
-
protobufValue.setStringValue(value);
|
|
14953
|
-
} else if (typeof value === "boolean") {
|
|
14954
|
-
protobufValue.setBoolValue(value);
|
|
14955
|
-
} else if (Array.isArray(value)) {
|
|
14956
|
-
const listValue = new (require("google-protobuf/google/protobuf/struct_pb")).ListValue();
|
|
14957
|
-
const convertedValues = value.map(
|
|
14958
|
-
(item) => this.convertJSValueToProtobuf(item)
|
|
14959
|
-
);
|
|
14960
|
-
listValue.setValuesList(convertedValues);
|
|
14961
|
-
protobufValue.setListValue(listValue);
|
|
14962
|
-
} else if (typeof value === "object") {
|
|
14963
|
-
const structValue = new (require("google-protobuf/google/protobuf/struct_pb")).Struct();
|
|
14964
|
-
const fieldsMap = structValue.getFieldsMap();
|
|
14965
|
-
Object.entries(value).forEach(([key, val]) => {
|
|
14966
|
-
fieldsMap.set(key, this.convertJSValueToProtobuf(val));
|
|
14967
|
-
});
|
|
14968
|
-
protobufValue.setStructValue(structValue);
|
|
14969
|
-
} else {
|
|
14970
|
-
protobufValue.setStringValue(String(value));
|
|
14971
|
-
}
|
|
14972
|
-
return protobufValue;
|
|
14973
|
-
}
|
|
14974
15378
|
};
|
|
14975
15379
|
var Client = class extends BaseClient {
|
|
14976
15380
|
constructor(config) {
|
|
@@ -14982,7 +15386,7 @@ var Client = class extends BaseClient {
|
|
|
14982
15386
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
14983
15387
|
*/
|
|
14984
15388
|
async getWallets(options) {
|
|
14985
|
-
const request = new
|
|
15389
|
+
const request = new avs_pb23.ListWalletReq();
|
|
14986
15390
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
14987
15391
|
return result.getItemsList().map((item) => item.toObject());
|
|
14988
15392
|
}
|
|
@@ -14994,7 +15398,7 @@ var Client = class extends BaseClient {
|
|
|
14994
15398
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
14995
15399
|
*/
|
|
14996
15400
|
async getWallet({ salt, factoryAddress }, options) {
|
|
14997
|
-
const request = new
|
|
15401
|
+
const request = new avs_pb23.GetWalletReq();
|
|
14998
15402
|
request.setSalt(salt);
|
|
14999
15403
|
if (factoryAddress) {
|
|
15000
15404
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15023,7 +15427,7 @@ var Client = class extends BaseClient {
|
|
|
15023
15427
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15024
15428
|
*/
|
|
15025
15429
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15026
|
-
const request = new
|
|
15430
|
+
const request = new avs_pb23.SetWalletReq();
|
|
15027
15431
|
request.setSalt(salt);
|
|
15028
15432
|
if (factoryAddress) {
|
|
15029
15433
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15071,7 +15475,7 @@ var Client = class extends BaseClient {
|
|
|
15071
15475
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15072
15476
|
*/
|
|
15073
15477
|
async getWorkflows(addresses, options) {
|
|
15074
|
-
const request = new
|
|
15478
|
+
const request = new avs_pb23.ListTasksReq();
|
|
15075
15479
|
for (const a of addresses) {
|
|
15076
15480
|
request.addSmartWalletAddress(a);
|
|
15077
15481
|
}
|
|
@@ -15110,7 +15514,7 @@ var Client = class extends BaseClient {
|
|
|
15110
15514
|
* @returns {Promise<number>} - The count of workflows
|
|
15111
15515
|
*/
|
|
15112
15516
|
async getWorkflowCount(addresses, options) {
|
|
15113
|
-
const request = new
|
|
15517
|
+
const request = new avs_pb23.GetWorkflowCountReq();
|
|
15114
15518
|
request.setAddressesList(addresses);
|
|
15115
15519
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15116
15520
|
return result.getTotal();
|
|
@@ -15126,7 +15530,7 @@ var Client = class extends BaseClient {
|
|
|
15126
15530
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15127
15531
|
*/
|
|
15128
15532
|
async getExecutions(workflows, options) {
|
|
15129
|
-
const request = new
|
|
15533
|
+
const request = new avs_pb23.ListExecutionsReq();
|
|
15130
15534
|
for (const w of workflows) {
|
|
15131
15535
|
request.addTaskIds(w);
|
|
15132
15536
|
}
|
|
@@ -15160,7 +15564,7 @@ var Client = class extends BaseClient {
|
|
|
15160
15564
|
* @returns {Promise<Execution>} - The Execution object
|
|
15161
15565
|
*/
|
|
15162
15566
|
async getExecution(workflowId, executionId, options) {
|
|
15163
|
-
const request = new
|
|
15567
|
+
const request = new avs_pb23.ExecutionReq();
|
|
15164
15568
|
request.setTaskId(workflowId);
|
|
15165
15569
|
request.setExecutionId(executionId);
|
|
15166
15570
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15173,7 +15577,7 @@ var Client = class extends BaseClient {
|
|
|
15173
15577
|
* @returns {Promise<number>} - The count of executions
|
|
15174
15578
|
*/
|
|
15175
15579
|
async getExecutionCount(workflows, options) {
|
|
15176
|
-
const request = new
|
|
15580
|
+
const request = new avs_pb23.GetExecutionCountReq();
|
|
15177
15581
|
request.setWorkflowIdsList(workflows);
|
|
15178
15582
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15179
15583
|
return result.getTotal();
|
|
@@ -15186,7 +15590,7 @@ var Client = class extends BaseClient {
|
|
|
15186
15590
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15187
15591
|
*/
|
|
15188
15592
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15189
|
-
const request = new
|
|
15593
|
+
const request = new avs_pb23.ExecutionReq();
|
|
15190
15594
|
request.setTaskId(workflowId);
|
|
15191
15595
|
request.setExecutionId(executionId);
|
|
15192
15596
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15199,7 +15603,7 @@ var Client = class extends BaseClient {
|
|
|
15199
15603
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15200
15604
|
*/
|
|
15201
15605
|
async getWorkflow(id, options) {
|
|
15202
|
-
const request = new
|
|
15606
|
+
const request = new avs_pb23.IdReq();
|
|
15203
15607
|
request.setId(id);
|
|
15204
15608
|
const result = await this.sendGrpcRequest(
|
|
15205
15609
|
"getTask",
|
|
@@ -15209,23 +15613,94 @@ var Client = class extends BaseClient {
|
|
|
15209
15613
|
return workflow_default.fromResponse(result);
|
|
15210
15614
|
}
|
|
15211
15615
|
/**
|
|
15212
|
-
* Trigger a workflow
|
|
15213
|
-
* @param {
|
|
15616
|
+
* Trigger a workflow with the new flattened trigger data structure
|
|
15617
|
+
* @param {Object} params - The trigger parameters
|
|
15214
15618
|
* @param {string} params.id - The workflow id
|
|
15215
|
-
* @param {
|
|
15216
|
-
* @param {boolean}
|
|
15217
|
-
* @param {RequestOptions}
|
|
15218
|
-
* @returns {Promise<avs_pb.
|
|
15619
|
+
* @param {TriggerDataProps} params.triggerData - The trigger data
|
|
15620
|
+
* @param {boolean} params.isBlocking - Whether to block until execution completes
|
|
15621
|
+
* @param {RequestOptions} options - Request options
|
|
15622
|
+
* @returns {Promise<avs_pb.TriggerTaskResp.AsObject>} - The response from triggering the workflow
|
|
15219
15623
|
*/
|
|
15220
15624
|
async triggerWorkflow({
|
|
15221
15625
|
id,
|
|
15222
|
-
|
|
15626
|
+
triggerData,
|
|
15223
15627
|
isBlocking = false
|
|
15224
15628
|
}, options) {
|
|
15225
|
-
const request = new
|
|
15629
|
+
const request = new avs_pb23.TriggerTaskReq();
|
|
15226
15630
|
request.setTaskId(id);
|
|
15227
|
-
request.
|
|
15631
|
+
request.setTriggerType(import_types20.TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
15228
15632
|
request.setIsBlocking(isBlocking);
|
|
15633
|
+
switch (triggerData.type) {
|
|
15634
|
+
case import_types20.TriggerType.FixedTime: {
|
|
15635
|
+
const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
|
|
15636
|
+
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15637
|
+
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15638
|
+
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15639
|
+
break;
|
|
15640
|
+
}
|
|
15641
|
+
case import_types20.TriggerType.Cron: {
|
|
15642
|
+
const cronOutput = new avs_pb23.CronTrigger.Output();
|
|
15643
|
+
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15644
|
+
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15645
|
+
request.setCronTrigger(cronOutput);
|
|
15646
|
+
break;
|
|
15647
|
+
}
|
|
15648
|
+
case import_types20.TriggerType.Block: {
|
|
15649
|
+
const blockData = triggerData;
|
|
15650
|
+
const blockOutput = new avs_pb23.BlockTrigger.Output();
|
|
15651
|
+
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15652
|
+
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15653
|
+
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
15654
|
+
if (blockData.parentHash) blockOutput.setParentHash(blockData.parentHash);
|
|
15655
|
+
if (blockData.difficulty) blockOutput.setDifficulty(blockData.difficulty);
|
|
15656
|
+
if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
|
|
15657
|
+
if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
|
|
15658
|
+
request.setBlockTrigger(blockOutput);
|
|
15659
|
+
break;
|
|
15660
|
+
}
|
|
15661
|
+
case import_types20.TriggerType.Event: {
|
|
15662
|
+
const eventData = triggerData;
|
|
15663
|
+
const eventOutput = new avs_pb23.EventTrigger.Output();
|
|
15664
|
+
if (eventData.evmLog) {
|
|
15665
|
+
const evmLog = new avs_pb23.Evm.Log();
|
|
15666
|
+
evmLog.setAddress(eventData.evmLog.address);
|
|
15667
|
+
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15668
|
+
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
15669
|
+
evmLog.setIndex(eventData.evmLog.index);
|
|
15670
|
+
eventOutput.setEvmLog(evmLog);
|
|
15671
|
+
}
|
|
15672
|
+
if (eventData.transferLog) {
|
|
15673
|
+
const transferLog = new avs_pb23.EventTrigger.TransferLogOutput();
|
|
15674
|
+
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15675
|
+
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15676
|
+
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
15677
|
+
transferLog.setTransactionHash(eventData.transferLog.transactionHash);
|
|
15678
|
+
transferLog.setAddress(eventData.transferLog.address);
|
|
15679
|
+
transferLog.setBlockNumber(eventData.transferLog.blockNumber);
|
|
15680
|
+
transferLog.setBlockTimestamp(eventData.transferLog.blockTimestamp);
|
|
15681
|
+
transferLog.setFromAddress(eventData.transferLog.fromAddress);
|
|
15682
|
+
transferLog.setToAddress(eventData.transferLog.toAddress);
|
|
15683
|
+
transferLog.setValue(eventData.transferLog.value);
|
|
15684
|
+
transferLog.setValueFormatted(eventData.transferLog.valueFormatted);
|
|
15685
|
+
transferLog.setTransactionIndex(eventData.transferLog.transactionIndex);
|
|
15686
|
+
transferLog.setLogIndex(eventData.transferLog.logIndex);
|
|
15687
|
+
eventOutput.setTransferLog(transferLog);
|
|
15688
|
+
}
|
|
15689
|
+
request.setEventTrigger(eventOutput);
|
|
15690
|
+
break;
|
|
15691
|
+
}
|
|
15692
|
+
case import_types20.TriggerType.Manual: {
|
|
15693
|
+
const manualData = triggerData;
|
|
15694
|
+
const manualOutput = new avs_pb23.ManualTrigger.Output();
|
|
15695
|
+
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15696
|
+
request.setManualTrigger(manualOutput);
|
|
15697
|
+
break;
|
|
15698
|
+
}
|
|
15699
|
+
case import_types20.TriggerType.Unspecified:
|
|
15700
|
+
break;
|
|
15701
|
+
default:
|
|
15702
|
+
throw new Error(`Unsupported trigger type: ${triggerData.type}`);
|
|
15703
|
+
}
|
|
15229
15704
|
const result = await this.sendGrpcRequest("triggerTask", request, options);
|
|
15230
15705
|
return result.toObject();
|
|
15231
15706
|
}
|
|
@@ -15236,7 +15711,7 @@ var Client = class extends BaseClient {
|
|
|
15236
15711
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15237
15712
|
*/
|
|
15238
15713
|
async cancelWorkflow(id, options) {
|
|
15239
|
-
const request = new
|
|
15714
|
+
const request = new avs_pb23.IdReq();
|
|
15240
15715
|
request.setId(id);
|
|
15241
15716
|
const result = await this.sendGrpcRequest(
|
|
15242
15717
|
"cancelTask",
|
|
@@ -15252,7 +15727,7 @@ var Client = class extends BaseClient {
|
|
|
15252
15727
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15253
15728
|
*/
|
|
15254
15729
|
async deleteWorkflow(id, options) {
|
|
15255
|
-
const request = new
|
|
15730
|
+
const request = new avs_pb23.IdReq();
|
|
15256
15731
|
request.setId(id);
|
|
15257
15732
|
const result = await this.sendGrpcRequest(
|
|
15258
15733
|
"deleteTask",
|
|
@@ -15272,7 +15747,7 @@ var Client = class extends BaseClient {
|
|
|
15272
15747
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15273
15748
|
*/
|
|
15274
15749
|
async createSecret(name, value, options) {
|
|
15275
|
-
const request = new
|
|
15750
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
15276
15751
|
request.setName(name);
|
|
15277
15752
|
request.setSecret(value);
|
|
15278
15753
|
if (options?.workflowId) {
|
|
@@ -15295,7 +15770,7 @@ var Client = class extends BaseClient {
|
|
|
15295
15770
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15296
15771
|
*/
|
|
15297
15772
|
async updateSecret(name, value, options) {
|
|
15298
|
-
const request = new
|
|
15773
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
15299
15774
|
request.setName(name);
|
|
15300
15775
|
request.setSecret(value);
|
|
15301
15776
|
if (options?.workflowId) {
|
|
@@ -15322,7 +15797,7 @@ var Client = class extends BaseClient {
|
|
|
15322
15797
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15323
15798
|
*/
|
|
15324
15799
|
async getSecrets(options) {
|
|
15325
|
-
const request = new
|
|
15800
|
+
const request = new avs_pb23.ListSecretsReq();
|
|
15326
15801
|
if (options?.workflowId) {
|
|
15327
15802
|
request.setWorkflowId(options.workflowId);
|
|
15328
15803
|
}
|
|
@@ -15377,7 +15852,7 @@ var Client = class extends BaseClient {
|
|
|
15377
15852
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15378
15853
|
*/
|
|
15379
15854
|
async deleteSecret(name, options) {
|
|
15380
|
-
const request = new
|
|
15855
|
+
const request = new avs_pb23.DeleteSecretReq();
|
|
15381
15856
|
request.setName(name);
|
|
15382
15857
|
if (options?.workflowId) {
|
|
15383
15858
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15398,80 +15873,40 @@ var Client = class extends BaseClient {
|
|
|
15398
15873
|
* @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
|
|
15399
15874
|
*/
|
|
15400
15875
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
if (triggerTypes.includes(nodeType)) {
|
|
15410
|
-
return {
|
|
15411
|
-
success: false,
|
|
15412
|
-
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
15413
|
-
nodeId: ""
|
|
15414
|
-
};
|
|
15415
|
-
}
|
|
15416
|
-
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15417
|
-
const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
|
|
15418
|
-
request.setNodeType(protobufNodeType);
|
|
15419
|
-
const nodeConfigMap = request.getNodeConfigMap();
|
|
15420
|
-
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
15421
|
-
nodeConfigMap.set(key, this.convertJSValueToProtobuf(value));
|
|
15422
|
-
}
|
|
15423
|
-
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
15424
|
-
const inputVarsMap = request.getInputVariablesMap();
|
|
15425
|
-
for (const [key, value] of Object.entries(inputVariables)) {
|
|
15426
|
-
inputVarsMap.set(key, this.convertJSValueToProtobuf(value));
|
|
15427
|
-
}
|
|
15428
|
-
}
|
|
15429
|
-
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
15430
|
-
let data;
|
|
15431
|
-
const outputCase = result.getOutputDataCase();
|
|
15432
|
-
if (outputCase !== avs_pb22.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET) {
|
|
15433
|
-
switch (outputCase) {
|
|
15434
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
15435
|
-
data = result.getEthTransfer()?.toObject();
|
|
15436
|
-
break;
|
|
15437
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
15438
|
-
data = result.getGraphql()?.toObject();
|
|
15439
|
-
break;
|
|
15440
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
15441
|
-
data = result.getContractRead()?.toObject();
|
|
15442
|
-
break;
|
|
15443
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
15444
|
-
data = result.getContractWrite()?.toObject();
|
|
15445
|
-
break;
|
|
15446
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
15447
|
-
data = result.getCustomCode()?.toObject();
|
|
15448
|
-
break;
|
|
15449
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
15450
|
-
data = result.getRestApi()?.toObject();
|
|
15451
|
-
break;
|
|
15452
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
15453
|
-
data = result.getBranch()?.toObject();
|
|
15454
|
-
break;
|
|
15455
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
15456
|
-
data = result.getFilter()?.toObject();
|
|
15457
|
-
break;
|
|
15458
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
15459
|
-
data = result.getLoop()?.toObject();
|
|
15460
|
-
break;
|
|
15461
|
-
}
|
|
15462
|
-
}
|
|
15463
|
-
return {
|
|
15464
|
-
success: result.getSuccess(),
|
|
15465
|
-
data,
|
|
15466
|
-
error: result.getError(),
|
|
15467
|
-
nodeId: result.getNodeId()
|
|
15468
|
-
};
|
|
15469
|
-
} catch (error) {
|
|
15876
|
+
const triggerTypes = [
|
|
15877
|
+
import_types20.TriggerType.Block,
|
|
15878
|
+
import_types20.TriggerType.FixedTime,
|
|
15879
|
+
import_types20.TriggerType.Cron,
|
|
15880
|
+
import_types20.TriggerType.Event,
|
|
15881
|
+
import_types20.TriggerType.Manual
|
|
15882
|
+
];
|
|
15883
|
+
if (triggerTypes.includes(nodeType)) {
|
|
15470
15884
|
return {
|
|
15471
15885
|
success: false,
|
|
15472
|
-
error:
|
|
15886
|
+
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
15887
|
+
nodeId: ""
|
|
15473
15888
|
};
|
|
15474
15889
|
}
|
|
15890
|
+
const request = new avs_pb23.RunNodeWithInputsReq();
|
|
15891
|
+
const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
|
|
15892
|
+
request.setNodeType(protobufNodeType);
|
|
15893
|
+
const nodeConfigMap = request.getNodeConfigMap();
|
|
15894
|
+
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
15895
|
+
nodeConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
15896
|
+
}
|
|
15897
|
+
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
15898
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
15899
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
15900
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
15901
|
+
}
|
|
15902
|
+
}
|
|
15903
|
+
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
15904
|
+
return {
|
|
15905
|
+
success: result.getSuccess(),
|
|
15906
|
+
data: factory_default2.fromOutputData(result),
|
|
15907
|
+
error: result.getError(),
|
|
15908
|
+
nodeId: result.getNodeId()
|
|
15909
|
+
};
|
|
15475
15910
|
}
|
|
15476
15911
|
/**
|
|
15477
15912
|
* Run a trigger for testing purposes
|
|
@@ -15482,45 +15917,20 @@ var Client = class extends BaseClient {
|
|
|
15482
15917
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15483
15918
|
*/
|
|
15484
15919
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
data = result.getBlockTrigger()?.toObject();
|
|
15500
|
-
break;
|
|
15501
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15502
|
-
data = result.getFixedTimeTrigger()?.toObject();
|
|
15503
|
-
break;
|
|
15504
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.CRON_TRIGGER:
|
|
15505
|
-
data = result.getCronTrigger()?.toObject();
|
|
15506
|
-
break;
|
|
15507
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.EVENT_TRIGGER:
|
|
15508
|
-
data = result.getEventTrigger()?.toObject();
|
|
15509
|
-
break;
|
|
15510
|
-
}
|
|
15511
|
-
}
|
|
15512
|
-
return {
|
|
15513
|
-
success: result.getSuccess(),
|
|
15514
|
-
data,
|
|
15515
|
-
error: result.getError(),
|
|
15516
|
-
triggerId: result.getTriggerId()
|
|
15517
|
-
};
|
|
15518
|
-
} catch (error) {
|
|
15519
|
-
return {
|
|
15520
|
-
success: false,
|
|
15521
|
-
error: error.message || "An error occurred"
|
|
15522
|
-
};
|
|
15523
|
-
}
|
|
15920
|
+
const request = new avs_pb23.RunTriggerReq();
|
|
15921
|
+
const protobufTriggerType = import_types20.TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15922
|
+
request.setTriggerType(protobufTriggerType);
|
|
15923
|
+
const triggerConfigMap = request.getTriggerConfigMap();
|
|
15924
|
+
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
15925
|
+
triggerConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
15926
|
+
}
|
|
15927
|
+
const result = await this.sendGrpcRequest("runTrigger", request, options);
|
|
15928
|
+
return {
|
|
15929
|
+
success: result.getSuccess(),
|
|
15930
|
+
data: factory_default.fromOutputData(result),
|
|
15931
|
+
error: result.getError(),
|
|
15932
|
+
triggerId: result.getTriggerId()
|
|
15933
|
+
};
|
|
15524
15934
|
}
|
|
15525
15935
|
};
|
|
15526
15936
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -15549,6 +15959,5 @@ var Client = class extends BaseClient {
|
|
|
15549
15959
|
Step,
|
|
15550
15960
|
Trigger,
|
|
15551
15961
|
TriggerFactory,
|
|
15552
|
-
TriggerReason,
|
|
15553
15962
|
Workflow
|
|
15554
15963
|
});
|