@avaprotocol/sdk-js 1.6.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts +25 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +741 -15847
- package/dist/index.mjs +1401 -973
- package/dist/models/execution.d.ts +6 -14
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +2 -43
- package/dist/models/step.d.ts +7 -5
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +48 -15
- package/dist/models/trigger/cron.d.ts +1 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +9 -1
- package/dist/models/trigger/fixedTime.d.ts +1 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +9 -1
- package/dist/utils.d.ts +23 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +79 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -53,8 +53,6 @@ var require_avs_pb = __commonJS({
|
|
|
53
53
|
}.call(null);
|
|
54
54
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
|
-
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
57
|
-
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
58
56
|
var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
|
|
59
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
60
58
|
var google_protobuf_struct_pb = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
@@ -96,7 +94,6 @@ var require_avs_pb = __commonJS({
|
|
|
96
94
|
goog.exportSymbol("proto.aggregator.Evm.TransactionReceipt", null, global);
|
|
97
95
|
goog.exportSymbol("proto.aggregator.Evm.UserOp", null, global);
|
|
98
96
|
goog.exportSymbol("proto.aggregator.Execution", null, global);
|
|
99
|
-
goog.exportSymbol("proto.aggregator.Execution.OutputDataCase", null, global);
|
|
100
97
|
goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
|
|
101
98
|
goog.exportSymbol("proto.aggregator.Execution.Step.OutputDataCase", null, global);
|
|
102
99
|
goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
|
|
@@ -155,6 +152,7 @@ var require_avs_pb = __commonJS({
|
|
|
155
152
|
goog.exportSymbol("proto.aggregator.RunTriggerResp.OutputDataCase", null, global);
|
|
156
153
|
goog.exportSymbol("proto.aggregator.Secret", null, global);
|
|
157
154
|
goog.exportSymbol("proto.aggregator.SetWalletReq", null, global);
|
|
155
|
+
goog.exportSymbol("proto.aggregator.SimulateTaskReq", null, global);
|
|
158
156
|
goog.exportSymbol("proto.aggregator.SmartWallet", null, global);
|
|
159
157
|
goog.exportSymbol("proto.aggregator.Task", null, global);
|
|
160
158
|
goog.exportSymbol("proto.aggregator.TaskEdge", null, global);
|
|
@@ -163,10 +161,10 @@ var require_avs_pb = __commonJS({
|
|
|
163
161
|
goog.exportSymbol("proto.aggregator.TaskStatus", null, global);
|
|
164
162
|
goog.exportSymbol("proto.aggregator.TaskTrigger", null, global);
|
|
165
163
|
goog.exportSymbol("proto.aggregator.TaskTrigger.TriggerTypeCase", null, global);
|
|
166
|
-
goog.exportSymbol("proto.aggregator.
|
|
164
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskReq", null, global);
|
|
165
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
|
|
166
|
+
goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
|
|
167
167
|
goog.exportSymbol("proto.aggregator.TriggerType", null, global);
|
|
168
|
-
goog.exportSymbol("proto.aggregator.UserTriggerTaskReq", null, global);
|
|
169
|
-
goog.exportSymbol("proto.aggregator.UserTriggerTaskResp", null, global);
|
|
170
168
|
proto.aggregator.IdReq = function(opt_data) {
|
|
171
169
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
172
170
|
};
|
|
@@ -511,7 +509,7 @@ var require_avs_pb = __commonJS({
|
|
|
511
509
|
proto.aggregator.TaskNode.displayName = "proto.aggregator.TaskNode";
|
|
512
510
|
}
|
|
513
511
|
proto.aggregator.Execution = function(opt_data) {
|
|
514
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_,
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_, null);
|
|
515
513
|
};
|
|
516
514
|
goog.inherits(proto.aggregator.Execution, jspb.Message);
|
|
517
515
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -636,13 +634,6 @@ var require_avs_pb = __commonJS({
|
|
|
636
634
|
if (goog.DEBUG && !COMPILED) {
|
|
637
635
|
proto.aggregator.KeyResp.displayName = "proto.aggregator.KeyResp";
|
|
638
636
|
}
|
|
639
|
-
proto.aggregator.TriggerReason = function(opt_data) {
|
|
640
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
641
|
-
};
|
|
642
|
-
goog.inherits(proto.aggregator.TriggerReason, jspb.Message);
|
|
643
|
-
if (goog.DEBUG && !COMPILED) {
|
|
644
|
-
proto.aggregator.TriggerReason.displayName = "proto.aggregator.TriggerReason";
|
|
645
|
-
}
|
|
646
637
|
proto.aggregator.GetWalletReq = function(opt_data) {
|
|
647
638
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
648
639
|
};
|
|
@@ -664,19 +655,19 @@ var require_avs_pb = __commonJS({
|
|
|
664
655
|
if (goog.DEBUG && !COMPILED) {
|
|
665
656
|
proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
|
|
666
657
|
}
|
|
667
|
-
proto.aggregator.
|
|
668
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
658
|
+
proto.aggregator.TriggerTaskReq = function(opt_data) {
|
|
659
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TriggerTaskReq.oneofGroups_);
|
|
669
660
|
};
|
|
670
|
-
goog.inherits(proto.aggregator.
|
|
661
|
+
goog.inherits(proto.aggregator.TriggerTaskReq, jspb.Message);
|
|
671
662
|
if (goog.DEBUG && !COMPILED) {
|
|
672
|
-
proto.aggregator.
|
|
663
|
+
proto.aggregator.TriggerTaskReq.displayName = "proto.aggregator.TriggerTaskReq";
|
|
673
664
|
}
|
|
674
|
-
proto.aggregator.
|
|
665
|
+
proto.aggregator.TriggerTaskResp = function(opt_data) {
|
|
675
666
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
676
667
|
};
|
|
677
|
-
goog.inherits(proto.aggregator.
|
|
668
|
+
goog.inherits(proto.aggregator.TriggerTaskResp, jspb.Message);
|
|
678
669
|
if (goog.DEBUG && !COMPILED) {
|
|
679
|
-
proto.aggregator.
|
|
670
|
+
proto.aggregator.TriggerTaskResp.displayName = "proto.aggregator.TriggerTaskResp";
|
|
680
671
|
}
|
|
681
672
|
proto.aggregator.CreateOrUpdateSecretReq = function(opt_data) {
|
|
682
673
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
@@ -832,6 +823,13 @@ var require_avs_pb = __commonJS({
|
|
|
832
823
|
if (goog.DEBUG && !COMPILED) {
|
|
833
824
|
proto.aggregator.Evm.UserOp.displayName = "proto.aggregator.Evm.UserOp";
|
|
834
825
|
}
|
|
826
|
+
proto.aggregator.SimulateTaskReq = function(opt_data) {
|
|
827
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.SimulateTaskReq.repeatedFields_, null);
|
|
828
|
+
};
|
|
829
|
+
goog.inherits(proto.aggregator.SimulateTaskReq, jspb.Message);
|
|
830
|
+
if (goog.DEBUG && !COMPILED) {
|
|
831
|
+
proto.aggregator.SimulateTaskReq.displayName = "proto.aggregator.SimulateTaskReq";
|
|
832
|
+
}
|
|
835
833
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
836
834
|
proto.aggregator.IdReq.prototype.toObject = function(opt_includeInstance) {
|
|
837
835
|
return proto.aggregator.IdReq.toObject(opt_includeInstance, this);
|
|
@@ -1029,7 +1027,8 @@ var require_avs_pb = __commonJS({
|
|
|
1029
1027
|
};
|
|
1030
1028
|
proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1031
1029
|
var f, obj = {
|
|
1032
|
-
|
|
1030
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1031
|
+
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1033
1032
|
};
|
|
1034
1033
|
if (includeInstance) {
|
|
1035
1034
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1054,7 +1053,14 @@ var require_avs_pb = __commonJS({
|
|
|
1054
1053
|
/** @type {number} */
|
|
1055
1054
|
reader.readUint64()
|
|
1056
1055
|
);
|
|
1057
|
-
msg.
|
|
1056
|
+
msg.setTimestamp(value);
|
|
1057
|
+
break;
|
|
1058
|
+
case 2:
|
|
1059
|
+
var value = (
|
|
1060
|
+
/** @type {string} */
|
|
1061
|
+
reader.readString()
|
|
1062
|
+
);
|
|
1063
|
+
msg.setTimestampIso(value);
|
|
1058
1064
|
break;
|
|
1059
1065
|
default:
|
|
1060
1066
|
reader.skipField();
|
|
@@ -1070,23 +1076,39 @@ var require_avs_pb = __commonJS({
|
|
|
1070
1076
|
};
|
|
1071
1077
|
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1072
1078
|
var f = void 0;
|
|
1073
|
-
f = message.
|
|
1079
|
+
f = message.getTimestamp();
|
|
1074
1080
|
if (f !== 0) {
|
|
1075
1081
|
writer.writeUint64(
|
|
1076
1082
|
1,
|
|
1077
1083
|
f
|
|
1078
1084
|
);
|
|
1079
1085
|
}
|
|
1086
|
+
f = message.getTimestampIso();
|
|
1087
|
+
if (f.length > 0) {
|
|
1088
|
+
writer.writeString(
|
|
1089
|
+
2,
|
|
1090
|
+
f
|
|
1091
|
+
);
|
|
1092
|
+
}
|
|
1080
1093
|
};
|
|
1081
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1094
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestamp = function() {
|
|
1082
1095
|
return (
|
|
1083
1096
|
/** @type {number} */
|
|
1084
1097
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
1085
1098
|
);
|
|
1086
1099
|
};
|
|
1087
|
-
proto.aggregator.FixedTimeTrigger.Output.prototype.
|
|
1100
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestamp = function(value) {
|
|
1088
1101
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1089
1102
|
};
|
|
1103
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestampIso = function() {
|
|
1104
|
+
return (
|
|
1105
|
+
/** @type {string} */
|
|
1106
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1107
|
+
);
|
|
1108
|
+
};
|
|
1109
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestampIso = function(value) {
|
|
1110
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1111
|
+
};
|
|
1090
1112
|
proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
|
|
1091
1113
|
return (
|
|
1092
1114
|
/** @type{?proto.aggregator.FixedTimeTrigger.Config} */
|
|
@@ -1233,8 +1255,8 @@ var require_avs_pb = __commonJS({
|
|
|
1233
1255
|
};
|
|
1234
1256
|
proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1235
1257
|
var f, obj = {
|
|
1236
|
-
|
|
1237
|
-
|
|
1258
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1259
|
+
timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1238
1260
|
};
|
|
1239
1261
|
if (includeInstance) {
|
|
1240
1262
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1259,14 +1281,14 @@ var require_avs_pb = __commonJS({
|
|
|
1259
1281
|
/** @type {number} */
|
|
1260
1282
|
reader.readUint64()
|
|
1261
1283
|
);
|
|
1262
|
-
msg.
|
|
1284
|
+
msg.setTimestamp(value);
|
|
1263
1285
|
break;
|
|
1264
1286
|
case 2:
|
|
1265
1287
|
var value = (
|
|
1266
1288
|
/** @type {string} */
|
|
1267
1289
|
reader.readString()
|
|
1268
1290
|
);
|
|
1269
|
-
msg.
|
|
1291
|
+
msg.setTimestampIso(value);
|
|
1270
1292
|
break;
|
|
1271
1293
|
default:
|
|
1272
1294
|
reader.skipField();
|
|
@@ -1282,14 +1304,14 @@ var require_avs_pb = __commonJS({
|
|
|
1282
1304
|
};
|
|
1283
1305
|
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
1284
1306
|
var f = void 0;
|
|
1285
|
-
f = message.
|
|
1307
|
+
f = message.getTimestamp();
|
|
1286
1308
|
if (f !== 0) {
|
|
1287
1309
|
writer.writeUint64(
|
|
1288
1310
|
1,
|
|
1289
1311
|
f
|
|
1290
1312
|
);
|
|
1291
1313
|
}
|
|
1292
|
-
f = message.
|
|
1314
|
+
f = message.getTimestampIso();
|
|
1293
1315
|
if (f.length > 0) {
|
|
1294
1316
|
writer.writeString(
|
|
1295
1317
|
2,
|
|
@@ -1297,22 +1319,22 @@ var require_avs_pb = __commonJS({
|
|
|
1297
1319
|
);
|
|
1298
1320
|
}
|
|
1299
1321
|
};
|
|
1300
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1322
|
+
proto.aggregator.CronTrigger.Output.prototype.getTimestamp = function() {
|
|
1301
1323
|
return (
|
|
1302
1324
|
/** @type {number} */
|
|
1303
1325
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
1304
1326
|
);
|
|
1305
1327
|
};
|
|
1306
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1328
|
+
proto.aggregator.CronTrigger.Output.prototype.setTimestamp = function(value) {
|
|
1307
1329
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1308
1330
|
};
|
|
1309
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1331
|
+
proto.aggregator.CronTrigger.Output.prototype.getTimestampIso = function() {
|
|
1310
1332
|
return (
|
|
1311
1333
|
/** @type {string} */
|
|
1312
1334
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
1313
1335
|
);
|
|
1314
1336
|
};
|
|
1315
|
-
proto.aggregator.CronTrigger.Output.prototype.
|
|
1337
|
+
proto.aggregator.CronTrigger.Output.prototype.setTimestampIso = function(value) {
|
|
1316
1338
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1317
1339
|
};
|
|
1318
1340
|
proto.aggregator.CronTrigger.prototype.getConfig = function() {
|
|
@@ -5823,20 +5845,6 @@ var require_avs_pb = __commonJS({
|
|
|
5823
5845
|
return jspb.Message.getField(this, 18) != null;
|
|
5824
5846
|
};
|
|
5825
5847
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
5826
|
-
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13]];
|
|
5827
|
-
proto.aggregator.Execution.OutputDataCase = {
|
|
5828
|
-
OUTPUT_DATA_NOT_SET: 0,
|
|
5829
|
-
BLOCK_TRIGGER: 10,
|
|
5830
|
-
FIXED_TIME_TRIGGER: 11,
|
|
5831
|
-
CRON_TRIGGER: 12,
|
|
5832
|
-
EVENT_TRIGGER: 13
|
|
5833
|
-
};
|
|
5834
|
-
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
5835
|
-
return (
|
|
5836
|
-
/** @type {proto.aggregator.Execution.OutputDataCase} */
|
|
5837
|
-
jspb.Message.computeOneofCase(this, proto.aggregator.Execution.oneofGroups_[0])
|
|
5838
|
-
);
|
|
5839
|
-
};
|
|
5840
5848
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5841
5849
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
5842
5850
|
return proto.aggregator.Execution.toObject(opt_includeInstance, this);
|
|
@@ -5848,17 +5856,11 @@ var require_avs_pb = __commonJS({
|
|
|
5848
5856
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5849
5857
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5850
5858
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5851
|
-
reason: (f = msg.getReason()) && proto.aggregator.TriggerReason.toObject(includeInstance, f),
|
|
5852
5859
|
stepsList: jspb.Message.toObjectList(
|
|
5853
5860
|
msg.getStepsList(),
|
|
5854
5861
|
proto.aggregator.Execution.Step.toObject,
|
|
5855
5862
|
includeInstance
|
|
5856
|
-
)
|
|
5857
|
-
triggerName: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5858
|
-
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
5859
|
-
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
5860
|
-
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
5861
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f)
|
|
5863
|
+
)
|
|
5862
5864
|
};
|
|
5863
5865
|
if (includeInstance) {
|
|
5864
5866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5913,43 +5915,11 @@ var require_avs_pb = __commonJS({
|
|
|
5913
5915
|
);
|
|
5914
5916
|
msg.setError(value);
|
|
5915
5917
|
break;
|
|
5916
|
-
case 6:
|
|
5917
|
-
var value = new proto.aggregator.TriggerReason();
|
|
5918
|
-
reader.readMessage(value, proto.aggregator.TriggerReason.deserializeBinaryFromReader);
|
|
5919
|
-
msg.setReason(value);
|
|
5920
|
-
break;
|
|
5921
5918
|
case 8:
|
|
5922
5919
|
var value = new proto.aggregator.Execution.Step();
|
|
5923
5920
|
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
5924
5921
|
msg.addSteps(value);
|
|
5925
5922
|
break;
|
|
5926
|
-
case 9:
|
|
5927
|
-
var value = (
|
|
5928
|
-
/** @type {string} */
|
|
5929
|
-
reader.readString()
|
|
5930
|
-
);
|
|
5931
|
-
msg.setTriggerName(value);
|
|
5932
|
-
break;
|
|
5933
|
-
case 10:
|
|
5934
|
-
var value = new proto.aggregator.BlockTrigger.Output();
|
|
5935
|
-
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
5936
|
-
msg.setBlockTrigger(value);
|
|
5937
|
-
break;
|
|
5938
|
-
case 11:
|
|
5939
|
-
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
5940
|
-
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
5941
|
-
msg.setFixedTimeTrigger(value);
|
|
5942
|
-
break;
|
|
5943
|
-
case 12:
|
|
5944
|
-
var value = new proto.aggregator.CronTrigger.Output();
|
|
5945
|
-
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
5946
|
-
msg.setCronTrigger(value);
|
|
5947
|
-
break;
|
|
5948
|
-
case 13:
|
|
5949
|
-
var value = new proto.aggregator.EventTrigger.Output();
|
|
5950
|
-
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
5951
|
-
msg.setEventTrigger(value);
|
|
5952
|
-
break;
|
|
5953
5923
|
default:
|
|
5954
5924
|
reader.skipField();
|
|
5955
5925
|
break;
|
|
@@ -5999,14 +5969,6 @@ var require_avs_pb = __commonJS({
|
|
|
5999
5969
|
f
|
|
6000
5970
|
);
|
|
6001
5971
|
}
|
|
6002
|
-
f = message.getReason();
|
|
6003
|
-
if (f != null) {
|
|
6004
|
-
writer.writeMessage(
|
|
6005
|
-
6,
|
|
6006
|
-
f,
|
|
6007
|
-
proto.aggregator.TriggerReason.serializeBinaryToWriter
|
|
6008
|
-
);
|
|
6009
|
-
}
|
|
6010
5972
|
f = message.getStepsList();
|
|
6011
5973
|
if (f.length > 0) {
|
|
6012
5974
|
writer.writeRepeatedMessage(
|
|
@@ -6015,50 +5977,16 @@ var require_avs_pb = __commonJS({
|
|
|
6015
5977
|
proto.aggregator.Execution.Step.serializeBinaryToWriter
|
|
6016
5978
|
);
|
|
6017
5979
|
}
|
|
6018
|
-
f = message.getTriggerName();
|
|
6019
|
-
if (f.length > 0) {
|
|
6020
|
-
writer.writeString(
|
|
6021
|
-
9,
|
|
6022
|
-
f
|
|
6023
|
-
);
|
|
6024
|
-
}
|
|
6025
|
-
f = message.getBlockTrigger();
|
|
6026
|
-
if (f != null) {
|
|
6027
|
-
writer.writeMessage(
|
|
6028
|
-
10,
|
|
6029
|
-
f,
|
|
6030
|
-
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6031
|
-
);
|
|
6032
|
-
}
|
|
6033
|
-
f = message.getFixedTimeTrigger();
|
|
6034
|
-
if (f != null) {
|
|
6035
|
-
writer.writeMessage(
|
|
6036
|
-
11,
|
|
6037
|
-
f,
|
|
6038
|
-
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6039
|
-
);
|
|
6040
|
-
}
|
|
6041
|
-
f = message.getCronTrigger();
|
|
6042
|
-
if (f != null) {
|
|
6043
|
-
writer.writeMessage(
|
|
6044
|
-
12,
|
|
6045
|
-
f,
|
|
6046
|
-
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6047
|
-
);
|
|
6048
|
-
}
|
|
6049
|
-
f = message.getEventTrigger();
|
|
6050
|
-
if (f != null) {
|
|
6051
|
-
writer.writeMessage(
|
|
6052
|
-
13,
|
|
6053
|
-
f,
|
|
6054
|
-
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6055
|
-
);
|
|
6056
|
-
}
|
|
6057
5980
|
};
|
|
6058
5981
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
6059
|
-
proto.aggregator.Execution.Step.oneofGroups_ = [[3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
5982
|
+
proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
6060
5983
|
proto.aggregator.Execution.Step.OutputDataCase = {
|
|
6061
5984
|
OUTPUT_DATA_NOT_SET: 0,
|
|
5985
|
+
BLOCK_TRIGGER: 20,
|
|
5986
|
+
FIXED_TIME_TRIGGER: 21,
|
|
5987
|
+
CRON_TRIGGER: 22,
|
|
5988
|
+
EVENT_TRIGGER: 23,
|
|
5989
|
+
MANUAL_TRIGGER: 24,
|
|
6062
5990
|
ETH_TRANSFER: 3,
|
|
6063
5991
|
GRAPHQL: 4,
|
|
6064
5992
|
CONTRACT_READ: 5,
|
|
@@ -6081,8 +6009,18 @@ var require_avs_pb = __commonJS({
|
|
|
6081
6009
|
};
|
|
6082
6010
|
proto.aggregator.Execution.Step.toObject = function(includeInstance, msg) {
|
|
6083
6011
|
var f, obj = {
|
|
6084
|
-
|
|
6012
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6013
|
+
type: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
6014
|
+
name: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
6085
6015
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6016
|
+
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6017
|
+
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6018
|
+
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
6019
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
6020
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
6021
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
6022
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
6023
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
6086
6024
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
6087
6025
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
6088
6026
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -6092,11 +6030,8 @@ var require_avs_pb = __commonJS({
|
|
|
6092
6030
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
6093
6031
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
6094
6032
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
6095
|
-
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6096
|
-
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6097
6033
|
startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
6098
|
-
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6099
|
-
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f
|
|
6034
|
+
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6100
6035
|
};
|
|
6101
6036
|
if (includeInstance) {
|
|
6102
6037
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6121,7 +6056,21 @@ var require_avs_pb = __commonJS({
|
|
|
6121
6056
|
/** @type {string} */
|
|
6122
6057
|
reader.readString()
|
|
6123
6058
|
);
|
|
6124
|
-
msg.
|
|
6059
|
+
msg.setId(value);
|
|
6060
|
+
break;
|
|
6061
|
+
case 17:
|
|
6062
|
+
var value = (
|
|
6063
|
+
/** @type {string} */
|
|
6064
|
+
reader.readString()
|
|
6065
|
+
);
|
|
6066
|
+
msg.setType(value);
|
|
6067
|
+
break;
|
|
6068
|
+
case 18:
|
|
6069
|
+
var value = (
|
|
6070
|
+
/** @type {string} */
|
|
6071
|
+
reader.readString()
|
|
6072
|
+
);
|
|
6073
|
+
msg.setName(value);
|
|
6125
6074
|
break;
|
|
6126
6075
|
case 2:
|
|
6127
6076
|
var value = (
|
|
@@ -6130,6 +6079,52 @@ var require_avs_pb = __commonJS({
|
|
|
6130
6079
|
);
|
|
6131
6080
|
msg.setSuccess(value);
|
|
6132
6081
|
break;
|
|
6082
|
+
case 13:
|
|
6083
|
+
var value = (
|
|
6084
|
+
/** @type {string} */
|
|
6085
|
+
reader.readString()
|
|
6086
|
+
);
|
|
6087
|
+
msg.setError(value);
|
|
6088
|
+
break;
|
|
6089
|
+
case 12:
|
|
6090
|
+
var value = (
|
|
6091
|
+
/** @type {string} */
|
|
6092
|
+
reader.readString()
|
|
6093
|
+
);
|
|
6094
|
+
msg.setLog(value);
|
|
6095
|
+
break;
|
|
6096
|
+
case 16:
|
|
6097
|
+
var value = (
|
|
6098
|
+
/** @type {string} */
|
|
6099
|
+
reader.readString()
|
|
6100
|
+
);
|
|
6101
|
+
msg.addInputs(value);
|
|
6102
|
+
break;
|
|
6103
|
+
case 20:
|
|
6104
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
6105
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
6106
|
+
msg.setBlockTrigger(value);
|
|
6107
|
+
break;
|
|
6108
|
+
case 21:
|
|
6109
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
6110
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
6111
|
+
msg.setFixedTimeTrigger(value);
|
|
6112
|
+
break;
|
|
6113
|
+
case 22:
|
|
6114
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
6115
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
6116
|
+
msg.setCronTrigger(value);
|
|
6117
|
+
break;
|
|
6118
|
+
case 23:
|
|
6119
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
6120
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
6121
|
+
msg.setEventTrigger(value);
|
|
6122
|
+
break;
|
|
6123
|
+
case 24:
|
|
6124
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
6125
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
6126
|
+
msg.setManualTrigger(value);
|
|
6127
|
+
break;
|
|
6133
6128
|
case 3:
|
|
6134
6129
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
6135
6130
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -6175,20 +6170,6 @@ var require_avs_pb = __commonJS({
|
|
|
6175
6170
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
6176
6171
|
msg.setLoop(value);
|
|
6177
6172
|
break;
|
|
6178
|
-
case 12:
|
|
6179
|
-
var value = (
|
|
6180
|
-
/** @type {string} */
|
|
6181
|
-
reader.readString()
|
|
6182
|
-
);
|
|
6183
|
-
msg.setLog(value);
|
|
6184
|
-
break;
|
|
6185
|
-
case 13:
|
|
6186
|
-
var value = (
|
|
6187
|
-
/** @type {string} */
|
|
6188
|
-
reader.readString()
|
|
6189
|
-
);
|
|
6190
|
-
msg.setError(value);
|
|
6191
|
-
break;
|
|
6192
6173
|
case 14:
|
|
6193
6174
|
var value = (
|
|
6194
6175
|
/** @type {number} */
|
|
@@ -6203,13 +6184,6 @@ var require_avs_pb = __commonJS({
|
|
|
6203
6184
|
);
|
|
6204
6185
|
msg.setEndAt(value);
|
|
6205
6186
|
break;
|
|
6206
|
-
case 16:
|
|
6207
|
-
var value = (
|
|
6208
|
-
/** @type {string} */
|
|
6209
|
-
reader.readString()
|
|
6210
|
-
);
|
|
6211
|
-
msg.addInputs(value);
|
|
6212
|
-
break;
|
|
6213
6187
|
default:
|
|
6214
6188
|
reader.skipField();
|
|
6215
6189
|
break;
|
|
@@ -6224,13 +6198,27 @@ var require_avs_pb = __commonJS({
|
|
|
6224
6198
|
};
|
|
6225
6199
|
proto.aggregator.Execution.Step.serializeBinaryToWriter = function(message, writer) {
|
|
6226
6200
|
var f = void 0;
|
|
6227
|
-
f = message.
|
|
6201
|
+
f = message.getId();
|
|
6228
6202
|
if (f.length > 0) {
|
|
6229
6203
|
writer.writeString(
|
|
6230
6204
|
1,
|
|
6231
6205
|
f
|
|
6232
6206
|
);
|
|
6233
6207
|
}
|
|
6208
|
+
f = message.getType();
|
|
6209
|
+
if (f.length > 0) {
|
|
6210
|
+
writer.writeString(
|
|
6211
|
+
17,
|
|
6212
|
+
f
|
|
6213
|
+
);
|
|
6214
|
+
}
|
|
6215
|
+
f = message.getName();
|
|
6216
|
+
if (f.length > 0) {
|
|
6217
|
+
writer.writeString(
|
|
6218
|
+
18,
|
|
6219
|
+
f
|
|
6220
|
+
);
|
|
6221
|
+
}
|
|
6234
6222
|
f = message.getSuccess();
|
|
6235
6223
|
if (f) {
|
|
6236
6224
|
writer.writeBool(
|
|
@@ -6238,31 +6226,92 @@ var require_avs_pb = __commonJS({
|
|
|
6238
6226
|
f
|
|
6239
6227
|
);
|
|
6240
6228
|
}
|
|
6241
|
-
f = message.
|
|
6229
|
+
f = message.getError();
|
|
6230
|
+
if (f.length > 0) {
|
|
6231
|
+
writer.writeString(
|
|
6232
|
+
13,
|
|
6233
|
+
f
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
f = message.getLog();
|
|
6237
|
+
if (f.length > 0) {
|
|
6238
|
+
writer.writeString(
|
|
6239
|
+
12,
|
|
6240
|
+
f
|
|
6241
|
+
);
|
|
6242
|
+
}
|
|
6243
|
+
f = message.getInputsList();
|
|
6244
|
+
if (f.length > 0) {
|
|
6245
|
+
writer.writeRepeatedString(
|
|
6246
|
+
16,
|
|
6247
|
+
f
|
|
6248
|
+
);
|
|
6249
|
+
}
|
|
6250
|
+
f = message.getBlockTrigger();
|
|
6242
6251
|
if (f != null) {
|
|
6243
6252
|
writer.writeMessage(
|
|
6244
|
-
|
|
6253
|
+
20,
|
|
6245
6254
|
f,
|
|
6246
|
-
proto.aggregator.
|
|
6255
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6247
6256
|
);
|
|
6248
6257
|
}
|
|
6249
|
-
f = message.
|
|
6258
|
+
f = message.getFixedTimeTrigger();
|
|
6250
6259
|
if (f != null) {
|
|
6251
6260
|
writer.writeMessage(
|
|
6252
|
-
|
|
6261
|
+
21,
|
|
6253
6262
|
f,
|
|
6254
|
-
proto.aggregator.
|
|
6263
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6255
6264
|
);
|
|
6256
6265
|
}
|
|
6257
|
-
f = message.
|
|
6266
|
+
f = message.getCronTrigger();
|
|
6258
6267
|
if (f != null) {
|
|
6259
6268
|
writer.writeMessage(
|
|
6260
|
-
|
|
6269
|
+
22,
|
|
6261
6270
|
f,
|
|
6262
|
-
proto.aggregator.
|
|
6271
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6263
6272
|
);
|
|
6264
6273
|
}
|
|
6265
|
-
f = message.
|
|
6274
|
+
f = message.getEventTrigger();
|
|
6275
|
+
if (f != null) {
|
|
6276
|
+
writer.writeMessage(
|
|
6277
|
+
23,
|
|
6278
|
+
f,
|
|
6279
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6280
|
+
);
|
|
6281
|
+
}
|
|
6282
|
+
f = message.getManualTrigger();
|
|
6283
|
+
if (f != null) {
|
|
6284
|
+
writer.writeMessage(
|
|
6285
|
+
24,
|
|
6286
|
+
f,
|
|
6287
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6288
|
+
);
|
|
6289
|
+
}
|
|
6290
|
+
f = message.getEthTransfer();
|
|
6291
|
+
if (f != null) {
|
|
6292
|
+
writer.writeMessage(
|
|
6293
|
+
3,
|
|
6294
|
+
f,
|
|
6295
|
+
proto.aggregator.ETHTransferNode.Output.serializeBinaryToWriter
|
|
6296
|
+
);
|
|
6297
|
+
}
|
|
6298
|
+
f = message.getGraphql();
|
|
6299
|
+
if (f != null) {
|
|
6300
|
+
writer.writeMessage(
|
|
6301
|
+
4,
|
|
6302
|
+
f,
|
|
6303
|
+
proto.aggregator.GraphQLQueryNode.Output.serializeBinaryToWriter
|
|
6304
|
+
);
|
|
6305
|
+
}
|
|
6306
|
+
f = message.getContractRead();
|
|
6307
|
+
if (f != null) {
|
|
6308
|
+
writer.writeMessage(
|
|
6309
|
+
5,
|
|
6310
|
+
f,
|
|
6311
|
+
proto.aggregator.ContractReadNode.Output.serializeBinaryToWriter
|
|
6312
|
+
);
|
|
6313
|
+
}
|
|
6314
|
+
f = message.getContractWrite();
|
|
6266
6315
|
if (f != null) {
|
|
6267
6316
|
writer.writeMessage(
|
|
6268
6317
|
6,
|
|
@@ -6310,20 +6359,6 @@ var require_avs_pb = __commonJS({
|
|
|
6310
6359
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
6311
6360
|
);
|
|
6312
6361
|
}
|
|
6313
|
-
f = message.getLog();
|
|
6314
|
-
if (f.length > 0) {
|
|
6315
|
-
writer.writeString(
|
|
6316
|
-
12,
|
|
6317
|
-
f
|
|
6318
|
-
);
|
|
6319
|
-
}
|
|
6320
|
-
f = message.getError();
|
|
6321
|
-
if (f.length > 0) {
|
|
6322
|
-
writer.writeString(
|
|
6323
|
-
13,
|
|
6324
|
-
f
|
|
6325
|
-
);
|
|
6326
|
-
}
|
|
6327
6362
|
f = message.getStartAt();
|
|
6328
6363
|
if (f !== 0) {
|
|
6329
6364
|
writer.writeInt64(
|
|
@@ -6338,23 +6373,34 @@ var require_avs_pb = __commonJS({
|
|
|
6338
6373
|
f
|
|
6339
6374
|
);
|
|
6340
6375
|
}
|
|
6341
|
-
f = message.getInputsList();
|
|
6342
|
-
if (f.length > 0) {
|
|
6343
|
-
writer.writeRepeatedString(
|
|
6344
|
-
16,
|
|
6345
|
-
f
|
|
6346
|
-
);
|
|
6347
|
-
}
|
|
6348
6376
|
};
|
|
6349
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6377
|
+
proto.aggregator.Execution.Step.prototype.getId = function() {
|
|
6350
6378
|
return (
|
|
6351
6379
|
/** @type {string} */
|
|
6352
6380
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
6353
6381
|
);
|
|
6354
6382
|
};
|
|
6355
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6383
|
+
proto.aggregator.Execution.Step.prototype.setId = function(value) {
|
|
6356
6384
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6357
6385
|
};
|
|
6386
|
+
proto.aggregator.Execution.Step.prototype.getType = function() {
|
|
6387
|
+
return (
|
|
6388
|
+
/** @type {string} */
|
|
6389
|
+
jspb.Message.getFieldWithDefault(this, 17, "")
|
|
6390
|
+
);
|
|
6391
|
+
};
|
|
6392
|
+
proto.aggregator.Execution.Step.prototype.setType = function(value) {
|
|
6393
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
6394
|
+
};
|
|
6395
|
+
proto.aggregator.Execution.Step.prototype.getName = function() {
|
|
6396
|
+
return (
|
|
6397
|
+
/** @type {string} */
|
|
6398
|
+
jspb.Message.getFieldWithDefault(this, 18, "")
|
|
6399
|
+
);
|
|
6400
|
+
};
|
|
6401
|
+
proto.aggregator.Execution.Step.prototype.setName = function(value) {
|
|
6402
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
6403
|
+
};
|
|
6358
6404
|
proto.aggregator.Execution.Step.prototype.getSuccess = function() {
|
|
6359
6405
|
return (
|
|
6360
6406
|
/** @type {boolean} */
|
|
@@ -6364,6 +6410,114 @@ var require_avs_pb = __commonJS({
|
|
|
6364
6410
|
proto.aggregator.Execution.Step.prototype.setSuccess = function(value) {
|
|
6365
6411
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6366
6412
|
};
|
|
6413
|
+
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6414
|
+
return (
|
|
6415
|
+
/** @type {string} */
|
|
6416
|
+
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6417
|
+
);
|
|
6418
|
+
};
|
|
6419
|
+
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6420
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6421
|
+
};
|
|
6422
|
+
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6423
|
+
return (
|
|
6424
|
+
/** @type {string} */
|
|
6425
|
+
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6426
|
+
);
|
|
6427
|
+
};
|
|
6428
|
+
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6429
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6430
|
+
};
|
|
6431
|
+
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6432
|
+
return (
|
|
6433
|
+
/** @type {!Array<string>} */
|
|
6434
|
+
jspb.Message.getRepeatedField(this, 16)
|
|
6435
|
+
);
|
|
6436
|
+
};
|
|
6437
|
+
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6438
|
+
return jspb.Message.setField(this, 16, value || []);
|
|
6439
|
+
};
|
|
6440
|
+
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6441
|
+
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6442
|
+
};
|
|
6443
|
+
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6444
|
+
return this.setInputsList([]);
|
|
6445
|
+
};
|
|
6446
|
+
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
6447
|
+
return (
|
|
6448
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6449
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 20)
|
|
6450
|
+
);
|
|
6451
|
+
};
|
|
6452
|
+
proto.aggregator.Execution.Step.prototype.setBlockTrigger = function(value) {
|
|
6453
|
+
return jspb.Message.setOneofWrapperField(this, 20, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6454
|
+
};
|
|
6455
|
+
proto.aggregator.Execution.Step.prototype.clearBlockTrigger = function() {
|
|
6456
|
+
return this.setBlockTrigger(void 0);
|
|
6457
|
+
};
|
|
6458
|
+
proto.aggregator.Execution.Step.prototype.hasBlockTrigger = function() {
|
|
6459
|
+
return jspb.Message.getField(this, 20) != null;
|
|
6460
|
+
};
|
|
6461
|
+
proto.aggregator.Execution.Step.prototype.getFixedTimeTrigger = function() {
|
|
6462
|
+
return (
|
|
6463
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6464
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 21)
|
|
6465
|
+
);
|
|
6466
|
+
};
|
|
6467
|
+
proto.aggregator.Execution.Step.prototype.setFixedTimeTrigger = function(value) {
|
|
6468
|
+
return jspb.Message.setOneofWrapperField(this, 21, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6469
|
+
};
|
|
6470
|
+
proto.aggregator.Execution.Step.prototype.clearFixedTimeTrigger = function() {
|
|
6471
|
+
return this.setFixedTimeTrigger(void 0);
|
|
6472
|
+
};
|
|
6473
|
+
proto.aggregator.Execution.Step.prototype.hasFixedTimeTrigger = function() {
|
|
6474
|
+
return jspb.Message.getField(this, 21) != null;
|
|
6475
|
+
};
|
|
6476
|
+
proto.aggregator.Execution.Step.prototype.getCronTrigger = function() {
|
|
6477
|
+
return (
|
|
6478
|
+
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6479
|
+
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 22)
|
|
6480
|
+
);
|
|
6481
|
+
};
|
|
6482
|
+
proto.aggregator.Execution.Step.prototype.setCronTrigger = function(value) {
|
|
6483
|
+
return jspb.Message.setOneofWrapperField(this, 22, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6484
|
+
};
|
|
6485
|
+
proto.aggregator.Execution.Step.prototype.clearCronTrigger = function() {
|
|
6486
|
+
return this.setCronTrigger(void 0);
|
|
6487
|
+
};
|
|
6488
|
+
proto.aggregator.Execution.Step.prototype.hasCronTrigger = function() {
|
|
6489
|
+
return jspb.Message.getField(this, 22) != null;
|
|
6490
|
+
};
|
|
6491
|
+
proto.aggregator.Execution.Step.prototype.getEventTrigger = function() {
|
|
6492
|
+
return (
|
|
6493
|
+
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6494
|
+
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 23)
|
|
6495
|
+
);
|
|
6496
|
+
};
|
|
6497
|
+
proto.aggregator.Execution.Step.prototype.setEventTrigger = function(value) {
|
|
6498
|
+
return jspb.Message.setOneofWrapperField(this, 23, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6499
|
+
};
|
|
6500
|
+
proto.aggregator.Execution.Step.prototype.clearEventTrigger = function() {
|
|
6501
|
+
return this.setEventTrigger(void 0);
|
|
6502
|
+
};
|
|
6503
|
+
proto.aggregator.Execution.Step.prototype.hasEventTrigger = function() {
|
|
6504
|
+
return jspb.Message.getField(this, 23) != null;
|
|
6505
|
+
};
|
|
6506
|
+
proto.aggregator.Execution.Step.prototype.getManualTrigger = function() {
|
|
6507
|
+
return (
|
|
6508
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
6509
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 24)
|
|
6510
|
+
);
|
|
6511
|
+
};
|
|
6512
|
+
proto.aggregator.Execution.Step.prototype.setManualTrigger = function(value) {
|
|
6513
|
+
return jspb.Message.setOneofWrapperField(this, 24, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6514
|
+
};
|
|
6515
|
+
proto.aggregator.Execution.Step.prototype.clearManualTrigger = function() {
|
|
6516
|
+
return this.setManualTrigger(void 0);
|
|
6517
|
+
};
|
|
6518
|
+
proto.aggregator.Execution.Step.prototype.hasManualTrigger = function() {
|
|
6519
|
+
return jspb.Message.getField(this, 24) != null;
|
|
6520
|
+
};
|
|
6367
6521
|
proto.aggregator.Execution.Step.prototype.getEthTransfer = function() {
|
|
6368
6522
|
return (
|
|
6369
6523
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -6499,24 +6653,6 @@ var require_avs_pb = __commonJS({
|
|
|
6499
6653
|
proto.aggregator.Execution.Step.prototype.hasLoop = function() {
|
|
6500
6654
|
return jspb.Message.getField(this, 11) != null;
|
|
6501
6655
|
};
|
|
6502
|
-
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6503
|
-
return (
|
|
6504
|
-
/** @type {string} */
|
|
6505
|
-
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6506
|
-
);
|
|
6507
|
-
};
|
|
6508
|
-
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6509
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6510
|
-
};
|
|
6511
|
-
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6512
|
-
return (
|
|
6513
|
-
/** @type {string} */
|
|
6514
|
-
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6515
|
-
);
|
|
6516
|
-
};
|
|
6517
|
-
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6518
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6519
|
-
};
|
|
6520
6656
|
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
6521
6657
|
return (
|
|
6522
6658
|
/** @type {number} */
|
|
@@ -6535,21 +6671,6 @@ var require_avs_pb = __commonJS({
|
|
|
6535
6671
|
proto.aggregator.Execution.Step.prototype.setEndAt = function(value) {
|
|
6536
6672
|
return jspb.Message.setProto3IntField(this, 15, value);
|
|
6537
6673
|
};
|
|
6538
|
-
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6539
|
-
return (
|
|
6540
|
-
/** @type {!Array<string>} */
|
|
6541
|
-
jspb.Message.getRepeatedField(this, 16)
|
|
6542
|
-
);
|
|
6543
|
-
};
|
|
6544
|
-
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6545
|
-
return jspb.Message.setField(this, 16, value || []);
|
|
6546
|
-
};
|
|
6547
|
-
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6548
|
-
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6549
|
-
};
|
|
6550
|
-
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6551
|
-
return this.setInputsList([]);
|
|
6552
|
-
};
|
|
6553
6674
|
proto.aggregator.Execution.prototype.getId = function() {
|
|
6554
6675
|
return (
|
|
6555
6676
|
/** @type {string} */
|
|
@@ -6595,21 +6716,6 @@ var require_avs_pb = __commonJS({
|
|
|
6595
6716
|
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6596
6717
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6597
6718
|
};
|
|
6598
|
-
proto.aggregator.Execution.prototype.getReason = function() {
|
|
6599
|
-
return (
|
|
6600
|
-
/** @type{?proto.aggregator.TriggerReason} */
|
|
6601
|
-
jspb.Message.getWrapperField(this, proto.aggregator.TriggerReason, 6)
|
|
6602
|
-
);
|
|
6603
|
-
};
|
|
6604
|
-
proto.aggregator.Execution.prototype.setReason = function(value) {
|
|
6605
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
6606
|
-
};
|
|
6607
|
-
proto.aggregator.Execution.prototype.clearReason = function() {
|
|
6608
|
-
return this.setReason(void 0);
|
|
6609
|
-
};
|
|
6610
|
-
proto.aggregator.Execution.prototype.hasReason = function() {
|
|
6611
|
-
return jspb.Message.getField(this, 6) != null;
|
|
6612
|
-
};
|
|
6613
6719
|
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6614
6720
|
return (
|
|
6615
6721
|
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
@@ -6625,75 +6731,6 @@ var require_avs_pb = __commonJS({
|
|
|
6625
6731
|
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6626
6732
|
return this.setStepsList([]);
|
|
6627
6733
|
};
|
|
6628
|
-
proto.aggregator.Execution.prototype.getTriggerName = function() {
|
|
6629
|
-
return (
|
|
6630
|
-
/** @type {string} */
|
|
6631
|
-
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
6632
|
-
);
|
|
6633
|
-
};
|
|
6634
|
-
proto.aggregator.Execution.prototype.setTriggerName = function(value) {
|
|
6635
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
6636
|
-
};
|
|
6637
|
-
proto.aggregator.Execution.prototype.getBlockTrigger = function() {
|
|
6638
|
-
return (
|
|
6639
|
-
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6640
|
-
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 10)
|
|
6641
|
-
);
|
|
6642
|
-
};
|
|
6643
|
-
proto.aggregator.Execution.prototype.setBlockTrigger = function(value) {
|
|
6644
|
-
return jspb.Message.setOneofWrapperField(this, 10, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6645
|
-
};
|
|
6646
|
-
proto.aggregator.Execution.prototype.clearBlockTrigger = function() {
|
|
6647
|
-
return this.setBlockTrigger(void 0);
|
|
6648
|
-
};
|
|
6649
|
-
proto.aggregator.Execution.prototype.hasBlockTrigger = function() {
|
|
6650
|
-
return jspb.Message.getField(this, 10) != null;
|
|
6651
|
-
};
|
|
6652
|
-
proto.aggregator.Execution.prototype.getFixedTimeTrigger = function() {
|
|
6653
|
-
return (
|
|
6654
|
-
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6655
|
-
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 11)
|
|
6656
|
-
);
|
|
6657
|
-
};
|
|
6658
|
-
proto.aggregator.Execution.prototype.setFixedTimeTrigger = function(value) {
|
|
6659
|
-
return jspb.Message.setOneofWrapperField(this, 11, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6660
|
-
};
|
|
6661
|
-
proto.aggregator.Execution.prototype.clearFixedTimeTrigger = function() {
|
|
6662
|
-
return this.setFixedTimeTrigger(void 0);
|
|
6663
|
-
};
|
|
6664
|
-
proto.aggregator.Execution.prototype.hasFixedTimeTrigger = function() {
|
|
6665
|
-
return jspb.Message.getField(this, 11) != null;
|
|
6666
|
-
};
|
|
6667
|
-
proto.aggregator.Execution.prototype.getCronTrigger = function() {
|
|
6668
|
-
return (
|
|
6669
|
-
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6670
|
-
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 12)
|
|
6671
|
-
);
|
|
6672
|
-
};
|
|
6673
|
-
proto.aggregator.Execution.prototype.setCronTrigger = function(value) {
|
|
6674
|
-
return jspb.Message.setOneofWrapperField(this, 12, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6675
|
-
};
|
|
6676
|
-
proto.aggregator.Execution.prototype.clearCronTrigger = function() {
|
|
6677
|
-
return this.setCronTrigger(void 0);
|
|
6678
|
-
};
|
|
6679
|
-
proto.aggregator.Execution.prototype.hasCronTrigger = function() {
|
|
6680
|
-
return jspb.Message.getField(this, 12) != null;
|
|
6681
|
-
};
|
|
6682
|
-
proto.aggregator.Execution.prototype.getEventTrigger = function() {
|
|
6683
|
-
return (
|
|
6684
|
-
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6685
|
-
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 13)
|
|
6686
|
-
);
|
|
6687
|
-
};
|
|
6688
|
-
proto.aggregator.Execution.prototype.setEventTrigger = function(value) {
|
|
6689
|
-
return jspb.Message.setOneofWrapperField(this, 13, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6690
|
-
};
|
|
6691
|
-
proto.aggregator.Execution.prototype.clearEventTrigger = function() {
|
|
6692
|
-
return this.setEventTrigger(void 0);
|
|
6693
|
-
};
|
|
6694
|
-
proto.aggregator.Execution.prototype.hasEventTrigger = function() {
|
|
6695
|
-
return jspb.Message.getField(this, 13) != null;
|
|
6696
|
-
};
|
|
6697
6734
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
6698
6735
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6699
6736
|
proto.aggregator.Task.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8626,7 +8663,10 @@ var require_avs_pb = __commonJS({
|
|
|
8626
8663
|
};
|
|
8627
8664
|
proto.aggregator.KeyResp.toObject = function(includeInstance, msg) {
|
|
8628
8665
|
var f, obj = {
|
|
8629
|
-
|
|
8666
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8667
|
+
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8668
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8669
|
+
expiry: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
8630
8670
|
};
|
|
8631
8671
|
if (includeInstance) {
|
|
8632
8672
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8651,103 +8691,28 @@ var require_avs_pb = __commonJS({
|
|
|
8651
8691
|
/** @type {string} */
|
|
8652
8692
|
reader.readString()
|
|
8653
8693
|
);
|
|
8654
|
-
msg.
|
|
8655
|
-
break;
|
|
8656
|
-
default:
|
|
8657
|
-
reader.skipField();
|
|
8658
|
-
break;
|
|
8659
|
-
}
|
|
8660
|
-
}
|
|
8661
|
-
return msg;
|
|
8662
|
-
};
|
|
8663
|
-
proto.aggregator.KeyResp.prototype.serializeBinary = function() {
|
|
8664
|
-
var writer = new jspb.BinaryWriter();
|
|
8665
|
-
proto.aggregator.KeyResp.serializeBinaryToWriter(this, writer);
|
|
8666
|
-
return writer.getResultBuffer();
|
|
8667
|
-
};
|
|
8668
|
-
proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
|
|
8669
|
-
var f = void 0;
|
|
8670
|
-
f = message.getKey();
|
|
8671
|
-
if (f.length > 0) {
|
|
8672
|
-
writer.writeString(
|
|
8673
|
-
1,
|
|
8674
|
-
f
|
|
8675
|
-
);
|
|
8676
|
-
}
|
|
8677
|
-
};
|
|
8678
|
-
proto.aggregator.KeyResp.prototype.getKey = function() {
|
|
8679
|
-
return (
|
|
8680
|
-
/** @type {string} */
|
|
8681
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8682
|
-
);
|
|
8683
|
-
};
|
|
8684
|
-
proto.aggregator.KeyResp.prototype.setKey = function(value) {
|
|
8685
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8686
|
-
};
|
|
8687
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8688
|
-
proto.aggregator.TriggerReason.prototype.toObject = function(opt_includeInstance) {
|
|
8689
|
-
return proto.aggregator.TriggerReason.toObject(opt_includeInstance, this);
|
|
8690
|
-
};
|
|
8691
|
-
proto.aggregator.TriggerReason.toObject = function(includeInstance, msg) {
|
|
8692
|
-
var f, obj = {
|
|
8693
|
-
blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
8694
|
-
logIndex: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8695
|
-
txHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8696
|
-
epoch: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
8697
|
-
type: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
8698
|
-
};
|
|
8699
|
-
if (includeInstance) {
|
|
8700
|
-
obj.$jspbMessageInstance = msg;
|
|
8701
|
-
}
|
|
8702
|
-
return obj;
|
|
8703
|
-
};
|
|
8704
|
-
}
|
|
8705
|
-
proto.aggregator.TriggerReason.deserializeBinary = function(bytes) {
|
|
8706
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
8707
|
-
var msg = new proto.aggregator.TriggerReason();
|
|
8708
|
-
return proto.aggregator.TriggerReason.deserializeBinaryFromReader(msg, reader);
|
|
8709
|
-
};
|
|
8710
|
-
proto.aggregator.TriggerReason.deserializeBinaryFromReader = function(msg, reader) {
|
|
8711
|
-
while (reader.nextField()) {
|
|
8712
|
-
if (reader.isEndGroup()) {
|
|
8713
|
-
break;
|
|
8714
|
-
}
|
|
8715
|
-
var field = reader.getFieldNumber();
|
|
8716
|
-
switch (field) {
|
|
8717
|
-
case 1:
|
|
8718
|
-
var value = (
|
|
8719
|
-
/** @type {number} */
|
|
8720
|
-
reader.readUint64()
|
|
8721
|
-
);
|
|
8722
|
-
msg.setBlockNumber(value);
|
|
8694
|
+
msg.setAddress(value);
|
|
8723
8695
|
break;
|
|
8724
8696
|
case 2:
|
|
8725
8697
|
var value = (
|
|
8726
|
-
/** @type {
|
|
8727
|
-
reader.
|
|
8698
|
+
/** @type {string} */
|
|
8699
|
+
reader.readString()
|
|
8728
8700
|
);
|
|
8729
|
-
msg.
|
|
8701
|
+
msg.setKey(value);
|
|
8730
8702
|
break;
|
|
8731
8703
|
case 3:
|
|
8732
8704
|
var value = (
|
|
8733
8705
|
/** @type {string} */
|
|
8734
8706
|
reader.readString()
|
|
8735
8707
|
);
|
|
8736
|
-
msg.
|
|
8708
|
+
msg.setMessage(value);
|
|
8737
8709
|
break;
|
|
8738
8710
|
case 4:
|
|
8739
8711
|
var value = (
|
|
8740
8712
|
/** @type {number} */
|
|
8741
8713
|
reader.readUint64()
|
|
8742
8714
|
);
|
|
8743
|
-
msg.
|
|
8744
|
-
break;
|
|
8745
|
-
case 5:
|
|
8746
|
-
var value = (
|
|
8747
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
8748
|
-
reader.readEnum()
|
|
8749
|
-
);
|
|
8750
|
-
msg.setType(value);
|
|
8715
|
+
msg.setExpiry(value);
|
|
8751
8716
|
break;
|
|
8752
8717
|
default:
|
|
8753
8718
|
reader.skipField();
|
|
@@ -8756,94 +8721,78 @@ var require_avs_pb = __commonJS({
|
|
|
8756
8721
|
}
|
|
8757
8722
|
return msg;
|
|
8758
8723
|
};
|
|
8759
|
-
proto.aggregator.
|
|
8724
|
+
proto.aggregator.KeyResp.prototype.serializeBinary = function() {
|
|
8760
8725
|
var writer = new jspb.BinaryWriter();
|
|
8761
|
-
proto.aggregator.
|
|
8726
|
+
proto.aggregator.KeyResp.serializeBinaryToWriter(this, writer);
|
|
8762
8727
|
return writer.getResultBuffer();
|
|
8763
8728
|
};
|
|
8764
|
-
proto.aggregator.
|
|
8729
|
+
proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
|
|
8765
8730
|
var f = void 0;
|
|
8766
|
-
f = message.
|
|
8767
|
-
if (f
|
|
8768
|
-
writer.
|
|
8731
|
+
f = message.getAddress();
|
|
8732
|
+
if (f.length > 0) {
|
|
8733
|
+
writer.writeString(
|
|
8769
8734
|
1,
|
|
8770
8735
|
f
|
|
8771
8736
|
);
|
|
8772
8737
|
}
|
|
8773
|
-
f = message.
|
|
8774
|
-
if (f
|
|
8775
|
-
writer.
|
|
8738
|
+
f = message.getKey();
|
|
8739
|
+
if (f.length > 0) {
|
|
8740
|
+
writer.writeString(
|
|
8776
8741
|
2,
|
|
8777
8742
|
f
|
|
8778
8743
|
);
|
|
8779
8744
|
}
|
|
8780
|
-
f = message.
|
|
8745
|
+
f = message.getMessage();
|
|
8781
8746
|
if (f.length > 0) {
|
|
8782
8747
|
writer.writeString(
|
|
8783
8748
|
3,
|
|
8784
8749
|
f
|
|
8785
8750
|
);
|
|
8786
8751
|
}
|
|
8787
|
-
f = message.
|
|
8752
|
+
f = message.getExpiry();
|
|
8788
8753
|
if (f !== 0) {
|
|
8789
8754
|
writer.writeUint64(
|
|
8790
8755
|
4,
|
|
8791
8756
|
f
|
|
8792
8757
|
);
|
|
8793
8758
|
}
|
|
8794
|
-
f = message.getType();
|
|
8795
|
-
if (f !== 0) {
|
|
8796
|
-
writer.writeEnum(
|
|
8797
|
-
5,
|
|
8798
|
-
f
|
|
8799
|
-
);
|
|
8800
|
-
}
|
|
8801
8759
|
};
|
|
8802
|
-
proto.aggregator.
|
|
8760
|
+
proto.aggregator.KeyResp.prototype.getAddress = function() {
|
|
8803
8761
|
return (
|
|
8804
|
-
/** @type {
|
|
8805
|
-
jspb.Message.getFieldWithDefault(this, 1,
|
|
8762
|
+
/** @type {string} */
|
|
8763
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8806
8764
|
);
|
|
8807
8765
|
};
|
|
8808
|
-
proto.aggregator.
|
|
8809
|
-
return jspb.Message.
|
|
8766
|
+
proto.aggregator.KeyResp.prototype.setAddress = function(value) {
|
|
8767
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8810
8768
|
};
|
|
8811
|
-
proto.aggregator.
|
|
8769
|
+
proto.aggregator.KeyResp.prototype.getKey = function() {
|
|
8812
8770
|
return (
|
|
8813
|
-
/** @type {
|
|
8814
|
-
jspb.Message.getFieldWithDefault(this, 2,
|
|
8771
|
+
/** @type {string} */
|
|
8772
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
8815
8773
|
);
|
|
8816
8774
|
};
|
|
8817
|
-
proto.aggregator.
|
|
8818
|
-
return jspb.Message.
|
|
8775
|
+
proto.aggregator.KeyResp.prototype.setKey = function(value) {
|
|
8776
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8819
8777
|
};
|
|
8820
|
-
proto.aggregator.
|
|
8778
|
+
proto.aggregator.KeyResp.prototype.getMessage = function() {
|
|
8821
8779
|
return (
|
|
8822
8780
|
/** @type {string} */
|
|
8823
8781
|
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
8824
8782
|
);
|
|
8825
8783
|
};
|
|
8826
|
-
proto.aggregator.
|
|
8784
|
+
proto.aggregator.KeyResp.prototype.setMessage = function(value) {
|
|
8827
8785
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8828
8786
|
};
|
|
8829
|
-
proto.aggregator.
|
|
8787
|
+
proto.aggregator.KeyResp.prototype.getExpiry = function() {
|
|
8830
8788
|
return (
|
|
8831
8789
|
/** @type {number} */
|
|
8832
8790
|
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
8833
8791
|
);
|
|
8834
8792
|
};
|
|
8835
|
-
proto.aggregator.
|
|
8793
|
+
proto.aggregator.KeyResp.prototype.setExpiry = function(value) {
|
|
8836
8794
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
8837
8795
|
};
|
|
8838
|
-
proto.aggregator.TriggerReason.prototype.getType = function() {
|
|
8839
|
-
return (
|
|
8840
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
8841
|
-
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
8842
|
-
);
|
|
8843
|
-
};
|
|
8844
|
-
proto.aggregator.TriggerReason.prototype.setType = function(value) {
|
|
8845
|
-
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
8846
|
-
};
|
|
8847
8796
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8848
8797
|
proto.aggregator.GetWalletReq.prototype.toObject = function(opt_includeInstance) {
|
|
8849
8798
|
return proto.aggregator.GetWalletReq.toObject(opt_includeInstance, this);
|
|
@@ -9300,15 +9249,35 @@ var require_avs_pb = __commonJS({
|
|
|
9300
9249
|
proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
|
|
9301
9250
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
9302
9251
|
};
|
|
9252
|
+
proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
|
|
9253
|
+
proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
|
|
9254
|
+
TRIGGER_OUTPUT_NOT_SET: 0,
|
|
9255
|
+
BLOCK_TRIGGER: 3,
|
|
9256
|
+
FIXED_TIME_TRIGGER: 4,
|
|
9257
|
+
CRON_TRIGGER: 5,
|
|
9258
|
+
EVENT_TRIGGER: 6,
|
|
9259
|
+
MANUAL_TRIGGER: 7
|
|
9260
|
+
};
|
|
9261
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerOutputCase = function() {
|
|
9262
|
+
return (
|
|
9263
|
+
/** @type {proto.aggregator.TriggerTaskReq.TriggerOutputCase} */
|
|
9264
|
+
jspb.Message.computeOneofCase(this, proto.aggregator.TriggerTaskReq.oneofGroups_[0])
|
|
9265
|
+
);
|
|
9266
|
+
};
|
|
9303
9267
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9304
|
-
proto.aggregator.
|
|
9305
|
-
return proto.aggregator.
|
|
9268
|
+
proto.aggregator.TriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
9269
|
+
return proto.aggregator.TriggerTaskReq.toObject(opt_includeInstance, this);
|
|
9306
9270
|
};
|
|
9307
|
-
proto.aggregator.
|
|
9271
|
+
proto.aggregator.TriggerTaskReq.toObject = function(includeInstance, msg) {
|
|
9308
9272
|
var f, obj = {
|
|
9309
9273
|
taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9310
|
-
|
|
9311
|
-
|
|
9274
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9275
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
9276
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
9277
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
9278
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
9279
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
9280
|
+
isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
9312
9281
|
};
|
|
9313
9282
|
if (includeInstance) {
|
|
9314
9283
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9316,12 +9285,12 @@ var require_avs_pb = __commonJS({
|
|
|
9316
9285
|
return obj;
|
|
9317
9286
|
};
|
|
9318
9287
|
}
|
|
9319
|
-
proto.aggregator.
|
|
9288
|
+
proto.aggregator.TriggerTaskReq.deserializeBinary = function(bytes) {
|
|
9320
9289
|
var reader = new jspb.BinaryReader(bytes);
|
|
9321
|
-
var msg = new proto.aggregator.
|
|
9322
|
-
return proto.aggregator.
|
|
9290
|
+
var msg = new proto.aggregator.TriggerTaskReq();
|
|
9291
|
+
return proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
9323
9292
|
};
|
|
9324
|
-
proto.aggregator.
|
|
9293
|
+
proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
9325
9294
|
while (reader.nextField()) {
|
|
9326
9295
|
if (reader.isEndGroup()) {
|
|
9327
9296
|
break;
|
|
@@ -9336,11 +9305,38 @@ var require_avs_pb = __commonJS({
|
|
|
9336
9305
|
msg.setTaskId(value);
|
|
9337
9306
|
break;
|
|
9338
9307
|
case 2:
|
|
9339
|
-
var value =
|
|
9340
|
-
|
|
9341
|
-
|
|
9308
|
+
var value = (
|
|
9309
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
9310
|
+
reader.readEnum()
|
|
9311
|
+
);
|
|
9312
|
+
msg.setTriggerType(value);
|
|
9342
9313
|
break;
|
|
9343
9314
|
case 3:
|
|
9315
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
9316
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
9317
|
+
msg.setBlockTrigger(value);
|
|
9318
|
+
break;
|
|
9319
|
+
case 4:
|
|
9320
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
9321
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
9322
|
+
msg.setFixedTimeTrigger(value);
|
|
9323
|
+
break;
|
|
9324
|
+
case 5:
|
|
9325
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
9326
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
9327
|
+
msg.setCronTrigger(value);
|
|
9328
|
+
break;
|
|
9329
|
+
case 6:
|
|
9330
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
9331
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
9332
|
+
msg.setEventTrigger(value);
|
|
9333
|
+
break;
|
|
9334
|
+
case 7:
|
|
9335
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
9336
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
9337
|
+
msg.setManualTrigger(value);
|
|
9338
|
+
break;
|
|
9339
|
+
case 8:
|
|
9344
9340
|
var value = (
|
|
9345
9341
|
/** @type {boolean} */
|
|
9346
9342
|
reader.readBool()
|
|
@@ -9354,74 +9350,182 @@ var require_avs_pb = __commonJS({
|
|
|
9354
9350
|
}
|
|
9355
9351
|
return msg;
|
|
9356
9352
|
};
|
|
9357
|
-
proto.aggregator.
|
|
9358
|
-
var writer = new jspb.BinaryWriter();
|
|
9359
|
-
proto.aggregator.
|
|
9360
|
-
return writer.getResultBuffer();
|
|
9353
|
+
proto.aggregator.TriggerTaskReq.prototype.serializeBinary = function() {
|
|
9354
|
+
var writer = new jspb.BinaryWriter();
|
|
9355
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter(this, writer);
|
|
9356
|
+
return writer.getResultBuffer();
|
|
9357
|
+
};
|
|
9358
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
9359
|
+
var f = void 0;
|
|
9360
|
+
f = message.getTaskId();
|
|
9361
|
+
if (f.length > 0) {
|
|
9362
|
+
writer.writeString(
|
|
9363
|
+
1,
|
|
9364
|
+
f
|
|
9365
|
+
);
|
|
9366
|
+
}
|
|
9367
|
+
f = message.getTriggerType();
|
|
9368
|
+
if (f !== 0) {
|
|
9369
|
+
writer.writeEnum(
|
|
9370
|
+
2,
|
|
9371
|
+
f
|
|
9372
|
+
);
|
|
9373
|
+
}
|
|
9374
|
+
f = message.getBlockTrigger();
|
|
9375
|
+
if (f != null) {
|
|
9376
|
+
writer.writeMessage(
|
|
9377
|
+
3,
|
|
9378
|
+
f,
|
|
9379
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
9380
|
+
);
|
|
9381
|
+
}
|
|
9382
|
+
f = message.getFixedTimeTrigger();
|
|
9383
|
+
if (f != null) {
|
|
9384
|
+
writer.writeMessage(
|
|
9385
|
+
4,
|
|
9386
|
+
f,
|
|
9387
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
9388
|
+
);
|
|
9389
|
+
}
|
|
9390
|
+
f = message.getCronTrigger();
|
|
9391
|
+
if (f != null) {
|
|
9392
|
+
writer.writeMessage(
|
|
9393
|
+
5,
|
|
9394
|
+
f,
|
|
9395
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
9396
|
+
);
|
|
9397
|
+
}
|
|
9398
|
+
f = message.getEventTrigger();
|
|
9399
|
+
if (f != null) {
|
|
9400
|
+
writer.writeMessage(
|
|
9401
|
+
6,
|
|
9402
|
+
f,
|
|
9403
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
9404
|
+
);
|
|
9405
|
+
}
|
|
9406
|
+
f = message.getManualTrigger();
|
|
9407
|
+
if (f != null) {
|
|
9408
|
+
writer.writeMessage(
|
|
9409
|
+
7,
|
|
9410
|
+
f,
|
|
9411
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
9412
|
+
);
|
|
9413
|
+
}
|
|
9414
|
+
f = message.getIsBlocking();
|
|
9415
|
+
if (f) {
|
|
9416
|
+
writer.writeBool(
|
|
9417
|
+
8,
|
|
9418
|
+
f
|
|
9419
|
+
);
|
|
9420
|
+
}
|
|
9421
|
+
};
|
|
9422
|
+
proto.aggregator.TriggerTaskReq.prototype.getTaskId = function() {
|
|
9423
|
+
return (
|
|
9424
|
+
/** @type {string} */
|
|
9425
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
9426
|
+
);
|
|
9427
|
+
};
|
|
9428
|
+
proto.aggregator.TriggerTaskReq.prototype.setTaskId = function(value) {
|
|
9429
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9430
|
+
};
|
|
9431
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerType = function() {
|
|
9432
|
+
return (
|
|
9433
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
9434
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9435
|
+
);
|
|
9436
|
+
};
|
|
9437
|
+
proto.aggregator.TriggerTaskReq.prototype.setTriggerType = function(value) {
|
|
9438
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
9439
|
+
};
|
|
9440
|
+
proto.aggregator.TriggerTaskReq.prototype.getBlockTrigger = function() {
|
|
9441
|
+
return (
|
|
9442
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
9443
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 3)
|
|
9444
|
+
);
|
|
9445
|
+
};
|
|
9446
|
+
proto.aggregator.TriggerTaskReq.prototype.setBlockTrigger = function(value) {
|
|
9447
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9448
|
+
};
|
|
9449
|
+
proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
|
|
9450
|
+
return this.setBlockTrigger(void 0);
|
|
9451
|
+
};
|
|
9452
|
+
proto.aggregator.TriggerTaskReq.prototype.hasBlockTrigger = function() {
|
|
9453
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9454
|
+
};
|
|
9455
|
+
proto.aggregator.TriggerTaskReq.prototype.getFixedTimeTrigger = function() {
|
|
9456
|
+
return (
|
|
9457
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
9458
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 4)
|
|
9459
|
+
);
|
|
9460
|
+
};
|
|
9461
|
+
proto.aggregator.TriggerTaskReq.prototype.setFixedTimeTrigger = function(value) {
|
|
9462
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9463
|
+
};
|
|
9464
|
+
proto.aggregator.TriggerTaskReq.prototype.clearFixedTimeTrigger = function() {
|
|
9465
|
+
return this.setFixedTimeTrigger(void 0);
|
|
9466
|
+
};
|
|
9467
|
+
proto.aggregator.TriggerTaskReq.prototype.hasFixedTimeTrigger = function() {
|
|
9468
|
+
return jspb.Message.getField(this, 4) != null;
|
|
9469
|
+
};
|
|
9470
|
+
proto.aggregator.TriggerTaskReq.prototype.getCronTrigger = function() {
|
|
9471
|
+
return (
|
|
9472
|
+
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
9473
|
+
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 5)
|
|
9474
|
+
);
|
|
9475
|
+
};
|
|
9476
|
+
proto.aggregator.TriggerTaskReq.prototype.setCronTrigger = function(value) {
|
|
9477
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9361
9478
|
};
|
|
9362
|
-
proto.aggregator.
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
1,
|
|
9368
|
-
f
|
|
9369
|
-
);
|
|
9370
|
-
}
|
|
9371
|
-
f = message.getReason();
|
|
9372
|
-
if (f != null) {
|
|
9373
|
-
writer.writeMessage(
|
|
9374
|
-
2,
|
|
9375
|
-
f,
|
|
9376
|
-
proto.aggregator.TriggerReason.serializeBinaryToWriter
|
|
9377
|
-
);
|
|
9378
|
-
}
|
|
9379
|
-
f = message.getIsBlocking();
|
|
9380
|
-
if (f) {
|
|
9381
|
-
writer.writeBool(
|
|
9382
|
-
3,
|
|
9383
|
-
f
|
|
9384
|
-
);
|
|
9385
|
-
}
|
|
9479
|
+
proto.aggregator.TriggerTaskReq.prototype.clearCronTrigger = function() {
|
|
9480
|
+
return this.setCronTrigger(void 0);
|
|
9481
|
+
};
|
|
9482
|
+
proto.aggregator.TriggerTaskReq.prototype.hasCronTrigger = function() {
|
|
9483
|
+
return jspb.Message.getField(this, 5) != null;
|
|
9386
9484
|
};
|
|
9387
|
-
proto.aggregator.
|
|
9485
|
+
proto.aggregator.TriggerTaskReq.prototype.getEventTrigger = function() {
|
|
9388
9486
|
return (
|
|
9389
|
-
/** @type
|
|
9390
|
-
jspb.Message.
|
|
9487
|
+
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
9488
|
+
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 6)
|
|
9391
9489
|
);
|
|
9392
9490
|
};
|
|
9393
|
-
proto.aggregator.
|
|
9394
|
-
return jspb.Message.
|
|
9491
|
+
proto.aggregator.TriggerTaskReq.prototype.setEventTrigger = function(value) {
|
|
9492
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9395
9493
|
};
|
|
9396
|
-
proto.aggregator.
|
|
9494
|
+
proto.aggregator.TriggerTaskReq.prototype.clearEventTrigger = function() {
|
|
9495
|
+
return this.setEventTrigger(void 0);
|
|
9496
|
+
};
|
|
9497
|
+
proto.aggregator.TriggerTaskReq.prototype.hasEventTrigger = function() {
|
|
9498
|
+
return jspb.Message.getField(this, 6) != null;
|
|
9499
|
+
};
|
|
9500
|
+
proto.aggregator.TriggerTaskReq.prototype.getManualTrigger = function() {
|
|
9397
9501
|
return (
|
|
9398
|
-
/** @type{?proto.aggregator.
|
|
9399
|
-
jspb.Message.getWrapperField(this, proto.aggregator.
|
|
9502
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
9503
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 7)
|
|
9400
9504
|
);
|
|
9401
9505
|
};
|
|
9402
|
-
proto.aggregator.
|
|
9403
|
-
return jspb.Message.
|
|
9506
|
+
proto.aggregator.TriggerTaskReq.prototype.setManualTrigger = function(value) {
|
|
9507
|
+
return jspb.Message.setOneofWrapperField(this, 7, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9404
9508
|
};
|
|
9405
|
-
proto.aggregator.
|
|
9406
|
-
return this.
|
|
9509
|
+
proto.aggregator.TriggerTaskReq.prototype.clearManualTrigger = function() {
|
|
9510
|
+
return this.setManualTrigger(void 0);
|
|
9407
9511
|
};
|
|
9408
|
-
proto.aggregator.
|
|
9409
|
-
return jspb.Message.getField(this,
|
|
9512
|
+
proto.aggregator.TriggerTaskReq.prototype.hasManualTrigger = function() {
|
|
9513
|
+
return jspb.Message.getField(this, 7) != null;
|
|
9410
9514
|
};
|
|
9411
|
-
proto.aggregator.
|
|
9515
|
+
proto.aggregator.TriggerTaskReq.prototype.getIsBlocking = function() {
|
|
9412
9516
|
return (
|
|
9413
9517
|
/** @type {boolean} */
|
|
9414
|
-
jspb.Message.getBooleanFieldWithDefault(this,
|
|
9518
|
+
jspb.Message.getBooleanFieldWithDefault(this, 8, false)
|
|
9415
9519
|
);
|
|
9416
9520
|
};
|
|
9417
|
-
proto.aggregator.
|
|
9418
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
9521
|
+
proto.aggregator.TriggerTaskReq.prototype.setIsBlocking = function(value) {
|
|
9522
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
9419
9523
|
};
|
|
9420
9524
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9421
|
-
proto.aggregator.
|
|
9422
|
-
return proto.aggregator.
|
|
9525
|
+
proto.aggregator.TriggerTaskResp.prototype.toObject = function(opt_includeInstance) {
|
|
9526
|
+
return proto.aggregator.TriggerTaskResp.toObject(opt_includeInstance, this);
|
|
9423
9527
|
};
|
|
9424
|
-
proto.aggregator.
|
|
9528
|
+
proto.aggregator.TriggerTaskResp.toObject = function(includeInstance, msg) {
|
|
9425
9529
|
var f, obj = {
|
|
9426
9530
|
executionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9427
9531
|
status: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
@@ -9432,12 +9536,12 @@ var require_avs_pb = __commonJS({
|
|
|
9432
9536
|
return obj;
|
|
9433
9537
|
};
|
|
9434
9538
|
}
|
|
9435
|
-
proto.aggregator.
|
|
9539
|
+
proto.aggregator.TriggerTaskResp.deserializeBinary = function(bytes) {
|
|
9436
9540
|
var reader = new jspb.BinaryReader(bytes);
|
|
9437
|
-
var msg = new proto.aggregator.
|
|
9438
|
-
return proto.aggregator.
|
|
9541
|
+
var msg = new proto.aggregator.TriggerTaskResp();
|
|
9542
|
+
return proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader(msg, reader);
|
|
9439
9543
|
};
|
|
9440
|
-
proto.aggregator.
|
|
9544
|
+
proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
9441
9545
|
while (reader.nextField()) {
|
|
9442
9546
|
if (reader.isEndGroup()) {
|
|
9443
9547
|
break;
|
|
@@ -9465,12 +9569,12 @@ var require_avs_pb = __commonJS({
|
|
|
9465
9569
|
}
|
|
9466
9570
|
return msg;
|
|
9467
9571
|
};
|
|
9468
|
-
proto.aggregator.
|
|
9572
|
+
proto.aggregator.TriggerTaskResp.prototype.serializeBinary = function() {
|
|
9469
9573
|
var writer = new jspb.BinaryWriter();
|
|
9470
|
-
proto.aggregator.
|
|
9574
|
+
proto.aggregator.TriggerTaskResp.serializeBinaryToWriter(this, writer);
|
|
9471
9575
|
return writer.getResultBuffer();
|
|
9472
9576
|
};
|
|
9473
|
-
proto.aggregator.
|
|
9577
|
+
proto.aggregator.TriggerTaskResp.serializeBinaryToWriter = function(message, writer) {
|
|
9474
9578
|
var f = void 0;
|
|
9475
9579
|
f = message.getExecutionId();
|
|
9476
9580
|
if (f.length > 0) {
|
|
@@ -9487,22 +9591,22 @@ var require_avs_pb = __commonJS({
|
|
|
9487
9591
|
);
|
|
9488
9592
|
}
|
|
9489
9593
|
};
|
|
9490
|
-
proto.aggregator.
|
|
9594
|
+
proto.aggregator.TriggerTaskResp.prototype.getExecutionId = function() {
|
|
9491
9595
|
return (
|
|
9492
9596
|
/** @type {string} */
|
|
9493
9597
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
9494
9598
|
);
|
|
9495
9599
|
};
|
|
9496
|
-
proto.aggregator.
|
|
9600
|
+
proto.aggregator.TriggerTaskResp.prototype.setExecutionId = function(value) {
|
|
9497
9601
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9498
9602
|
};
|
|
9499
|
-
proto.aggregator.
|
|
9603
|
+
proto.aggregator.TriggerTaskResp.prototype.getStatus = function() {
|
|
9500
9604
|
return (
|
|
9501
9605
|
/** @type {!proto.aggregator.ExecutionStatus} */
|
|
9502
9606
|
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9503
9607
|
);
|
|
9504
9608
|
};
|
|
9505
|
-
proto.aggregator.
|
|
9609
|
+
proto.aggregator.TriggerTaskResp.prototype.setStatus = function(value) {
|
|
9506
9610
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
9507
9611
|
};
|
|
9508
9612
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -12902,119 +13006,331 @@ var require_avs_pb = __commonJS({
|
|
|
12902
13006
|
f
|
|
12903
13007
|
);
|
|
12904
13008
|
}
|
|
12905
|
-
f = message.getPaymasterAndData();
|
|
12906
|
-
if (f.length > 0) {
|
|
12907
|
-
writer.writeString(
|
|
12908
|
-
10,
|
|
13009
|
+
f = message.getPaymasterAndData();
|
|
13010
|
+
if (f.length > 0) {
|
|
13011
|
+
writer.writeString(
|
|
13012
|
+
10,
|
|
13013
|
+
f
|
|
13014
|
+
);
|
|
13015
|
+
}
|
|
13016
|
+
f = message.getSignature();
|
|
13017
|
+
if (f.length > 0) {
|
|
13018
|
+
writer.writeString(
|
|
13019
|
+
11,
|
|
13020
|
+
f
|
|
13021
|
+
);
|
|
13022
|
+
}
|
|
13023
|
+
};
|
|
13024
|
+
proto.aggregator.Evm.UserOp.prototype.getSender = function() {
|
|
13025
|
+
return (
|
|
13026
|
+
/** @type {string} */
|
|
13027
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
13028
|
+
);
|
|
13029
|
+
};
|
|
13030
|
+
proto.aggregator.Evm.UserOp.prototype.setSender = function(value) {
|
|
13031
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13032
|
+
};
|
|
13033
|
+
proto.aggregator.Evm.UserOp.prototype.getNonce = function() {
|
|
13034
|
+
return (
|
|
13035
|
+
/** @type {string} */
|
|
13036
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13037
|
+
);
|
|
13038
|
+
};
|
|
13039
|
+
proto.aggregator.Evm.UserOp.prototype.setNonce = function(value) {
|
|
13040
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13041
|
+
};
|
|
13042
|
+
proto.aggregator.Evm.UserOp.prototype.getInitCode = function() {
|
|
13043
|
+
return (
|
|
13044
|
+
/** @type {string} */
|
|
13045
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13046
|
+
);
|
|
13047
|
+
};
|
|
13048
|
+
proto.aggregator.Evm.UserOp.prototype.setInitCode = function(value) {
|
|
13049
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13050
|
+
};
|
|
13051
|
+
proto.aggregator.Evm.UserOp.prototype.getCallData = function() {
|
|
13052
|
+
return (
|
|
13053
|
+
/** @type {string} */
|
|
13054
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
13055
|
+
);
|
|
13056
|
+
};
|
|
13057
|
+
proto.aggregator.Evm.UserOp.prototype.setCallData = function(value) {
|
|
13058
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
13059
|
+
};
|
|
13060
|
+
proto.aggregator.Evm.UserOp.prototype.getCallGasLimit = function() {
|
|
13061
|
+
return (
|
|
13062
|
+
/** @type {string} */
|
|
13063
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
13064
|
+
);
|
|
13065
|
+
};
|
|
13066
|
+
proto.aggregator.Evm.UserOp.prototype.setCallGasLimit = function(value) {
|
|
13067
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
13068
|
+
};
|
|
13069
|
+
proto.aggregator.Evm.UserOp.prototype.getVerificationGasLimit = function() {
|
|
13070
|
+
return (
|
|
13071
|
+
/** @type {string} */
|
|
13072
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
13073
|
+
);
|
|
13074
|
+
};
|
|
13075
|
+
proto.aggregator.Evm.UserOp.prototype.setVerificationGasLimit = function(value) {
|
|
13076
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
13077
|
+
};
|
|
13078
|
+
proto.aggregator.Evm.UserOp.prototype.getPreVerificationGas = function() {
|
|
13079
|
+
return (
|
|
13080
|
+
/** @type {string} */
|
|
13081
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
13082
|
+
);
|
|
13083
|
+
};
|
|
13084
|
+
proto.aggregator.Evm.UserOp.prototype.setPreVerificationGas = function(value) {
|
|
13085
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
13086
|
+
};
|
|
13087
|
+
proto.aggregator.Evm.UserOp.prototype.getMaxFeePerGas = function() {
|
|
13088
|
+
return (
|
|
13089
|
+
/** @type {string} */
|
|
13090
|
+
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
13091
|
+
);
|
|
13092
|
+
};
|
|
13093
|
+
proto.aggregator.Evm.UserOp.prototype.setMaxFeePerGas = function(value) {
|
|
13094
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
13095
|
+
};
|
|
13096
|
+
proto.aggregator.Evm.UserOp.prototype.getMaxPriorityFeePerGas = function() {
|
|
13097
|
+
return (
|
|
13098
|
+
/** @type {string} */
|
|
13099
|
+
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
13100
|
+
);
|
|
13101
|
+
};
|
|
13102
|
+
proto.aggregator.Evm.UserOp.prototype.setMaxPriorityFeePerGas = function(value) {
|
|
13103
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
13104
|
+
};
|
|
13105
|
+
proto.aggregator.Evm.UserOp.prototype.getPaymasterAndData = function() {
|
|
13106
|
+
return (
|
|
13107
|
+
/** @type {string} */
|
|
13108
|
+
jspb.Message.getFieldWithDefault(this, 10, "")
|
|
13109
|
+
);
|
|
13110
|
+
};
|
|
13111
|
+
proto.aggregator.Evm.UserOp.prototype.setPaymasterAndData = function(value) {
|
|
13112
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
13113
|
+
};
|
|
13114
|
+
proto.aggregator.Evm.UserOp.prototype.getSignature = function() {
|
|
13115
|
+
return (
|
|
13116
|
+
/** @type {string} */
|
|
13117
|
+
jspb.Message.getFieldWithDefault(this, 11, "")
|
|
13118
|
+
);
|
|
13119
|
+
};
|
|
13120
|
+
proto.aggregator.Evm.UserOp.prototype.setSignature = function(value) {
|
|
13121
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
13122
|
+
};
|
|
13123
|
+
proto.aggregator.SimulateTaskReq.repeatedFields_ = [2, 3];
|
|
13124
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13125
|
+
proto.aggregator.SimulateTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
13126
|
+
return proto.aggregator.SimulateTaskReq.toObject(opt_includeInstance, this);
|
|
13127
|
+
};
|
|
13128
|
+
proto.aggregator.SimulateTaskReq.toObject = function(includeInstance, msg) {
|
|
13129
|
+
var f, obj = {
|
|
13130
|
+
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f),
|
|
13131
|
+
nodesList: jspb.Message.toObjectList(
|
|
13132
|
+
msg.getNodesList(),
|
|
13133
|
+
proto.aggregator.TaskNode.toObject,
|
|
13134
|
+
includeInstance
|
|
13135
|
+
),
|
|
13136
|
+
edgesList: jspb.Message.toObjectList(
|
|
13137
|
+
msg.getEdgesList(),
|
|
13138
|
+
proto.aggregator.TaskEdge.toObject,
|
|
13139
|
+
includeInstance
|
|
13140
|
+
),
|
|
13141
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13142
|
+
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
13143
|
+
inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13144
|
+
};
|
|
13145
|
+
if (includeInstance) {
|
|
13146
|
+
obj.$jspbMessageInstance = msg;
|
|
13147
|
+
}
|
|
13148
|
+
return obj;
|
|
13149
|
+
};
|
|
13150
|
+
}
|
|
13151
|
+
proto.aggregator.SimulateTaskReq.deserializeBinary = function(bytes) {
|
|
13152
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13153
|
+
var msg = new proto.aggregator.SimulateTaskReq();
|
|
13154
|
+
return proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
13155
|
+
};
|
|
13156
|
+
proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
13157
|
+
while (reader.nextField()) {
|
|
13158
|
+
if (reader.isEndGroup()) {
|
|
13159
|
+
break;
|
|
13160
|
+
}
|
|
13161
|
+
var field = reader.getFieldNumber();
|
|
13162
|
+
switch (field) {
|
|
13163
|
+
case 1:
|
|
13164
|
+
var value = new proto.aggregator.TaskTrigger();
|
|
13165
|
+
reader.readMessage(value, proto.aggregator.TaskTrigger.deserializeBinaryFromReader);
|
|
13166
|
+
msg.setTrigger(value);
|
|
13167
|
+
break;
|
|
13168
|
+
case 2:
|
|
13169
|
+
var value = new proto.aggregator.TaskNode();
|
|
13170
|
+
reader.readMessage(value, proto.aggregator.TaskNode.deserializeBinaryFromReader);
|
|
13171
|
+
msg.addNodes(value);
|
|
13172
|
+
break;
|
|
13173
|
+
case 3:
|
|
13174
|
+
var value = new proto.aggregator.TaskEdge();
|
|
13175
|
+
reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
|
|
13176
|
+
msg.addEdges(value);
|
|
13177
|
+
break;
|
|
13178
|
+
case 4:
|
|
13179
|
+
var value = (
|
|
13180
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
13181
|
+
reader.readEnum()
|
|
13182
|
+
);
|
|
13183
|
+
msg.setTriggerType(value);
|
|
13184
|
+
break;
|
|
13185
|
+
case 5:
|
|
13186
|
+
var value = msg.getTriggerConfigMap();
|
|
13187
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13188
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13189
|
+
});
|
|
13190
|
+
break;
|
|
13191
|
+
case 6:
|
|
13192
|
+
var value = msg.getInputVariablesMap();
|
|
13193
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13194
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13195
|
+
});
|
|
13196
|
+
break;
|
|
13197
|
+
default:
|
|
13198
|
+
reader.skipField();
|
|
13199
|
+
break;
|
|
13200
|
+
}
|
|
13201
|
+
}
|
|
13202
|
+
return msg;
|
|
13203
|
+
};
|
|
13204
|
+
proto.aggregator.SimulateTaskReq.prototype.serializeBinary = function() {
|
|
13205
|
+
var writer = new jspb.BinaryWriter();
|
|
13206
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter(this, writer);
|
|
13207
|
+
return writer.getResultBuffer();
|
|
13208
|
+
};
|
|
13209
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
13210
|
+
var f = void 0;
|
|
13211
|
+
f = message.getTrigger();
|
|
13212
|
+
if (f != null) {
|
|
13213
|
+
writer.writeMessage(
|
|
13214
|
+
1,
|
|
13215
|
+
f,
|
|
13216
|
+
proto.aggregator.TaskTrigger.serializeBinaryToWriter
|
|
13217
|
+
);
|
|
13218
|
+
}
|
|
13219
|
+
f = message.getNodesList();
|
|
13220
|
+
if (f.length > 0) {
|
|
13221
|
+
writer.writeRepeatedMessage(
|
|
13222
|
+
2,
|
|
13223
|
+
f,
|
|
13224
|
+
proto.aggregator.TaskNode.serializeBinaryToWriter
|
|
13225
|
+
);
|
|
13226
|
+
}
|
|
13227
|
+
f = message.getEdgesList();
|
|
13228
|
+
if (f.length > 0) {
|
|
13229
|
+
writer.writeRepeatedMessage(
|
|
13230
|
+
3,
|
|
13231
|
+
f,
|
|
13232
|
+
proto.aggregator.TaskEdge.serializeBinaryToWriter
|
|
13233
|
+
);
|
|
13234
|
+
}
|
|
13235
|
+
f = message.getTriggerType();
|
|
13236
|
+
if (f !== 0) {
|
|
13237
|
+
writer.writeEnum(
|
|
13238
|
+
4,
|
|
12909
13239
|
f
|
|
12910
13240
|
);
|
|
12911
13241
|
}
|
|
12912
|
-
f = message.
|
|
12913
|
-
if (f.
|
|
12914
|
-
writer.writeString
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
13242
|
+
f = message.getTriggerConfigMap(true);
|
|
13243
|
+
if (f && f.getLength() > 0) {
|
|
13244
|
+
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13245
|
+
}
|
|
13246
|
+
f = message.getInputVariablesMap(true);
|
|
13247
|
+
if (f && f.getLength() > 0) {
|
|
13248
|
+
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
12918
13249
|
}
|
|
12919
13250
|
};
|
|
12920
|
-
proto.aggregator.
|
|
12921
|
-
return (
|
|
12922
|
-
/** @type {string} */
|
|
12923
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
12924
|
-
);
|
|
12925
|
-
};
|
|
12926
|
-
proto.aggregator.Evm.UserOp.prototype.setSender = function(value) {
|
|
12927
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
12928
|
-
};
|
|
12929
|
-
proto.aggregator.Evm.UserOp.prototype.getNonce = function() {
|
|
12930
|
-
return (
|
|
12931
|
-
/** @type {string} */
|
|
12932
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
12933
|
-
);
|
|
12934
|
-
};
|
|
12935
|
-
proto.aggregator.Evm.UserOp.prototype.setNonce = function(value) {
|
|
12936
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12937
|
-
};
|
|
12938
|
-
proto.aggregator.Evm.UserOp.prototype.getInitCode = function() {
|
|
13251
|
+
proto.aggregator.SimulateTaskReq.prototype.getTrigger = function() {
|
|
12939
13252
|
return (
|
|
12940
|
-
/** @type
|
|
12941
|
-
jspb.Message.
|
|
13253
|
+
/** @type{?proto.aggregator.TaskTrigger} */
|
|
13254
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskTrigger, 1)
|
|
12942
13255
|
);
|
|
12943
13256
|
};
|
|
12944
|
-
proto.aggregator.
|
|
12945
|
-
return jspb.Message.
|
|
13257
|
+
proto.aggregator.SimulateTaskReq.prototype.setTrigger = function(value) {
|
|
13258
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12946
13259
|
};
|
|
12947
|
-
proto.aggregator.
|
|
12948
|
-
return (
|
|
12949
|
-
/** @type {string} */
|
|
12950
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
12951
|
-
);
|
|
13260
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTrigger = function() {
|
|
13261
|
+
return this.setTrigger(void 0);
|
|
12952
13262
|
};
|
|
12953
|
-
proto.aggregator.
|
|
12954
|
-
return jspb.Message.
|
|
13263
|
+
proto.aggregator.SimulateTaskReq.prototype.hasTrigger = function() {
|
|
13264
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12955
13265
|
};
|
|
12956
|
-
proto.aggregator.
|
|
13266
|
+
proto.aggregator.SimulateTaskReq.prototype.getNodesList = function() {
|
|
12957
13267
|
return (
|
|
12958
|
-
/** @type
|
|
12959
|
-
jspb.Message.
|
|
13268
|
+
/** @type{!Array<!proto.aggregator.TaskNode>} */
|
|
13269
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskNode, 2)
|
|
12960
13270
|
);
|
|
12961
13271
|
};
|
|
12962
|
-
proto.aggregator.
|
|
12963
|
-
return jspb.Message.
|
|
13272
|
+
proto.aggregator.SimulateTaskReq.prototype.setNodesList = function(value) {
|
|
13273
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
12964
13274
|
};
|
|
12965
|
-
proto.aggregator.
|
|
12966
|
-
return (
|
|
12967
|
-
/** @type {string} */
|
|
12968
|
-
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
12969
|
-
);
|
|
13275
|
+
proto.aggregator.SimulateTaskReq.prototype.addNodes = function(opt_value, opt_index) {
|
|
13276
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.aggregator.TaskNode, opt_index);
|
|
12970
13277
|
};
|
|
12971
|
-
proto.aggregator.
|
|
12972
|
-
return
|
|
13278
|
+
proto.aggregator.SimulateTaskReq.prototype.clearNodesList = function() {
|
|
13279
|
+
return this.setNodesList([]);
|
|
12973
13280
|
};
|
|
12974
|
-
proto.aggregator.
|
|
13281
|
+
proto.aggregator.SimulateTaskReq.prototype.getEdgesList = function() {
|
|
12975
13282
|
return (
|
|
12976
|
-
/** @type
|
|
12977
|
-
jspb.Message.
|
|
13283
|
+
/** @type{!Array<!proto.aggregator.TaskEdge>} */
|
|
13284
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskEdge, 3)
|
|
12978
13285
|
);
|
|
12979
13286
|
};
|
|
12980
|
-
proto.aggregator.
|
|
12981
|
-
return jspb.Message.
|
|
13287
|
+
proto.aggregator.SimulateTaskReq.prototype.setEdgesList = function(value) {
|
|
13288
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
12982
13289
|
};
|
|
12983
|
-
proto.aggregator.
|
|
12984
|
-
return (
|
|
12985
|
-
/** @type {string} */
|
|
12986
|
-
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
12987
|
-
);
|
|
13290
|
+
proto.aggregator.SimulateTaskReq.prototype.addEdges = function(opt_value, opt_index) {
|
|
13291
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.aggregator.TaskEdge, opt_index);
|
|
12988
13292
|
};
|
|
12989
|
-
proto.aggregator.
|
|
12990
|
-
return
|
|
13293
|
+
proto.aggregator.SimulateTaskReq.prototype.clearEdgesList = function() {
|
|
13294
|
+
return this.setEdgesList([]);
|
|
12991
13295
|
};
|
|
12992
|
-
proto.aggregator.
|
|
13296
|
+
proto.aggregator.SimulateTaskReq.prototype.getTriggerType = function() {
|
|
12993
13297
|
return (
|
|
12994
|
-
/** @type {
|
|
12995
|
-
jspb.Message.getFieldWithDefault(this,
|
|
13298
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
13299
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
12996
13300
|
);
|
|
12997
13301
|
};
|
|
12998
|
-
proto.aggregator.
|
|
12999
|
-
return jspb.Message.
|
|
13302
|
+
proto.aggregator.SimulateTaskReq.prototype.setTriggerType = function(value) {
|
|
13303
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
13000
13304
|
};
|
|
13001
|
-
proto.aggregator.
|
|
13305
|
+
proto.aggregator.SimulateTaskReq.prototype.getTriggerConfigMap = function(opt_noLazyCreate) {
|
|
13002
13306
|
return (
|
|
13003
|
-
/** @type {string} */
|
|
13004
|
-
jspb.Message.
|
|
13307
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13308
|
+
jspb.Message.getMapField(
|
|
13309
|
+
this,
|
|
13310
|
+
5,
|
|
13311
|
+
opt_noLazyCreate,
|
|
13312
|
+
proto.google.protobuf.Value
|
|
13313
|
+
)
|
|
13005
13314
|
);
|
|
13006
13315
|
};
|
|
13007
|
-
proto.aggregator.
|
|
13008
|
-
|
|
13316
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTriggerConfigMap = function() {
|
|
13317
|
+
this.getTriggerConfigMap().clear();
|
|
13318
|
+
return this;
|
|
13009
13319
|
};
|
|
13010
|
-
proto.aggregator.
|
|
13320
|
+
proto.aggregator.SimulateTaskReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
|
|
13011
13321
|
return (
|
|
13012
|
-
/** @type {string} */
|
|
13013
|
-
jspb.Message.
|
|
13322
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13323
|
+
jspb.Message.getMapField(
|
|
13324
|
+
this,
|
|
13325
|
+
6,
|
|
13326
|
+
opt_noLazyCreate,
|
|
13327
|
+
proto.google.protobuf.Value
|
|
13328
|
+
)
|
|
13014
13329
|
);
|
|
13015
13330
|
};
|
|
13016
|
-
proto.aggregator.
|
|
13017
|
-
|
|
13331
|
+
proto.aggregator.SimulateTaskReq.prototype.clearInputVariablesMap = function() {
|
|
13332
|
+
this.getInputVariablesMap().clear();
|
|
13333
|
+
return this;
|
|
13018
13334
|
};
|
|
13019
13335
|
proto.aggregator.TriggerType = {
|
|
13020
13336
|
TRIGGER_TYPE_UNSPECIFIED: 0,
|
|
@@ -13058,8 +13374,10 @@ var require_avs_pb = __commonJS({
|
|
|
13058
13374
|
EXECUTING: 4
|
|
13059
13375
|
};
|
|
13060
13376
|
proto.aggregator.ExecutionStatus = {
|
|
13061
|
-
|
|
13062
|
-
|
|
13377
|
+
EXECUTION_STATUS_UNSPECIFIED: 0,
|
|
13378
|
+
EXECUTION_STATUS_PENDING: 1,
|
|
13379
|
+
EXECUTION_STATUS_COMPLETED: 2,
|
|
13380
|
+
EXECUTION_STATUS_FAILED: 3
|
|
13063
13381
|
};
|
|
13064
13382
|
goog.object.extend(exports, proto.aggregator);
|
|
13065
13383
|
}
|
|
@@ -13070,352 +13388,360 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13070
13388
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
13071
13389
|
"use strict";
|
|
13072
13390
|
var grpc = __require("@grpc/grpc-js");
|
|
13073
|
-
var
|
|
13391
|
+
var avs_pb23 = require_avs_pb();
|
|
13074
13392
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
13075
|
-
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
13076
13393
|
var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
|
|
13077
13394
|
var google_protobuf_struct_pb = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
13078
13395
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
13079
|
-
if (!(arg instanceof
|
|
13396
|
+
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
13080
13397
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
13081
13398
|
}
|
|
13082
13399
|
return Buffer.from(arg.serializeBinary());
|
|
13083
13400
|
}
|
|
13084
13401
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
13085
|
-
return
|
|
13402
|
+
return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13086
13403
|
}
|
|
13087
13404
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
13088
|
-
if (!(arg instanceof
|
|
13405
|
+
if (!(arg instanceof avs_pb23.CreateTaskReq)) {
|
|
13089
13406
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
13090
13407
|
}
|
|
13091
13408
|
return Buffer.from(arg.serializeBinary());
|
|
13092
13409
|
}
|
|
13093
13410
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
13094
|
-
return
|
|
13411
|
+
return avs_pb23.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13095
13412
|
}
|
|
13096
13413
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
13097
|
-
if (!(arg instanceof
|
|
13414
|
+
if (!(arg instanceof avs_pb23.CreateTaskResp)) {
|
|
13098
13415
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
13099
13416
|
}
|
|
13100
13417
|
return Buffer.from(arg.serializeBinary());
|
|
13101
13418
|
}
|
|
13102
13419
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
13103
|
-
return
|
|
13420
|
+
return avs_pb23.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13104
13421
|
}
|
|
13105
13422
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
13106
|
-
if (!(arg instanceof
|
|
13423
|
+
if (!(arg instanceof avs_pb23.DeleteSecretReq)) {
|
|
13107
13424
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
13108
13425
|
}
|
|
13109
13426
|
return Buffer.from(arg.serializeBinary());
|
|
13110
13427
|
}
|
|
13111
13428
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
13112
|
-
return
|
|
13429
|
+
return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13113
13430
|
}
|
|
13114
13431
|
function serialize_aggregator_Execution(arg) {
|
|
13115
|
-
if (!(arg instanceof
|
|
13432
|
+
if (!(arg instanceof avs_pb23.Execution)) {
|
|
13116
13433
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
13117
13434
|
}
|
|
13118
13435
|
return Buffer.from(arg.serializeBinary());
|
|
13119
13436
|
}
|
|
13120
13437
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
13121
|
-
return
|
|
13438
|
+
return avs_pb23.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13122
13439
|
}
|
|
13123
13440
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
13124
|
-
if (!(arg instanceof
|
|
13441
|
+
if (!(arg instanceof avs_pb23.ExecutionReq)) {
|
|
13125
13442
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
13126
13443
|
}
|
|
13127
13444
|
return Buffer.from(arg.serializeBinary());
|
|
13128
13445
|
}
|
|
13129
13446
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
13130
|
-
return
|
|
13447
|
+
return avs_pb23.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13131
13448
|
}
|
|
13132
13449
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
13133
|
-
if (!(arg instanceof
|
|
13450
|
+
if (!(arg instanceof avs_pb23.ExecutionStatusResp)) {
|
|
13134
13451
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
13135
13452
|
}
|
|
13136
13453
|
return Buffer.from(arg.serializeBinary());
|
|
13137
13454
|
}
|
|
13138
13455
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
13139
|
-
return
|
|
13456
|
+
return avs_pb23.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13140
13457
|
}
|
|
13141
13458
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
13142
|
-
if (!(arg instanceof
|
|
13459
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountReq)) {
|
|
13143
13460
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
13144
13461
|
}
|
|
13145
13462
|
return Buffer.from(arg.serializeBinary());
|
|
13146
13463
|
}
|
|
13147
13464
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
13148
|
-
return
|
|
13465
|
+
return avs_pb23.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13149
13466
|
}
|
|
13150
13467
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
13151
|
-
if (!(arg instanceof
|
|
13468
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountResp)) {
|
|
13152
13469
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
13153
13470
|
}
|
|
13154
13471
|
return Buffer.from(arg.serializeBinary());
|
|
13155
13472
|
}
|
|
13156
13473
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
13157
|
-
return
|
|
13474
|
+
return avs_pb23.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13158
13475
|
}
|
|
13159
13476
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
13160
|
-
if (!(arg instanceof
|
|
13477
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsReq)) {
|
|
13161
13478
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
13162
13479
|
}
|
|
13163
13480
|
return Buffer.from(arg.serializeBinary());
|
|
13164
13481
|
}
|
|
13165
13482
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
13166
|
-
return
|
|
13483
|
+
return avs_pb23.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13167
13484
|
}
|
|
13168
13485
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
13169
|
-
if (!(arg instanceof
|
|
13486
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsResp)) {
|
|
13170
13487
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
13171
13488
|
}
|
|
13172
13489
|
return Buffer.from(arg.serializeBinary());
|
|
13173
13490
|
}
|
|
13174
13491
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
13175
|
-
return
|
|
13492
|
+
return avs_pb23.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13176
13493
|
}
|
|
13177
13494
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
13178
|
-
if (!(arg instanceof
|
|
13495
|
+
if (!(arg instanceof avs_pb23.GetKeyReq)) {
|
|
13179
13496
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
13180
13497
|
}
|
|
13181
13498
|
return Buffer.from(arg.serializeBinary());
|
|
13182
13499
|
}
|
|
13183
13500
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
13184
|
-
return
|
|
13501
|
+
return avs_pb23.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13185
13502
|
}
|
|
13186
13503
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
13187
|
-
if (!(arg instanceof
|
|
13504
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatReq)) {
|
|
13188
13505
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
13189
13506
|
}
|
|
13190
13507
|
return Buffer.from(arg.serializeBinary());
|
|
13191
13508
|
}
|
|
13192
13509
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
13193
|
-
return
|
|
13510
|
+
return avs_pb23.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13194
13511
|
}
|
|
13195
13512
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
13196
|
-
if (!(arg instanceof
|
|
13513
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatResp)) {
|
|
13197
13514
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
13198
13515
|
}
|
|
13199
13516
|
return Buffer.from(arg.serializeBinary());
|
|
13200
13517
|
}
|
|
13201
13518
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
13202
|
-
return
|
|
13519
|
+
return avs_pb23.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13203
13520
|
}
|
|
13204
13521
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13205
|
-
if (!(arg instanceof
|
|
13522
|
+
if (!(arg instanceof avs_pb23.GetWalletReq)) {
|
|
13206
13523
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
13207
13524
|
}
|
|
13208
13525
|
return Buffer.from(arg.serializeBinary());
|
|
13209
13526
|
}
|
|
13210
13527
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
13211
|
-
return
|
|
13528
|
+
return avs_pb23.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13212
13529
|
}
|
|
13213
13530
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
13214
|
-
if (!(arg instanceof
|
|
13531
|
+
if (!(arg instanceof avs_pb23.GetWalletResp)) {
|
|
13215
13532
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
13216
13533
|
}
|
|
13217
13534
|
return Buffer.from(arg.serializeBinary());
|
|
13218
13535
|
}
|
|
13219
13536
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
13220
|
-
return
|
|
13537
|
+
return avs_pb23.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13221
13538
|
}
|
|
13222
13539
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
13223
|
-
if (!(arg instanceof
|
|
13540
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountReq)) {
|
|
13224
13541
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
13225
13542
|
}
|
|
13226
13543
|
return Buffer.from(arg.serializeBinary());
|
|
13227
13544
|
}
|
|
13228
13545
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13229
|
-
return
|
|
13546
|
+
return avs_pb23.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13230
13547
|
}
|
|
13231
13548
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13232
|
-
if (!(arg instanceof
|
|
13549
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountResp)) {
|
|
13233
13550
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13234
13551
|
}
|
|
13235
13552
|
return Buffer.from(arg.serializeBinary());
|
|
13236
13553
|
}
|
|
13237
13554
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13238
|
-
return
|
|
13555
|
+
return avs_pb23.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13239
13556
|
}
|
|
13240
13557
|
function serialize_aggregator_IdReq(arg) {
|
|
13241
|
-
if (!(arg instanceof
|
|
13558
|
+
if (!(arg instanceof avs_pb23.IdReq)) {
|
|
13242
13559
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13243
13560
|
}
|
|
13244
13561
|
return Buffer.from(arg.serializeBinary());
|
|
13245
13562
|
}
|
|
13246
13563
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13247
|
-
return
|
|
13564
|
+
return avs_pb23.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13248
13565
|
}
|
|
13249
13566
|
function serialize_aggregator_KeyResp(arg) {
|
|
13250
|
-
if (!(arg instanceof
|
|
13567
|
+
if (!(arg instanceof avs_pb23.KeyResp)) {
|
|
13251
13568
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13252
13569
|
}
|
|
13253
13570
|
return Buffer.from(arg.serializeBinary());
|
|
13254
13571
|
}
|
|
13255
13572
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13256
|
-
return
|
|
13573
|
+
return avs_pb23.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13257
13574
|
}
|
|
13258
13575
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13259
|
-
if (!(arg instanceof
|
|
13576
|
+
if (!(arg instanceof avs_pb23.ListExecutionsReq)) {
|
|
13260
13577
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13261
13578
|
}
|
|
13262
13579
|
return Buffer.from(arg.serializeBinary());
|
|
13263
13580
|
}
|
|
13264
13581
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13265
|
-
return
|
|
13582
|
+
return avs_pb23.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13266
13583
|
}
|
|
13267
13584
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13268
|
-
if (!(arg instanceof
|
|
13585
|
+
if (!(arg instanceof avs_pb23.ListExecutionsResp)) {
|
|
13269
13586
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13270
13587
|
}
|
|
13271
13588
|
return Buffer.from(arg.serializeBinary());
|
|
13272
13589
|
}
|
|
13273
13590
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13274
|
-
return
|
|
13591
|
+
return avs_pb23.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13275
13592
|
}
|
|
13276
13593
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13277
|
-
if (!(arg instanceof
|
|
13594
|
+
if (!(arg instanceof avs_pb23.ListSecretsReq)) {
|
|
13278
13595
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13279
13596
|
}
|
|
13280
13597
|
return Buffer.from(arg.serializeBinary());
|
|
13281
13598
|
}
|
|
13282
13599
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13283
|
-
return
|
|
13600
|
+
return avs_pb23.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13284
13601
|
}
|
|
13285
13602
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13286
|
-
if (!(arg instanceof
|
|
13603
|
+
if (!(arg instanceof avs_pb23.ListSecretsResp)) {
|
|
13287
13604
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13288
13605
|
}
|
|
13289
13606
|
return Buffer.from(arg.serializeBinary());
|
|
13290
13607
|
}
|
|
13291
13608
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13292
|
-
return
|
|
13609
|
+
return avs_pb23.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13293
13610
|
}
|
|
13294
13611
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13295
|
-
if (!(arg instanceof
|
|
13612
|
+
if (!(arg instanceof avs_pb23.ListTasksReq)) {
|
|
13296
13613
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13297
13614
|
}
|
|
13298
13615
|
return Buffer.from(arg.serializeBinary());
|
|
13299
13616
|
}
|
|
13300
13617
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13301
|
-
return
|
|
13618
|
+
return avs_pb23.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13302
13619
|
}
|
|
13303
13620
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13304
|
-
if (!(arg instanceof
|
|
13621
|
+
if (!(arg instanceof avs_pb23.ListTasksResp)) {
|
|
13305
13622
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13306
13623
|
}
|
|
13307
13624
|
return Buffer.from(arg.serializeBinary());
|
|
13308
13625
|
}
|
|
13309
13626
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13310
|
-
return
|
|
13627
|
+
return avs_pb23.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13311
13628
|
}
|
|
13312
13629
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13313
|
-
if (!(arg instanceof
|
|
13630
|
+
if (!(arg instanceof avs_pb23.ListWalletReq)) {
|
|
13314
13631
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13315
13632
|
}
|
|
13316
13633
|
return Buffer.from(arg.serializeBinary());
|
|
13317
13634
|
}
|
|
13318
13635
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13319
|
-
return
|
|
13636
|
+
return avs_pb23.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13320
13637
|
}
|
|
13321
13638
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13322
|
-
if (!(arg instanceof
|
|
13639
|
+
if (!(arg instanceof avs_pb23.ListWalletResp)) {
|
|
13323
13640
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13324
13641
|
}
|
|
13325
13642
|
return Buffer.from(arg.serializeBinary());
|
|
13326
13643
|
}
|
|
13327
13644
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13328
|
-
return
|
|
13645
|
+
return avs_pb23.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13329
13646
|
}
|
|
13330
13647
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13331
|
-
if (!(arg instanceof
|
|
13648
|
+
if (!(arg instanceof avs_pb23.NonceRequest)) {
|
|
13332
13649
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13333
13650
|
}
|
|
13334
13651
|
return Buffer.from(arg.serializeBinary());
|
|
13335
13652
|
}
|
|
13336
13653
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13337
|
-
return
|
|
13654
|
+
return avs_pb23.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13338
13655
|
}
|
|
13339
13656
|
function serialize_aggregator_NonceResp(arg) {
|
|
13340
|
-
if (!(arg instanceof
|
|
13657
|
+
if (!(arg instanceof avs_pb23.NonceResp)) {
|
|
13341
13658
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13342
13659
|
}
|
|
13343
13660
|
return Buffer.from(arg.serializeBinary());
|
|
13344
13661
|
}
|
|
13345
13662
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13346
|
-
return
|
|
13663
|
+
return avs_pb23.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13347
13664
|
}
|
|
13348
13665
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13349
|
-
if (!(arg instanceof
|
|
13666
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsReq)) {
|
|
13350
13667
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13351
13668
|
}
|
|
13352
13669
|
return Buffer.from(arg.serializeBinary());
|
|
13353
13670
|
}
|
|
13354
13671
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13355
|
-
return
|
|
13672
|
+
return avs_pb23.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13356
13673
|
}
|
|
13357
13674
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13358
|
-
if (!(arg instanceof
|
|
13675
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsResp)) {
|
|
13359
13676
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13360
13677
|
}
|
|
13361
13678
|
return Buffer.from(arg.serializeBinary());
|
|
13362
13679
|
}
|
|
13363
13680
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13364
|
-
return
|
|
13681
|
+
return avs_pb23.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13365
13682
|
}
|
|
13366
13683
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13367
|
-
if (!(arg instanceof
|
|
13684
|
+
if (!(arg instanceof avs_pb23.RunTriggerReq)) {
|
|
13368
13685
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13369
13686
|
}
|
|
13370
13687
|
return Buffer.from(arg.serializeBinary());
|
|
13371
13688
|
}
|
|
13372
13689
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13373
|
-
return
|
|
13690
|
+
return avs_pb23.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13374
13691
|
}
|
|
13375
13692
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13376
|
-
if (!(arg instanceof
|
|
13693
|
+
if (!(arg instanceof avs_pb23.RunTriggerResp)) {
|
|
13377
13694
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13378
13695
|
}
|
|
13379
13696
|
return Buffer.from(arg.serializeBinary());
|
|
13380
13697
|
}
|
|
13381
13698
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13382
|
-
return
|
|
13699
|
+
return avs_pb23.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13383
13700
|
}
|
|
13384
13701
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13385
|
-
if (!(arg instanceof
|
|
13702
|
+
if (!(arg instanceof avs_pb23.SetWalletReq)) {
|
|
13386
13703
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13387
13704
|
}
|
|
13388
13705
|
return Buffer.from(arg.serializeBinary());
|
|
13389
13706
|
}
|
|
13390
13707
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13391
|
-
return
|
|
13708
|
+
return avs_pb23.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13709
|
+
}
|
|
13710
|
+
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
13711
|
+
if (!(arg instanceof avs_pb23.SimulateTaskReq)) {
|
|
13712
|
+
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
13713
|
+
}
|
|
13714
|
+
return Buffer.from(arg.serializeBinary());
|
|
13715
|
+
}
|
|
13716
|
+
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
13717
|
+
return avs_pb23.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13392
13718
|
}
|
|
13393
13719
|
function serialize_aggregator_Task(arg) {
|
|
13394
|
-
if (!(arg instanceof
|
|
13720
|
+
if (!(arg instanceof avs_pb23.Task)) {
|
|
13395
13721
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13396
13722
|
}
|
|
13397
13723
|
return Buffer.from(arg.serializeBinary());
|
|
13398
13724
|
}
|
|
13399
13725
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13400
|
-
return
|
|
13726
|
+
return avs_pb23.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13401
13727
|
}
|
|
13402
|
-
function
|
|
13403
|
-
if (!(arg instanceof
|
|
13404
|
-
throw new Error("Expected argument of type aggregator.
|
|
13728
|
+
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
13729
|
+
if (!(arg instanceof avs_pb23.TriggerTaskReq)) {
|
|
13730
|
+
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
13405
13731
|
}
|
|
13406
13732
|
return Buffer.from(arg.serializeBinary());
|
|
13407
13733
|
}
|
|
13408
|
-
function
|
|
13409
|
-
return
|
|
13734
|
+
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13735
|
+
return avs_pb23.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13410
13736
|
}
|
|
13411
|
-
function
|
|
13412
|
-
if (!(arg instanceof
|
|
13413
|
-
throw new Error("Expected argument of type aggregator.
|
|
13737
|
+
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
13738
|
+
if (!(arg instanceof avs_pb23.TriggerTaskResp)) {
|
|
13739
|
+
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
13414
13740
|
}
|
|
13415
13741
|
return Buffer.from(arg.serializeBinary());
|
|
13416
13742
|
}
|
|
13417
|
-
function
|
|
13418
|
-
return
|
|
13743
|
+
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
13744
|
+
return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13419
13745
|
}
|
|
13420
13746
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13421
13747
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13432,8 +13758,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13432
13758
|
path: "/aggregator.Aggregator/GetKey",
|
|
13433
13759
|
requestStream: false,
|
|
13434
13760
|
responseStream: false,
|
|
13435
|
-
requestType:
|
|
13436
|
-
responseType:
|
|
13761
|
+
requestType: avs_pb23.GetKeyReq,
|
|
13762
|
+
responseType: avs_pb23.KeyResp,
|
|
13437
13763
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13438
13764
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13439
13765
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13444,8 +13770,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13444
13770
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13445
13771
|
requestStream: false,
|
|
13446
13772
|
responseStream: false,
|
|
13447
|
-
requestType:
|
|
13448
|
-
responseType:
|
|
13773
|
+
requestType: avs_pb23.GetSignatureFormatReq,
|
|
13774
|
+
responseType: avs_pb23.GetSignatureFormatResp,
|
|
13449
13775
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13450
13776
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13451
13777
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13456,8 +13782,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13456
13782
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13457
13783
|
requestStream: false,
|
|
13458
13784
|
responseStream: false,
|
|
13459
|
-
requestType:
|
|
13460
|
-
responseType:
|
|
13785
|
+
requestType: avs_pb23.NonceRequest,
|
|
13786
|
+
responseType: avs_pb23.NonceResp,
|
|
13461
13787
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13462
13788
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13463
13789
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13467,8 +13793,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13467
13793
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13468
13794
|
requestStream: false,
|
|
13469
13795
|
responseStream: false,
|
|
13470
|
-
requestType:
|
|
13471
|
-
responseType:
|
|
13796
|
+
requestType: avs_pb23.GetWalletReq,
|
|
13797
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13472
13798
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13473
13799
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13474
13800
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13478,8 +13804,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13478
13804
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13479
13805
|
requestStream: false,
|
|
13480
13806
|
responseStream: false,
|
|
13481
|
-
requestType:
|
|
13482
|
-
responseType:
|
|
13807
|
+
requestType: avs_pb23.SetWalletReq,
|
|
13808
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13483
13809
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13484
13810
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13485
13811
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13489,8 +13815,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13489
13815
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13490
13816
|
requestStream: false,
|
|
13491
13817
|
responseStream: false,
|
|
13492
|
-
requestType:
|
|
13493
|
-
responseType:
|
|
13818
|
+
requestType: avs_pb23.ListWalletReq,
|
|
13819
|
+
responseType: avs_pb23.ListWalletResp,
|
|
13494
13820
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13495
13821
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13496
13822
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13501,8 +13827,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13501
13827
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13502
13828
|
requestStream: false,
|
|
13503
13829
|
responseStream: false,
|
|
13504
|
-
requestType:
|
|
13505
|
-
responseType:
|
|
13830
|
+
requestType: avs_pb23.CreateTaskReq,
|
|
13831
|
+
responseType: avs_pb23.CreateTaskResp,
|
|
13506
13832
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13507
13833
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13508
13834
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13512,8 +13838,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13512
13838
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13513
13839
|
requestStream: false,
|
|
13514
13840
|
responseStream: false,
|
|
13515
|
-
requestType:
|
|
13516
|
-
responseType:
|
|
13841
|
+
requestType: avs_pb23.ListTasksReq,
|
|
13842
|
+
responseType: avs_pb23.ListTasksResp,
|
|
13517
13843
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13518
13844
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13519
13845
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13523,8 +13849,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13523
13849
|
path: "/aggregator.Aggregator/GetTask",
|
|
13524
13850
|
requestStream: false,
|
|
13525
13851
|
responseStream: false,
|
|
13526
|
-
requestType:
|
|
13527
|
-
responseType:
|
|
13852
|
+
requestType: avs_pb23.IdReq,
|
|
13853
|
+
responseType: avs_pb23.Task,
|
|
13528
13854
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13529
13855
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13530
13856
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13534,8 +13860,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13534
13860
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13535
13861
|
requestStream: false,
|
|
13536
13862
|
responseStream: false,
|
|
13537
|
-
requestType:
|
|
13538
|
-
responseType:
|
|
13863
|
+
requestType: avs_pb23.ListExecutionsReq,
|
|
13864
|
+
responseType: avs_pb23.ListExecutionsResp,
|
|
13539
13865
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13540
13866
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13541
13867
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13545,8 +13871,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13545
13871
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13546
13872
|
requestStream: false,
|
|
13547
13873
|
responseStream: false,
|
|
13548
|
-
requestType:
|
|
13549
|
-
responseType:
|
|
13874
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13875
|
+
responseType: avs_pb23.Execution,
|
|
13550
13876
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13551
13877
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13552
13878
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13556,8 +13882,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13556
13882
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13557
13883
|
requestStream: false,
|
|
13558
13884
|
responseStream: false,
|
|
13559
|
-
requestType:
|
|
13560
|
-
responseType:
|
|
13885
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13886
|
+
responseType: avs_pb23.ExecutionStatusResp,
|
|
13561
13887
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13562
13888
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13563
13889
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13567,7 +13893,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13567
13893
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13568
13894
|
requestStream: false,
|
|
13569
13895
|
responseStream: false,
|
|
13570
|
-
requestType:
|
|
13896
|
+
requestType: avs_pb23.IdReq,
|
|
13571
13897
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13572
13898
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13573
13899
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13578,7 +13904,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13578
13904
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13579
13905
|
requestStream: false,
|
|
13580
13906
|
responseStream: false,
|
|
13581
|
-
requestType:
|
|
13907
|
+
requestType: avs_pb23.IdReq,
|
|
13582
13908
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13583
13909
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13584
13910
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13589,12 +13915,12 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13589
13915
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13590
13916
|
requestStream: false,
|
|
13591
13917
|
responseStream: false,
|
|
13592
|
-
requestType:
|
|
13593
|
-
responseType:
|
|
13594
|
-
requestSerialize:
|
|
13595
|
-
requestDeserialize:
|
|
13596
|
-
responseSerialize:
|
|
13597
|
-
responseDeserialize:
|
|
13918
|
+
requestType: avs_pb23.TriggerTaskReq,
|
|
13919
|
+
responseType: avs_pb23.TriggerTaskResp,
|
|
13920
|
+
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
13921
|
+
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
13922
|
+
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
13923
|
+
responseDeserialize: deserialize_aggregator_TriggerTaskResp
|
|
13598
13924
|
},
|
|
13599
13925
|
// 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 }}.
|
|
13600
13926
|
// You can decide whether to grant secret to a single workflow or many workflow, or all of your workflow
|
|
@@ -13603,7 +13929,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13603
13929
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13604
13930
|
requestStream: false,
|
|
13605
13931
|
responseStream: false,
|
|
13606
|
-
requestType:
|
|
13932
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13607
13933
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13608
13934
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13609
13935
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13614,7 +13940,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13614
13940
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13615
13941
|
requestStream: false,
|
|
13616
13942
|
responseStream: false,
|
|
13617
|
-
requestType:
|
|
13943
|
+
requestType: avs_pb23.DeleteSecretReq,
|
|
13618
13944
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13619
13945
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13620
13946
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13627,8 +13953,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13627
13953
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13628
13954
|
requestStream: false,
|
|
13629
13955
|
responseStream: false,
|
|
13630
|
-
requestType:
|
|
13631
|
-
responseType:
|
|
13956
|
+
requestType: avs_pb23.ListSecretsReq,
|
|
13957
|
+
responseType: avs_pb23.ListSecretsResp,
|
|
13632
13958
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13633
13959
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13634
13960
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13640,7 +13966,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13640
13966
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13641
13967
|
requestStream: false,
|
|
13642
13968
|
responseStream: false,
|
|
13643
|
-
requestType:
|
|
13969
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13644
13970
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13645
13971
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13646
13972
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13657,8 +13983,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13657
13983
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13658
13984
|
requestStream: false,
|
|
13659
13985
|
responseStream: false,
|
|
13660
|
-
requestType:
|
|
13661
|
-
responseType:
|
|
13986
|
+
requestType: avs_pb23.GetWorkflowCountReq,
|
|
13987
|
+
responseType: avs_pb23.GetWorkflowCountResp,
|
|
13662
13988
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13663
13989
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13664
13990
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13672,8 +13998,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13672
13998
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13673
13999
|
requestStream: false,
|
|
13674
14000
|
responseStream: false,
|
|
13675
|
-
requestType:
|
|
13676
|
-
responseType:
|
|
14001
|
+
requestType: avs_pb23.GetExecutionCountReq,
|
|
14002
|
+
responseType: avs_pb23.GetExecutionCountResp,
|
|
13677
14003
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13678
14004
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13679
14005
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13686,8 +14012,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13686
14012
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13687
14013
|
requestStream: false,
|
|
13688
14014
|
responseStream: false,
|
|
13689
|
-
requestType:
|
|
13690
|
-
responseType:
|
|
14015
|
+
requestType: avs_pb23.GetExecutionStatsReq,
|
|
14016
|
+
responseType: avs_pb23.GetExecutionStatsResp,
|
|
13691
14017
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13692
14018
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13693
14019
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13698,8 +14024,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13698
14024
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13699
14025
|
requestStream: false,
|
|
13700
14026
|
responseStream: false,
|
|
13701
|
-
requestType:
|
|
13702
|
-
responseType:
|
|
14027
|
+
requestType: avs_pb23.RunNodeWithInputsReq,
|
|
14028
|
+
responseType: avs_pb23.RunNodeWithInputsResp,
|
|
13703
14029
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13704
14030
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13705
14031
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13710,12 +14036,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13710
14036
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13711
14037
|
requestStream: false,
|
|
13712
14038
|
responseStream: false,
|
|
13713
|
-
requestType:
|
|
13714
|
-
responseType:
|
|
14039
|
+
requestType: avs_pb23.RunTriggerReq,
|
|
14040
|
+
responseType: avs_pb23.RunTriggerResp,
|
|
13715
14041
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13716
14042
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13717
14043
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
13718
14044
|
responseDeserialize: deserialize_aggregator_RunTriggerResp
|
|
14045
|
+
},
|
|
14046
|
+
// SimulateTask allows executing a complete task simulation including trigger and all workflow nodes
|
|
14047
|
+
simulateTask: {
|
|
14048
|
+
path: "/aggregator.Aggregator/SimulateTask",
|
|
14049
|
+
requestStream: false,
|
|
14050
|
+
responseStream: false,
|
|
14051
|
+
requestType: avs_pb23.SimulateTaskReq,
|
|
14052
|
+
responseType: avs_pb23.Execution,
|
|
14053
|
+
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
14054
|
+
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
14055
|
+
responseSerialize: serialize_aggregator_Execution,
|
|
14056
|
+
responseDeserialize: deserialize_aggregator_Execution
|
|
13719
14057
|
}
|
|
13720
14058
|
};
|
|
13721
14059
|
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -13724,7 +14062,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13724
14062
|
|
|
13725
14063
|
// src/index.ts
|
|
13726
14064
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13727
|
-
var
|
|
14065
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
13728
14066
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
13729
14067
|
|
|
13730
14068
|
// src/models/workflow.ts
|
|
@@ -13885,12 +14223,18 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13885
14223
|
}
|
|
13886
14224
|
/**
|
|
13887
14225
|
* Extract output data from RunTriggerResp for cron triggers
|
|
14226
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
13888
14227
|
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
13889
14228
|
* @returns Plain JavaScript object with cron trigger data
|
|
13890
14229
|
*/
|
|
13891
14230
|
static fromOutputData(outputData) {
|
|
13892
14231
|
const cronOutput = outputData.getCronTrigger();
|
|
13893
|
-
|
|
14232
|
+
if (!cronOutput) return null;
|
|
14233
|
+
const outputObj = cronOutput.toObject();
|
|
14234
|
+
return {
|
|
14235
|
+
timestamp: outputObj.timestamp,
|
|
14236
|
+
timestampIso: outputObj.timestampIso
|
|
14237
|
+
};
|
|
13894
14238
|
}
|
|
13895
14239
|
};
|
|
13896
14240
|
var cron_default = CronTrigger2;
|
|
@@ -14026,12 +14370,18 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
14026
14370
|
}
|
|
14027
14371
|
/**
|
|
14028
14372
|
* Extract output data from RunTriggerResp for fixed time triggers
|
|
14373
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
14029
14374
|
* @param outputData - The RunTriggerResp containing fixed time trigger output
|
|
14030
14375
|
* @returns Plain JavaScript object with fixed time trigger data
|
|
14031
14376
|
*/
|
|
14032
14377
|
static fromOutputData(outputData) {
|
|
14033
14378
|
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
14034
|
-
|
|
14379
|
+
if (!fixedTimeOutput) return null;
|
|
14380
|
+
const outputObj = fixedTimeOutput.toObject();
|
|
14381
|
+
return {
|
|
14382
|
+
timestamp: outputObj.timestamp,
|
|
14383
|
+
timestampIso: outputObj.timestampIso
|
|
14384
|
+
};
|
|
14035
14385
|
}
|
|
14036
14386
|
};
|
|
14037
14387
|
var fixedTime_default = FixedTimeTrigger2;
|
|
@@ -14083,7 +14433,7 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14083
14433
|
var manual_default = ManualTrigger;
|
|
14084
14434
|
|
|
14085
14435
|
// src/models/trigger/factory.ts
|
|
14086
|
-
import { TriggerType as
|
|
14436
|
+
import { TriggerType as TriggerType7 } from "@avaprotocol/types";
|
|
14087
14437
|
|
|
14088
14438
|
// src/utils.ts
|
|
14089
14439
|
import {
|
|
@@ -14091,6 +14441,7 @@ import {
|
|
|
14091
14441
|
Struct as ProtobufStruct,
|
|
14092
14442
|
ListValue as ProtobufListValue
|
|
14093
14443
|
} from "google-protobuf/google/protobuf/struct_pb";
|
|
14444
|
+
import { TriggerType as TriggerType6, NodeType } from "@avaprotocol/types";
|
|
14094
14445
|
function convertProtobufValueToJs(value) {
|
|
14095
14446
|
if (!value) {
|
|
14096
14447
|
return void 0;
|
|
@@ -14151,6 +14502,78 @@ function convertJSValueToProtobuf(value) {
|
|
|
14151
14502
|
}
|
|
14152
14503
|
return protobufValue;
|
|
14153
14504
|
}
|
|
14505
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
14506
|
+
switch (protobufType) {
|
|
14507
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
14508
|
+
return TriggerType6.Manual;
|
|
14509
|
+
// "manualTrigger"
|
|
14510
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
14511
|
+
return TriggerType6.FixedTime;
|
|
14512
|
+
// "fixedTimeTrigger"
|
|
14513
|
+
case "TRIGGER_TYPE_CRON":
|
|
14514
|
+
return TriggerType6.Cron;
|
|
14515
|
+
// "cronTrigger"
|
|
14516
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
14517
|
+
return TriggerType6.Block;
|
|
14518
|
+
// "blockTrigger"
|
|
14519
|
+
case "TRIGGER_TYPE_EVENT":
|
|
14520
|
+
return TriggerType6.Event;
|
|
14521
|
+
// "eventTrigger"
|
|
14522
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
14523
|
+
return TriggerType6.Unspecified;
|
|
14524
|
+
// "unspecified"
|
|
14525
|
+
default:
|
|
14526
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
14527
|
+
return protobufType;
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
14531
|
+
switch (protobufType) {
|
|
14532
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
14533
|
+
return NodeType.ETHTransfer;
|
|
14534
|
+
// "ethTransfer"
|
|
14535
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
14536
|
+
return NodeType.ContractWrite;
|
|
14537
|
+
// "contractWrite"
|
|
14538
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
14539
|
+
return NodeType.ContractRead;
|
|
14540
|
+
// "contractRead"
|
|
14541
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
14542
|
+
return NodeType.GraphQLQuery;
|
|
14543
|
+
// "graphql"
|
|
14544
|
+
case "NODE_TYPE_REST_API":
|
|
14545
|
+
return NodeType.RestAPI;
|
|
14546
|
+
// "restApi"
|
|
14547
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
14548
|
+
return NodeType.CustomCode;
|
|
14549
|
+
// "customCode"
|
|
14550
|
+
case "NODE_TYPE_BRANCH":
|
|
14551
|
+
return NodeType.Branch;
|
|
14552
|
+
// "branch"
|
|
14553
|
+
case "NODE_TYPE_FILTER":
|
|
14554
|
+
return NodeType.Filter;
|
|
14555
|
+
// "filter"
|
|
14556
|
+
case "NODE_TYPE_LOOP":
|
|
14557
|
+
return NodeType.Loop;
|
|
14558
|
+
// "loop"
|
|
14559
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
14560
|
+
return NodeType.Unspecified;
|
|
14561
|
+
// "unspecified"
|
|
14562
|
+
default:
|
|
14563
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
14564
|
+
return protobufType;
|
|
14565
|
+
}
|
|
14566
|
+
}
|
|
14567
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
14568
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
14569
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
14570
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
14571
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
14572
|
+
} else {
|
|
14573
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
14574
|
+
return protobufType;
|
|
14575
|
+
}
|
|
14576
|
+
}
|
|
14154
14577
|
|
|
14155
14578
|
// src/models/trigger/factory.ts
|
|
14156
14579
|
var TriggerFactory = class {
|
|
@@ -14161,15 +14584,15 @@ var TriggerFactory = class {
|
|
|
14161
14584
|
*/
|
|
14162
14585
|
static create(props) {
|
|
14163
14586
|
switch (props.type) {
|
|
14164
|
-
case
|
|
14587
|
+
case TriggerType7.Block:
|
|
14165
14588
|
return new block_default(props);
|
|
14166
|
-
case
|
|
14589
|
+
case TriggerType7.Cron:
|
|
14167
14590
|
return new cron_default(props);
|
|
14168
|
-
case
|
|
14591
|
+
case TriggerType7.Event:
|
|
14169
14592
|
return new event_default(props);
|
|
14170
|
-
case
|
|
14593
|
+
case TriggerType7.FixedTime:
|
|
14171
14594
|
return new fixedTime_default(props);
|
|
14172
|
-
case
|
|
14595
|
+
case TriggerType7.Manual:
|
|
14173
14596
|
return new manual_default(props);
|
|
14174
14597
|
}
|
|
14175
14598
|
throw new Error("Unsupported trigger type");
|
|
@@ -14240,7 +14663,7 @@ import _3 from "lodash";
|
|
|
14240
14663
|
|
|
14241
14664
|
// src/models/node/interface.ts
|
|
14242
14665
|
var avs_pb8 = __toESM(require_avs_pb());
|
|
14243
|
-
import { NodeType, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14666
|
+
import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14244
14667
|
import _2 from "lodash";
|
|
14245
14668
|
var Node = class {
|
|
14246
14669
|
constructor(props) {
|
|
@@ -14263,16 +14686,16 @@ var interface_default2 = Node;
|
|
|
14263
14686
|
|
|
14264
14687
|
// src/models/node/contractWrite.ts
|
|
14265
14688
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
14266
|
-
import { NodeType as
|
|
14689
|
+
import { NodeType as NodeType3 } from "@avaprotocol/types";
|
|
14267
14690
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
14268
14691
|
constructor(props) {
|
|
14269
|
-
super({ ...props, type:
|
|
14692
|
+
super({ ...props, type: NodeType3.ContractWrite, data: props.data });
|
|
14270
14693
|
}
|
|
14271
14694
|
static fromResponse(raw) {
|
|
14272
14695
|
const obj = raw.toObject();
|
|
14273
14696
|
return new _ContractWriteNode({
|
|
14274
14697
|
...obj,
|
|
14275
|
-
type:
|
|
14698
|
+
type: NodeType3.ContractWrite,
|
|
14276
14699
|
data: raw.getContractWrite().getConfig().toObject()
|
|
14277
14700
|
});
|
|
14278
14701
|
}
|
|
@@ -14298,16 +14721,16 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
14298
14721
|
|
|
14299
14722
|
// src/models/node/customCode.ts
|
|
14300
14723
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
14301
|
-
import { NodeType as
|
|
14724
|
+
import { NodeType as NodeType4 } from "@avaprotocol/types";
|
|
14302
14725
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
14303
14726
|
constructor(props) {
|
|
14304
|
-
super({ ...props, type:
|
|
14727
|
+
super({ ...props, type: NodeType4.CustomCode, data: props.data });
|
|
14305
14728
|
}
|
|
14306
14729
|
static fromResponse(raw) {
|
|
14307
14730
|
const obj = raw.toObject();
|
|
14308
14731
|
return new _CustomCodeNode({
|
|
14309
14732
|
...obj,
|
|
14310
|
-
type:
|
|
14733
|
+
type: NodeType4.CustomCode,
|
|
14311
14734
|
data: raw.getCustomCode().getConfig().toObject()
|
|
14312
14735
|
});
|
|
14313
14736
|
}
|
|
@@ -14335,12 +14758,12 @@ var customCode_default = CustomCodeNode2;
|
|
|
14335
14758
|
|
|
14336
14759
|
// src/models/node/graphqlQuery.ts
|
|
14337
14760
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
14338
|
-
import { NodeType as
|
|
14761
|
+
import { NodeType as NodeType5 } from "@avaprotocol/types";
|
|
14339
14762
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
14340
14763
|
constructor(props) {
|
|
14341
14764
|
super({
|
|
14342
14765
|
...props,
|
|
14343
|
-
type:
|
|
14766
|
+
type: NodeType5.GraphQLQuery,
|
|
14344
14767
|
data: props.data
|
|
14345
14768
|
});
|
|
14346
14769
|
}
|
|
@@ -14348,7 +14771,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14348
14771
|
const obj = raw.toObject();
|
|
14349
14772
|
return new _GraphQLQueryNode({
|
|
14350
14773
|
...obj,
|
|
14351
|
-
type:
|
|
14774
|
+
type: NodeType5.GraphQLQuery,
|
|
14352
14775
|
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
14353
14776
|
});
|
|
14354
14777
|
}
|
|
@@ -14380,17 +14803,17 @@ var graphqlQuery_default = GraphQLQueryNode2;
|
|
|
14380
14803
|
// src/models/node/restApi.ts
|
|
14381
14804
|
var avs_pb12 = __toESM(require_avs_pb());
|
|
14382
14805
|
import {
|
|
14383
|
-
NodeType as
|
|
14806
|
+
NodeType as NodeType6
|
|
14384
14807
|
} from "@avaprotocol/types";
|
|
14385
14808
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14386
14809
|
constructor(props) {
|
|
14387
|
-
super({ ...props, type:
|
|
14810
|
+
super({ ...props, type: NodeType6.RestAPI, data: props.data });
|
|
14388
14811
|
}
|
|
14389
14812
|
static fromResponse(raw) {
|
|
14390
14813
|
const obj = raw.toObject();
|
|
14391
14814
|
return new _RestAPINode({
|
|
14392
14815
|
...obj,
|
|
14393
|
-
type:
|
|
14816
|
+
type: NodeType6.RestAPI,
|
|
14394
14817
|
data: raw.getRestApi().getConfig().toObject()
|
|
14395
14818
|
});
|
|
14396
14819
|
}
|
|
@@ -14432,16 +14855,16 @@ var restApi_default = RestAPINode2;
|
|
|
14432
14855
|
|
|
14433
14856
|
// src/models/node/contractRead.ts
|
|
14434
14857
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
14435
|
-
import { NodeType as
|
|
14858
|
+
import { NodeType as NodeType7 } from "@avaprotocol/types";
|
|
14436
14859
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14437
14860
|
constructor(props) {
|
|
14438
|
-
super({ ...props, type:
|
|
14861
|
+
super({ ...props, type: NodeType7.ContractRead, data: props.data });
|
|
14439
14862
|
}
|
|
14440
14863
|
static fromResponse(raw) {
|
|
14441
14864
|
const obj = raw.toObject();
|
|
14442
14865
|
return new _ContractReadNode({
|
|
14443
14866
|
...obj,
|
|
14444
|
-
type:
|
|
14867
|
+
type: NodeType7.ContractRead,
|
|
14445
14868
|
data: raw.getContractRead().getConfig().toObject()
|
|
14446
14869
|
});
|
|
14447
14870
|
}
|
|
@@ -14473,16 +14896,16 @@ var contractRead_default = ContractReadNode2;
|
|
|
14473
14896
|
|
|
14474
14897
|
// src/models/node/ethTransfer.ts
|
|
14475
14898
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
14476
|
-
import { NodeType as
|
|
14899
|
+
import { NodeType as NodeType8 } from "@avaprotocol/types";
|
|
14477
14900
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14478
14901
|
constructor(props) {
|
|
14479
|
-
super({ ...props, type:
|
|
14902
|
+
super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
|
|
14480
14903
|
}
|
|
14481
14904
|
static fromResponse(raw) {
|
|
14482
14905
|
const obj = raw.toObject();
|
|
14483
14906
|
return new _ETHTransferNode({
|
|
14484
14907
|
...obj,
|
|
14485
|
-
type:
|
|
14908
|
+
type: NodeType8.ETHTransfer,
|
|
14486
14909
|
data: raw.getEthTransfer().getConfig().toObject()
|
|
14487
14910
|
});
|
|
14488
14911
|
}
|
|
@@ -14506,17 +14929,17 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14506
14929
|
var ethTransfer_default = ETHTransferNode2;
|
|
14507
14930
|
|
|
14508
14931
|
// src/models/node/branch.ts
|
|
14509
|
-
import { NodeType as
|
|
14932
|
+
import { NodeType as NodeType9 } from "@avaprotocol/types";
|
|
14510
14933
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
14511
14934
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14512
14935
|
constructor(props) {
|
|
14513
|
-
super({ ...props, type:
|
|
14936
|
+
super({ ...props, type: NodeType9.Branch, data: props.data });
|
|
14514
14937
|
}
|
|
14515
14938
|
static fromResponse(raw) {
|
|
14516
14939
|
const obj = raw.toObject();
|
|
14517
14940
|
return new _BranchNode({
|
|
14518
14941
|
...obj,
|
|
14519
|
-
type:
|
|
14942
|
+
type: NodeType9.Branch,
|
|
14520
14943
|
data: raw.getBranch().toObject().config
|
|
14521
14944
|
});
|
|
14522
14945
|
}
|
|
@@ -14552,16 +14975,16 @@ var branch_default = BranchNode2;
|
|
|
14552
14975
|
|
|
14553
14976
|
// src/models/node/filter.ts
|
|
14554
14977
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
14555
|
-
import { NodeType as
|
|
14978
|
+
import { NodeType as NodeType10 } from "@avaprotocol/types";
|
|
14556
14979
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14557
14980
|
constructor(props) {
|
|
14558
|
-
super({ ...props, type:
|
|
14981
|
+
super({ ...props, type: NodeType10.Filter, data: props.data });
|
|
14559
14982
|
}
|
|
14560
14983
|
static fromResponse(raw) {
|
|
14561
14984
|
const obj = raw.toObject();
|
|
14562
14985
|
return new _FilterNode({
|
|
14563
14986
|
...obj,
|
|
14564
|
-
type:
|
|
14987
|
+
type: NodeType10.Filter,
|
|
14565
14988
|
data: raw.getFilter().getConfig().toObject()
|
|
14566
14989
|
});
|
|
14567
14990
|
}
|
|
@@ -14586,10 +15009,10 @@ var filter_default = FilterNode2;
|
|
|
14586
15009
|
|
|
14587
15010
|
// src/models/node/loop.ts
|
|
14588
15011
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
14589
|
-
import { NodeType as
|
|
15012
|
+
import { NodeType as NodeType11 } from "@avaprotocol/types";
|
|
14590
15013
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14591
15014
|
constructor(props) {
|
|
14592
|
-
super({ ...props, type:
|
|
15015
|
+
super({ ...props, type: NodeType11.Loop, data: props.data });
|
|
14593
15016
|
}
|
|
14594
15017
|
static fromResponse(raw) {
|
|
14595
15018
|
const loopNode = raw.getLoop();
|
|
@@ -14611,7 +15034,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14611
15034
|
return new _LoopNode({
|
|
14612
15035
|
id: raw.getId(),
|
|
14613
15036
|
name: raw.getName(),
|
|
14614
|
-
type:
|
|
15037
|
+
type: NodeType11.Loop,
|
|
14615
15038
|
data
|
|
14616
15039
|
});
|
|
14617
15040
|
}
|
|
@@ -14706,31 +15129,31 @@ var loop_default = LoopNode2;
|
|
|
14706
15129
|
|
|
14707
15130
|
// src/models/node/factory.ts
|
|
14708
15131
|
import {
|
|
14709
|
-
NodeType as
|
|
15132
|
+
NodeType as NodeType12,
|
|
14710
15133
|
CustomCodeLangs as CustomCodeLangs2
|
|
14711
15134
|
} from "@avaprotocol/types";
|
|
14712
15135
|
var NodeFactory = class {
|
|
14713
15136
|
static create(props) {
|
|
14714
15137
|
switch (props.type) {
|
|
14715
|
-
case
|
|
15138
|
+
case NodeType12.ContractWrite:
|
|
14716
15139
|
return new contractWrite_default(props);
|
|
14717
|
-
case
|
|
15140
|
+
case NodeType12.RestAPI:
|
|
14718
15141
|
return new restApi_default(props);
|
|
14719
|
-
case
|
|
15142
|
+
case NodeType12.CustomCode:
|
|
14720
15143
|
return new customCode_default(props);
|
|
14721
|
-
case
|
|
15144
|
+
case NodeType12.ContractRead:
|
|
14722
15145
|
return new contractRead_default(props);
|
|
14723
|
-
case
|
|
15146
|
+
case NodeType12.ETHTransfer:
|
|
14724
15147
|
return new ethTransfer_default(props);
|
|
14725
|
-
case
|
|
15148
|
+
case NodeType12.GraphQLQuery:
|
|
14726
15149
|
return new graphqlQuery_default(props);
|
|
14727
|
-
case
|
|
15150
|
+
case NodeType12.Branch:
|
|
14728
15151
|
return new branch_default(props);
|
|
14729
|
-
case
|
|
15152
|
+
case NodeType12.Filter:
|
|
14730
15153
|
return new filter_default(props);
|
|
14731
|
-
case
|
|
15154
|
+
case NodeType12.Loop:
|
|
14732
15155
|
return new loop_default(props);
|
|
14733
|
-
case
|
|
15156
|
+
case NodeType12.Unspecified:
|
|
14734
15157
|
throw new Error("Cannot create node with unspecified type");
|
|
14735
15158
|
default:
|
|
14736
15159
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -14924,154 +15347,82 @@ var Workflow = class _Workflow {
|
|
|
14924
15347
|
};
|
|
14925
15348
|
var workflow_default = Workflow;
|
|
14926
15349
|
|
|
14927
|
-
// src/models/execution.ts
|
|
14928
|
-
var avs_pb22 = __toESM(require_avs_pb());
|
|
14929
|
-
|
|
14930
|
-
// src/models/trigger/reason.ts
|
|
14931
|
-
var avs_pb20 = __toESM(require_avs_pb());
|
|
14932
|
-
import { TriggerType as TriggerType8 } from "@avaprotocol/types";
|
|
14933
|
-
var convertTriggerType = (grpcType) => {
|
|
14934
|
-
const conversionMap = {
|
|
14935
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME]: TriggerType8.FixedTime,
|
|
14936
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_CRON]: TriggerType8.Cron,
|
|
14937
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK]: TriggerType8.Block,
|
|
14938
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_EVENT]: TriggerType8.Event,
|
|
14939
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL]: TriggerType8.Manual,
|
|
14940
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED]: TriggerType8.Unspecified
|
|
14941
|
-
};
|
|
14942
|
-
return conversionMap[grpcType];
|
|
14943
|
-
};
|
|
14944
|
-
var TriggerReason2 = class _TriggerReason {
|
|
14945
|
-
constructor(props) {
|
|
14946
|
-
this.type = props.type;
|
|
14947
|
-
switch (props.type) {
|
|
14948
|
-
case TriggerType8.FixedTime:
|
|
14949
|
-
case TriggerType8.Cron:
|
|
14950
|
-
this.epoch = props.epoch;
|
|
14951
|
-
break;
|
|
14952
|
-
case TriggerType8.Block:
|
|
14953
|
-
this.blockNumber = props.blockNumber;
|
|
14954
|
-
break;
|
|
14955
|
-
case TriggerType8.Event:
|
|
14956
|
-
this.blockNumber = props.blockNumber;
|
|
14957
|
-
this.logIndex = props.logIndex;
|
|
14958
|
-
this.txHash = props.txHash;
|
|
14959
|
-
break;
|
|
14960
|
-
case TriggerType8.Manual:
|
|
14961
|
-
case TriggerType8.Unspecified:
|
|
14962
|
-
break;
|
|
14963
|
-
default:
|
|
14964
|
-
throw new Error("Unsupported trigger type");
|
|
14965
|
-
}
|
|
14966
|
-
}
|
|
14967
|
-
static fromResponse(data) {
|
|
14968
|
-
if (!data) {
|
|
14969
|
-
return void 0;
|
|
14970
|
-
}
|
|
14971
|
-
return new _TriggerReason({
|
|
14972
|
-
type: convertTriggerType(data.getType()),
|
|
14973
|
-
blockNumber: data.getBlockNumber(),
|
|
14974
|
-
epoch: data.getEpoch(),
|
|
14975
|
-
logIndex: data.getLogIndex(),
|
|
14976
|
-
txHash: data.getTxHash()
|
|
14977
|
-
});
|
|
14978
|
-
}
|
|
14979
|
-
toRequest() {
|
|
14980
|
-
const request = new avs_pb20.TriggerReason();
|
|
14981
|
-
switch (this.type) {
|
|
14982
|
-
case TriggerType8.FixedTime:
|
|
14983
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14984
|
-
if (this.epoch) {
|
|
14985
|
-
request.setEpoch(this.epoch);
|
|
14986
|
-
}
|
|
14987
|
-
break;
|
|
14988
|
-
case TriggerType8.Cron:
|
|
14989
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_CRON);
|
|
14990
|
-
if (this.epoch) {
|
|
14991
|
-
request.setEpoch(this.epoch);
|
|
14992
|
-
}
|
|
14993
|
-
break;
|
|
14994
|
-
case TriggerType8.Block:
|
|
14995
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
14996
|
-
if (this.blockNumber) {
|
|
14997
|
-
request.setBlockNumber(this.blockNumber);
|
|
14998
|
-
}
|
|
14999
|
-
break;
|
|
15000
|
-
case TriggerType8.Event:
|
|
15001
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_EVENT);
|
|
15002
|
-
if (this.blockNumber) {
|
|
15003
|
-
request.setBlockNumber(this.blockNumber);
|
|
15004
|
-
}
|
|
15005
|
-
if (this.logIndex) {
|
|
15006
|
-
request.setLogIndex(this.logIndex);
|
|
15007
|
-
}
|
|
15008
|
-
if (this.txHash) {
|
|
15009
|
-
request.setTxHash(this.txHash);
|
|
15010
|
-
}
|
|
15011
|
-
break;
|
|
15012
|
-
case TriggerType8.Manual:
|
|
15013
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
15014
|
-
break;
|
|
15015
|
-
case TriggerType8.Unspecified:
|
|
15016
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED);
|
|
15017
|
-
break;
|
|
15018
|
-
default:
|
|
15019
|
-
throw new Error("Unsupported trigger type");
|
|
15020
|
-
}
|
|
15021
|
-
return request;
|
|
15022
|
-
}
|
|
15023
|
-
};
|
|
15024
|
-
var reason_default = TriggerReason2;
|
|
15025
|
-
|
|
15026
15350
|
// src/models/step.ts
|
|
15027
|
-
var
|
|
15351
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
15028
15352
|
var Step = class _Step {
|
|
15029
|
-
// Changed to any
|
|
15030
15353
|
constructor(props) {
|
|
15031
|
-
this.
|
|
15354
|
+
this.id = props.id;
|
|
15355
|
+
this.type = props.type;
|
|
15356
|
+
this.name = props.name;
|
|
15032
15357
|
this.success = props.success;
|
|
15033
|
-
this.log = props.log;
|
|
15034
15358
|
this.error = props.error;
|
|
15035
|
-
this.
|
|
15036
|
-
this.endAt = props.endAt;
|
|
15359
|
+
this.log = props.log;
|
|
15037
15360
|
this.inputsList = props.inputsList;
|
|
15038
15361
|
this.output = props.output;
|
|
15362
|
+
this.startAt = props.startAt;
|
|
15363
|
+
this.endAt = props.endAt;
|
|
15039
15364
|
}
|
|
15040
15365
|
static getOutput(step) {
|
|
15041
15366
|
const outputDataType = step.getOutputDataCase();
|
|
15042
15367
|
let nodeOutputMessage;
|
|
15043
15368
|
switch (outputDataType) {
|
|
15044
|
-
case
|
|
15369
|
+
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15045
15370
|
return null;
|
|
15046
|
-
|
|
15371
|
+
// Trigger outputs
|
|
15372
|
+
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
15373
|
+
const blockOutput = step.getBlockTrigger()?.toObject();
|
|
15374
|
+
return blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15375
|
+
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15376
|
+
const fixedTimeOutput = step.getFixedTimeTrigger()?.toObject();
|
|
15377
|
+
return fixedTimeOutput ? {
|
|
15378
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15379
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15380
|
+
} : void 0;
|
|
15381
|
+
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
15382
|
+
const cronOutput = step.getCronTrigger()?.toObject();
|
|
15383
|
+
return cronOutput ? {
|
|
15384
|
+
timestamp: cronOutput.timestamp,
|
|
15385
|
+
timestampIso: cronOutput.timestampIso
|
|
15386
|
+
} : void 0;
|
|
15387
|
+
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
15388
|
+
const eventTrigger = step.getEventTrigger();
|
|
15389
|
+
if (eventTrigger) {
|
|
15390
|
+
if (eventTrigger.hasEvmLog()) {
|
|
15391
|
+
return eventTrigger.getEvmLog()?.toObject();
|
|
15392
|
+
} else if (eventTrigger.hasTransferLog()) {
|
|
15393
|
+
return eventTrigger.getTransferLog()?.toObject();
|
|
15394
|
+
}
|
|
15395
|
+
}
|
|
15396
|
+
return void 0;
|
|
15397
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
15398
|
+
const manualOutput = step.getManualTrigger()?.toObject();
|
|
15399
|
+
return manualOutput || void 0;
|
|
15400
|
+
// Node outputs
|
|
15401
|
+
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15047
15402
|
return step.getEthTransfer()?.toObject();
|
|
15048
|
-
|
|
15049
|
-
case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15403
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15050
15404
|
nodeOutputMessage = step.getGraphql();
|
|
15051
15405
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15052
|
-
case
|
|
15406
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
15053
15407
|
nodeOutputMessage = step.getContractRead();
|
|
15054
15408
|
if (nodeOutputMessage) {
|
|
15055
15409
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
15056
15410
|
}
|
|
15057
15411
|
return [];
|
|
15058
|
-
|
|
15059
|
-
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15412
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15060
15413
|
return step.getContractWrite()?.toObject();
|
|
15061
|
-
|
|
15062
|
-
case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15414
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15063
15415
|
nodeOutputMessage = step.getCustomCode();
|
|
15064
15416
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
15065
|
-
case
|
|
15417
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
15066
15418
|
nodeOutputMessage = step.getRestApi();
|
|
15067
15419
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15068
|
-
case
|
|
15420
|
+
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
15069
15421
|
return step.getBranch()?.toObject();
|
|
15070
|
-
|
|
15071
|
-
case avs_pb21.Execution.Step.OutputDataCase.FILTER:
|
|
15422
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
15072
15423
|
nodeOutputMessage = step.getFilter();
|
|
15073
15424
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15074
|
-
case
|
|
15425
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
15075
15426
|
return step.getLoop()?.getData();
|
|
15076
15427
|
default:
|
|
15077
15428
|
console.warn(
|
|
@@ -15082,14 +15433,16 @@ var Step = class _Step {
|
|
|
15082
15433
|
}
|
|
15083
15434
|
static fromResponse(step) {
|
|
15084
15435
|
return new _Step({
|
|
15085
|
-
|
|
15436
|
+
id: step.getId(),
|
|
15437
|
+
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
15438
|
+
name: step.getName(),
|
|
15086
15439
|
success: step.getSuccess(),
|
|
15087
|
-
log: step.getLog(),
|
|
15088
15440
|
error: step.getError(),
|
|
15089
|
-
|
|
15090
|
-
endAt: step.getEndAt(),
|
|
15441
|
+
log: step.getLog(),
|
|
15091
15442
|
inputsList: step.getInputsList(),
|
|
15092
|
-
output: _Step.getOutput(step)
|
|
15443
|
+
output: _Step.getOutput(step),
|
|
15444
|
+
startAt: step.getStartAt(),
|
|
15445
|
+
endAt: step.getEndAt()
|
|
15093
15446
|
});
|
|
15094
15447
|
}
|
|
15095
15448
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -15097,66 +15450,31 @@ var Step = class _Step {
|
|
|
15097
15450
|
var step_default = Step;
|
|
15098
15451
|
|
|
15099
15452
|
// src/models/execution.ts
|
|
15100
|
-
var
|
|
15453
|
+
var Execution2 = class _Execution {
|
|
15101
15454
|
constructor(props) {
|
|
15102
15455
|
this.id = props.id;
|
|
15103
15456
|
this.startAt = props.startAt;
|
|
15104
15457
|
this.endAt = props.endAt;
|
|
15105
15458
|
this.success = props.success;
|
|
15106
15459
|
this.error = props.error;
|
|
15107
|
-
this.
|
|
15108
|
-
this.triggerName = props.triggerName;
|
|
15109
|
-
this.triggerReason = props.triggerReason;
|
|
15110
|
-
this.triggerOutput = props.triggerOutput;
|
|
15460
|
+
this.steps = props.steps;
|
|
15111
15461
|
}
|
|
15112
15462
|
static fromResponse(execution) {
|
|
15113
|
-
const triggerOutputDataType = execution.getOutputDataCase();
|
|
15114
|
-
let triggerOutputData;
|
|
15115
|
-
switch (triggerOutputDataType) {
|
|
15116
|
-
case avs_pb22.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
15117
|
-
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
15118
|
-
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15119
|
-
break;
|
|
15120
|
-
case avs_pb22.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15121
|
-
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
15122
|
-
triggerOutputData = fixedTimeOutput ? { epoch: fixedTimeOutput.epoch } : void 0;
|
|
15123
|
-
break;
|
|
15124
|
-
case avs_pb22.Execution.OutputDataCase.CRON_TRIGGER:
|
|
15125
|
-
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
15126
|
-
triggerOutputData = cronOutput ? { epoch: cronOutput.epoch, scheduleMatched: cronOutput.scheduleMatched } : void 0;
|
|
15127
|
-
break;
|
|
15128
|
-
case avs_pb22.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
15129
|
-
const eventTrigger = execution.getEventTrigger();
|
|
15130
|
-
if (eventTrigger) {
|
|
15131
|
-
if (eventTrigger.hasEvmLog()) {
|
|
15132
|
-
triggerOutputData = eventTrigger.getEvmLog()?.toObject();
|
|
15133
|
-
} else if (eventTrigger.hasTransferLog()) {
|
|
15134
|
-
triggerOutputData = eventTrigger.getTransferLog()?.toObject();
|
|
15135
|
-
}
|
|
15136
|
-
}
|
|
15137
|
-
break;
|
|
15138
|
-
case avs_pb22.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15139
|
-
triggerOutputData = void 0;
|
|
15140
|
-
break;
|
|
15141
|
-
}
|
|
15142
15463
|
return new _Execution({
|
|
15143
15464
|
id: execution.getId(),
|
|
15144
15465
|
startAt: execution.getStartAt(),
|
|
15145
15466
|
endAt: execution.getEndAt(),
|
|
15146
15467
|
success: execution.getSuccess(),
|
|
15147
15468
|
error: execution.getError(),
|
|
15148
|
-
|
|
15149
|
-
triggerReason: reason_default.fromResponse(execution.getReason()),
|
|
15150
|
-
triggerOutput: triggerOutputData,
|
|
15151
|
-
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15469
|
+
steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15152
15470
|
});
|
|
15153
15471
|
}
|
|
15154
15472
|
// Client side does not generate the execution, so there's no toRequest() method
|
|
15155
15473
|
};
|
|
15156
|
-
var execution_default =
|
|
15474
|
+
var execution_default = Execution2;
|
|
15157
15475
|
|
|
15158
15476
|
// src/models/secret.ts
|
|
15159
|
-
var
|
|
15477
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
15160
15478
|
var Secret = class {
|
|
15161
15479
|
constructor(props) {
|
|
15162
15480
|
this.name = props.name;
|
|
@@ -15169,7 +15487,7 @@ var Secret = class {
|
|
|
15169
15487
|
this.description = props.description;
|
|
15170
15488
|
}
|
|
15171
15489
|
toRequest() {
|
|
15172
|
-
const request = new
|
|
15490
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
15173
15491
|
request.setName(this.name);
|
|
15174
15492
|
if (this.secret) {
|
|
15175
15493
|
request.setSecret(this.secret);
|
|
@@ -15187,9 +15505,10 @@ var secret_default = Secret;
|
|
|
15187
15505
|
|
|
15188
15506
|
// src/index.ts
|
|
15189
15507
|
import {
|
|
15190
|
-
TriggerType as
|
|
15508
|
+
TriggerType as TriggerType8,
|
|
15191
15509
|
NodeTypeGoConverter as NodeTypeGoConverter2,
|
|
15192
|
-
TriggerTypeGoConverter
|
|
15510
|
+
TriggerTypeGoConverter,
|
|
15511
|
+
TriggerTypeConverter
|
|
15193
15512
|
} from "@avaprotocol/types";
|
|
15194
15513
|
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
15195
15514
|
var BaseClient = class {
|
|
@@ -15224,7 +15543,7 @@ var BaseClient = class {
|
|
|
15224
15543
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
15225
15544
|
*/
|
|
15226
15545
|
async getSignatureFormat(wallet) {
|
|
15227
|
-
const request = new
|
|
15546
|
+
const request = new avs_pb22.GetSignatureFormatReq();
|
|
15228
15547
|
request.setWallet(wallet);
|
|
15229
15548
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
15230
15549
|
return { message: result.getMessage() };
|
|
@@ -15239,7 +15558,7 @@ var BaseClient = class {
|
|
|
15239
15558
|
message,
|
|
15240
15559
|
apiKey
|
|
15241
15560
|
}) {
|
|
15242
|
-
const request = new
|
|
15561
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15243
15562
|
request.setMessage(message);
|
|
15244
15563
|
request.setSignature(apiKey);
|
|
15245
15564
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -15255,7 +15574,7 @@ var BaseClient = class {
|
|
|
15255
15574
|
message,
|
|
15256
15575
|
signature
|
|
15257
15576
|
}) {
|
|
15258
|
-
const request = new
|
|
15577
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15259
15578
|
request.setMessage(message);
|
|
15260
15579
|
request.setSignature(signature);
|
|
15261
15580
|
const result = await this.sendGrpcRequest(
|
|
@@ -15331,7 +15650,7 @@ var Client = class extends BaseClient {
|
|
|
15331
15650
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
15332
15651
|
*/
|
|
15333
15652
|
async getWallets(options) {
|
|
15334
|
-
const request = new
|
|
15653
|
+
const request = new avs_pb22.ListWalletReq();
|
|
15335
15654
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
15336
15655
|
return result.getItemsList().map((item) => item.toObject());
|
|
15337
15656
|
}
|
|
@@ -15343,7 +15662,7 @@ var Client = class extends BaseClient {
|
|
|
15343
15662
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
15344
15663
|
*/
|
|
15345
15664
|
async getWallet({ salt, factoryAddress }, options) {
|
|
15346
|
-
const request = new
|
|
15665
|
+
const request = new avs_pb22.GetWalletReq();
|
|
15347
15666
|
request.setSalt(salt);
|
|
15348
15667
|
if (factoryAddress) {
|
|
15349
15668
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15372,7 +15691,7 @@ var Client = class extends BaseClient {
|
|
|
15372
15691
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15373
15692
|
*/
|
|
15374
15693
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15375
|
-
const request = new
|
|
15694
|
+
const request = new avs_pb22.SetWalletReq();
|
|
15376
15695
|
request.setSalt(salt);
|
|
15377
15696
|
if (factoryAddress) {
|
|
15378
15697
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15420,7 +15739,7 @@ var Client = class extends BaseClient {
|
|
|
15420
15739
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15421
15740
|
*/
|
|
15422
15741
|
async getWorkflows(addresses, options) {
|
|
15423
|
-
const request = new
|
|
15742
|
+
const request = new avs_pb22.ListTasksReq();
|
|
15424
15743
|
for (const a of addresses) {
|
|
15425
15744
|
request.addSmartWalletAddress(a);
|
|
15426
15745
|
}
|
|
@@ -15459,7 +15778,7 @@ var Client = class extends BaseClient {
|
|
|
15459
15778
|
* @returns {Promise<number>} - The count of workflows
|
|
15460
15779
|
*/
|
|
15461
15780
|
async getWorkflowCount(addresses, options) {
|
|
15462
|
-
const request = new
|
|
15781
|
+
const request = new avs_pb22.GetWorkflowCountReq();
|
|
15463
15782
|
request.setAddressesList(addresses);
|
|
15464
15783
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15465
15784
|
return result.getTotal();
|
|
@@ -15475,7 +15794,7 @@ var Client = class extends BaseClient {
|
|
|
15475
15794
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15476
15795
|
*/
|
|
15477
15796
|
async getExecutions(workflows, options) {
|
|
15478
|
-
const request = new
|
|
15797
|
+
const request = new avs_pb22.ListExecutionsReq();
|
|
15479
15798
|
for (const w of workflows) {
|
|
15480
15799
|
request.addTaskIds(w);
|
|
15481
15800
|
}
|
|
@@ -15509,7 +15828,7 @@ var Client = class extends BaseClient {
|
|
|
15509
15828
|
* @returns {Promise<Execution>} - The Execution object
|
|
15510
15829
|
*/
|
|
15511
15830
|
async getExecution(workflowId, executionId, options) {
|
|
15512
|
-
const request = new
|
|
15831
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15513
15832
|
request.setTaskId(workflowId);
|
|
15514
15833
|
request.setExecutionId(executionId);
|
|
15515
15834
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15522,7 +15841,7 @@ var Client = class extends BaseClient {
|
|
|
15522
15841
|
* @returns {Promise<number>} - The count of executions
|
|
15523
15842
|
*/
|
|
15524
15843
|
async getExecutionCount(workflows, options) {
|
|
15525
|
-
const request = new
|
|
15844
|
+
const request = new avs_pb22.GetExecutionCountReq();
|
|
15526
15845
|
request.setWorkflowIdsList(workflows);
|
|
15527
15846
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15528
15847
|
return result.getTotal();
|
|
@@ -15535,7 +15854,7 @@ var Client = class extends BaseClient {
|
|
|
15535
15854
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15536
15855
|
*/
|
|
15537
15856
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15538
|
-
const request = new
|
|
15857
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15539
15858
|
request.setTaskId(workflowId);
|
|
15540
15859
|
request.setExecutionId(executionId);
|
|
15541
15860
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15548,7 +15867,7 @@ var Client = class extends BaseClient {
|
|
|
15548
15867
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15549
15868
|
*/
|
|
15550
15869
|
async getWorkflow(id, options) {
|
|
15551
|
-
const request = new
|
|
15870
|
+
const request = new avs_pb22.IdReq();
|
|
15552
15871
|
request.setId(id);
|
|
15553
15872
|
const result = await this.sendGrpcRequest(
|
|
15554
15873
|
"getTask",
|
|
@@ -15558,23 +15877,94 @@ var Client = class extends BaseClient {
|
|
|
15558
15877
|
return workflow_default.fromResponse(result);
|
|
15559
15878
|
}
|
|
15560
15879
|
/**
|
|
15561
|
-
* Trigger a workflow
|
|
15562
|
-
* @param {
|
|
15880
|
+
* Trigger a workflow with the new flattened trigger data structure
|
|
15881
|
+
* @param {Object} params - The trigger parameters
|
|
15563
15882
|
* @param {string} params.id - The workflow id
|
|
15564
|
-
* @param {
|
|
15565
|
-
* @param {boolean}
|
|
15566
|
-
* @param {RequestOptions}
|
|
15567
|
-
* @returns {Promise<avs_pb.
|
|
15883
|
+
* @param {TriggerDataProps} params.triggerData - The trigger data
|
|
15884
|
+
* @param {boolean} params.isBlocking - Whether to block until execution completes
|
|
15885
|
+
* @param {RequestOptions} options - Request options
|
|
15886
|
+
* @returns {Promise<avs_pb.TriggerTaskResp.AsObject>} - The response from triggering the workflow
|
|
15568
15887
|
*/
|
|
15569
15888
|
async triggerWorkflow({
|
|
15570
15889
|
id,
|
|
15571
|
-
|
|
15890
|
+
triggerData,
|
|
15572
15891
|
isBlocking = false
|
|
15573
15892
|
}, options) {
|
|
15574
|
-
const request = new
|
|
15893
|
+
const request = new avs_pb22.TriggerTaskReq();
|
|
15575
15894
|
request.setTaskId(id);
|
|
15576
|
-
request.
|
|
15895
|
+
request.setTriggerType(TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
15577
15896
|
request.setIsBlocking(isBlocking);
|
|
15897
|
+
switch (triggerData.type) {
|
|
15898
|
+
case TriggerType8.FixedTime: {
|
|
15899
|
+
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
15900
|
+
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15901
|
+
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15902
|
+
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15903
|
+
break;
|
|
15904
|
+
}
|
|
15905
|
+
case TriggerType8.Cron: {
|
|
15906
|
+
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
15907
|
+
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15908
|
+
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15909
|
+
request.setCronTrigger(cronOutput);
|
|
15910
|
+
break;
|
|
15911
|
+
}
|
|
15912
|
+
case TriggerType8.Block: {
|
|
15913
|
+
const blockData = triggerData;
|
|
15914
|
+
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
15915
|
+
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15916
|
+
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15917
|
+
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
15918
|
+
if (blockData.parentHash) blockOutput.setParentHash(blockData.parentHash);
|
|
15919
|
+
if (blockData.difficulty) blockOutput.setDifficulty(blockData.difficulty);
|
|
15920
|
+
if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
|
|
15921
|
+
if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
|
|
15922
|
+
request.setBlockTrigger(blockOutput);
|
|
15923
|
+
break;
|
|
15924
|
+
}
|
|
15925
|
+
case TriggerType8.Event: {
|
|
15926
|
+
const eventData = triggerData;
|
|
15927
|
+
const eventOutput = new avs_pb22.EventTrigger.Output();
|
|
15928
|
+
if (eventData.evmLog) {
|
|
15929
|
+
const evmLog = new avs_pb22.Evm.Log();
|
|
15930
|
+
evmLog.setAddress(eventData.evmLog.address);
|
|
15931
|
+
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15932
|
+
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
15933
|
+
evmLog.setIndex(eventData.evmLog.index);
|
|
15934
|
+
eventOutput.setEvmLog(evmLog);
|
|
15935
|
+
}
|
|
15936
|
+
if (eventData.transferLog) {
|
|
15937
|
+
const transferLog = new avs_pb22.EventTrigger.TransferLogOutput();
|
|
15938
|
+
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15939
|
+
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15940
|
+
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
15941
|
+
transferLog.setTransactionHash(eventData.transferLog.transactionHash);
|
|
15942
|
+
transferLog.setAddress(eventData.transferLog.address);
|
|
15943
|
+
transferLog.setBlockNumber(eventData.transferLog.blockNumber);
|
|
15944
|
+
transferLog.setBlockTimestamp(eventData.transferLog.blockTimestamp);
|
|
15945
|
+
transferLog.setFromAddress(eventData.transferLog.fromAddress);
|
|
15946
|
+
transferLog.setToAddress(eventData.transferLog.toAddress);
|
|
15947
|
+
transferLog.setValue(eventData.transferLog.value);
|
|
15948
|
+
transferLog.setValueFormatted(eventData.transferLog.valueFormatted);
|
|
15949
|
+
transferLog.setTransactionIndex(eventData.transferLog.transactionIndex);
|
|
15950
|
+
transferLog.setLogIndex(eventData.transferLog.logIndex);
|
|
15951
|
+
eventOutput.setTransferLog(transferLog);
|
|
15952
|
+
}
|
|
15953
|
+
request.setEventTrigger(eventOutput);
|
|
15954
|
+
break;
|
|
15955
|
+
}
|
|
15956
|
+
case TriggerType8.Manual: {
|
|
15957
|
+
const manualData = triggerData;
|
|
15958
|
+
const manualOutput = new avs_pb22.ManualTrigger.Output();
|
|
15959
|
+
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15960
|
+
request.setManualTrigger(manualOutput);
|
|
15961
|
+
break;
|
|
15962
|
+
}
|
|
15963
|
+
case TriggerType8.Unspecified:
|
|
15964
|
+
break;
|
|
15965
|
+
default:
|
|
15966
|
+
throw new Error(`Unsupported trigger type: ${triggerData.type}`);
|
|
15967
|
+
}
|
|
15578
15968
|
const result = await this.sendGrpcRequest("triggerTask", request, options);
|
|
15579
15969
|
return result.toObject();
|
|
15580
15970
|
}
|
|
@@ -15585,7 +15975,7 @@ var Client = class extends BaseClient {
|
|
|
15585
15975
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15586
15976
|
*/
|
|
15587
15977
|
async cancelWorkflow(id, options) {
|
|
15588
|
-
const request = new
|
|
15978
|
+
const request = new avs_pb22.IdReq();
|
|
15589
15979
|
request.setId(id);
|
|
15590
15980
|
const result = await this.sendGrpcRequest(
|
|
15591
15981
|
"cancelTask",
|
|
@@ -15601,7 +15991,7 @@ var Client = class extends BaseClient {
|
|
|
15601
15991
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15602
15992
|
*/
|
|
15603
15993
|
async deleteWorkflow(id, options) {
|
|
15604
|
-
const request = new
|
|
15994
|
+
const request = new avs_pb22.IdReq();
|
|
15605
15995
|
request.setId(id);
|
|
15606
15996
|
const result = await this.sendGrpcRequest(
|
|
15607
15997
|
"deleteTask",
|
|
@@ -15621,7 +16011,7 @@ var Client = class extends BaseClient {
|
|
|
15621
16011
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15622
16012
|
*/
|
|
15623
16013
|
async createSecret(name, value, options) {
|
|
15624
|
-
const request = new
|
|
16014
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15625
16015
|
request.setName(name);
|
|
15626
16016
|
request.setSecret(value);
|
|
15627
16017
|
if (options?.workflowId) {
|
|
@@ -15644,7 +16034,7 @@ var Client = class extends BaseClient {
|
|
|
15644
16034
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15645
16035
|
*/
|
|
15646
16036
|
async updateSecret(name, value, options) {
|
|
15647
|
-
const request = new
|
|
16037
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15648
16038
|
request.setName(name);
|
|
15649
16039
|
request.setSecret(value);
|
|
15650
16040
|
if (options?.workflowId) {
|
|
@@ -15671,7 +16061,7 @@ var Client = class extends BaseClient {
|
|
|
15671
16061
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15672
16062
|
*/
|
|
15673
16063
|
async getSecrets(options) {
|
|
15674
|
-
const request = new
|
|
16064
|
+
const request = new avs_pb22.ListSecretsReq();
|
|
15675
16065
|
if (options?.workflowId) {
|
|
15676
16066
|
request.setWorkflowId(options.workflowId);
|
|
15677
16067
|
}
|
|
@@ -15726,7 +16116,7 @@ var Client = class extends BaseClient {
|
|
|
15726
16116
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15727
16117
|
*/
|
|
15728
16118
|
async deleteSecret(name, options) {
|
|
15729
|
-
const request = new
|
|
16119
|
+
const request = new avs_pb22.DeleteSecretReq();
|
|
15730
16120
|
request.setName(name);
|
|
15731
16121
|
if (options?.workflowId) {
|
|
15732
16122
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15748,11 +16138,11 @@ var Client = class extends BaseClient {
|
|
|
15748
16138
|
*/
|
|
15749
16139
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
15750
16140
|
const triggerTypes = [
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
16141
|
+
TriggerType8.Block,
|
|
16142
|
+
TriggerType8.FixedTime,
|
|
16143
|
+
TriggerType8.Cron,
|
|
16144
|
+
TriggerType8.Event,
|
|
16145
|
+
TriggerType8.Manual
|
|
15756
16146
|
];
|
|
15757
16147
|
if (triggerTypes.includes(nodeType)) {
|
|
15758
16148
|
return {
|
|
@@ -15761,7 +16151,7 @@ var Client = class extends BaseClient {
|
|
|
15761
16151
|
nodeId: ""
|
|
15762
16152
|
};
|
|
15763
16153
|
}
|
|
15764
|
-
const request = new
|
|
16154
|
+
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15765
16155
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
15766
16156
|
request.setNodeType(protobufNodeType);
|
|
15767
16157
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -15791,7 +16181,7 @@ var Client = class extends BaseClient {
|
|
|
15791
16181
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15792
16182
|
*/
|
|
15793
16183
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15794
|
-
const request = new
|
|
16184
|
+
const request = new avs_pb22.RunTriggerReq();
|
|
15795
16185
|
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15796
16186
|
request.setTriggerType(protobufTriggerType);
|
|
15797
16187
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -15806,6 +16196,45 @@ var Client = class extends BaseClient {
|
|
|
15806
16196
|
triggerId: result.getTriggerId()
|
|
15807
16197
|
};
|
|
15808
16198
|
}
|
|
16199
|
+
/**
|
|
16200
|
+
* Simulate a complete task execution including trigger and all workflow nodes
|
|
16201
|
+
* @param {SimulateTaskRequest} params - The parameters for simulating the task
|
|
16202
|
+
* @param {Record<string, any>} params.trigger - The trigger configuration
|
|
16203
|
+
* @param {Array<Record<string, any>>} params.nodes - The workflow nodes
|
|
16204
|
+
* @param {Array<Record<string, any>>} params.edges - The workflow edges
|
|
16205
|
+
* @param {string} params.triggerType - The type of the trigger
|
|
16206
|
+
* @param {Record<string, any>} params.triggerConfig - The trigger configuration
|
|
16207
|
+
* @param {Record<string, any>} params.inputVariables - Input variables for the simulation
|
|
16208
|
+
* @param {RequestOptions} options - Request options
|
|
16209
|
+
* @returns {Promise<Execution>} - The response from simulating the task
|
|
16210
|
+
*/
|
|
16211
|
+
async simulateTask({ trigger, nodes, edges, triggerType, triggerConfig = {}, inputVariables = {} }, options) {
|
|
16212
|
+
const request = new avs_pb22.SimulateTaskReq();
|
|
16213
|
+
const triggerSdk = factory_default.create(trigger);
|
|
16214
|
+
request.setTrigger(triggerSdk.toRequest());
|
|
16215
|
+
const nodeMessages = nodes.map((node) => {
|
|
16216
|
+
const nodeSdk = factory_default2.create(node);
|
|
16217
|
+
return nodeSdk.toRequest();
|
|
16218
|
+
});
|
|
16219
|
+
request.setNodesList(nodeMessages);
|
|
16220
|
+
const edgeMessages = edges.map((edge) => {
|
|
16221
|
+
const edgeSdk = new edge_default(edge);
|
|
16222
|
+
return edgeSdk.toRequest();
|
|
16223
|
+
});
|
|
16224
|
+
request.setEdgesList(edgeMessages);
|
|
16225
|
+
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
16226
|
+
request.setTriggerType(protobufTriggerType);
|
|
16227
|
+
const triggerConfigMap = request.getTriggerConfigMap();
|
|
16228
|
+
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
16229
|
+
triggerConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
16230
|
+
}
|
|
16231
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
16232
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
16233
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
16234
|
+
}
|
|
16235
|
+
const result = await this.sendGrpcRequest("simulateTask", request, options);
|
|
16236
|
+
return execution_default.fromResponse(result);
|
|
16237
|
+
}
|
|
15809
16238
|
};
|
|
15810
16239
|
export {
|
|
15811
16240
|
block_default as BlockTrigger,
|
|
@@ -15832,6 +16261,5 @@ export {
|
|
|
15832
16261
|
step_default as Step,
|
|
15833
16262
|
interface_default as Trigger,
|
|
15834
16263
|
factory_default as TriggerFactory,
|
|
15835
|
-
reason_default as TriggerReason,
|
|
15836
16264
|
workflow_default as Workflow
|
|
15837
16265
|
};
|