@avaprotocol/sdk-js 1.6.8 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +848 -583
- package/dist/index.mjs +880 -615
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +2 -53
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +48 -15
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +1 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +1 -0
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +1 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +1 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +79 -0
- package/package.json +2 -2
- package/dist/auth.d.ts +0 -2
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -10
- package/dist/config.d.ts +0 -9
- package/dist/grpc_codegen/custom_types.d.ts +0 -45
- package/dist/grpc_codegen/custom_types.d.ts.map +0 -1
- package/dist/grpc_codegen/custom_types.js +0 -179
- package/dist/models/edge.d.ts +0 -12
- package/dist/models/execution.d.ts +0 -30
- package/dist/models/node/branch.d.ts +0 -15
- package/dist/models/node/contractRead.d.ts +0 -15
- package/dist/models/node/contractWrite.d.ts +0 -15
- package/dist/models/node/customCode.d.ts +0 -15
- package/dist/models/node/ethTransfer.d.ts +0 -15
- package/dist/models/node/factory.d.ts +0 -23
- package/dist/models/node/filter.d.ts +0 -15
- package/dist/models/node/graphqlQuery.d.ts +0 -15
- package/dist/models/node/interface.d.ts +0 -25
- package/dist/models/node/loop.d.ts +0 -14
- package/dist/models/node/restApi.d.ts +0 -15
- package/dist/models/secret.d.ts +0 -16
- package/dist/models/step.d.ts +0 -19
- package/dist/models/trigger/block.d.ts +0 -25
- package/dist/models/trigger/cron.d.ts +0 -26
- package/dist/models/trigger/event.d.ts +0 -25
- package/dist/models/trigger/factory.d.ts +0 -26
- package/dist/models/trigger/fixedTime.d.ts +0 -26
- package/dist/models/trigger/interface.d.ts +0 -25
- package/dist/models/trigger/manual.d.ts +0 -26
- package/dist/models/trigger/reason.d.ts +0 -33
- package/dist/models/trigger/reason.d.ts.map +0 -1
- package/dist/models/trigger/reason.js +0 -96
- package/dist/models/workflow.d.ts +0 -54
- package/dist/utils.d.ts +0 -37
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);
|
|
@@ -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) {
|
|
@@ -825,6 +823,13 @@ var require_avs_pb = __commonJS({
|
|
|
825
823
|
if (goog.DEBUG && !COMPILED) {
|
|
826
824
|
proto.aggregator.Evm.UserOp.displayName = "proto.aggregator.Evm.UserOp";
|
|
827
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
|
+
}
|
|
828
833
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
829
834
|
proto.aggregator.IdReq.prototype.toObject = function(opt_includeInstance) {
|
|
830
835
|
return proto.aggregator.IdReq.toObject(opt_includeInstance, this);
|
|
@@ -5840,21 +5845,6 @@ var require_avs_pb = __commonJS({
|
|
|
5840
5845
|
return jspb.Message.getField(this, 18) != null;
|
|
5841
5846
|
};
|
|
5842
5847
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
5843
|
-
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
5844
|
-
proto.aggregator.Execution.OutputDataCase = {
|
|
5845
|
-
OUTPUT_DATA_NOT_SET: 0,
|
|
5846
|
-
BLOCK_TRIGGER: 10,
|
|
5847
|
-
FIXED_TIME_TRIGGER: 11,
|
|
5848
|
-
CRON_TRIGGER: 12,
|
|
5849
|
-
EVENT_TRIGGER: 13,
|
|
5850
|
-
MANUAL_TRIGGER: 14
|
|
5851
|
-
};
|
|
5852
|
-
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
5853
|
-
return (
|
|
5854
|
-
/** @type {proto.aggregator.Execution.OutputDataCase} */
|
|
5855
|
-
jspb.Message.computeOneofCase(this, proto.aggregator.Execution.oneofGroups_[0])
|
|
5856
|
-
);
|
|
5857
|
-
};
|
|
5858
5848
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5859
5849
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
5860
5850
|
return proto.aggregator.Execution.toObject(opt_includeInstance, this);
|
|
@@ -5866,18 +5856,11 @@ var require_avs_pb = __commonJS({
|
|
|
5866
5856
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5867
5857
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5868
5858
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5869
|
-
triggerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5870
5859
|
stepsList: jspb.Message.toObjectList(
|
|
5871
5860
|
msg.getStepsList(),
|
|
5872
5861
|
proto.aggregator.Execution.Step.toObject,
|
|
5873
5862
|
includeInstance
|
|
5874
|
-
)
|
|
5875
|
-
triggerName: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5876
|
-
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
5877
|
-
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
5878
|
-
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
5879
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
5880
|
-
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
5863
|
+
)
|
|
5881
5864
|
};
|
|
5882
5865
|
if (includeInstance) {
|
|
5883
5866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5932,50 +5915,11 @@ var require_avs_pb = __commonJS({
|
|
|
5932
5915
|
);
|
|
5933
5916
|
msg.setError(value);
|
|
5934
5917
|
break;
|
|
5935
|
-
case 6:
|
|
5936
|
-
var value = (
|
|
5937
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
5938
|
-
reader.readEnum()
|
|
5939
|
-
);
|
|
5940
|
-
msg.setTriggerType(value);
|
|
5941
|
-
break;
|
|
5942
5918
|
case 8:
|
|
5943
5919
|
var value = new proto.aggregator.Execution.Step();
|
|
5944
5920
|
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
5945
5921
|
msg.addSteps(value);
|
|
5946
5922
|
break;
|
|
5947
|
-
case 9:
|
|
5948
|
-
var value = (
|
|
5949
|
-
/** @type {string} */
|
|
5950
|
-
reader.readString()
|
|
5951
|
-
);
|
|
5952
|
-
msg.setTriggerName(value);
|
|
5953
|
-
break;
|
|
5954
|
-
case 10:
|
|
5955
|
-
var value = new proto.aggregator.BlockTrigger.Output();
|
|
5956
|
-
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
5957
|
-
msg.setBlockTrigger(value);
|
|
5958
|
-
break;
|
|
5959
|
-
case 11:
|
|
5960
|
-
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
5961
|
-
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
5962
|
-
msg.setFixedTimeTrigger(value);
|
|
5963
|
-
break;
|
|
5964
|
-
case 12:
|
|
5965
|
-
var value = new proto.aggregator.CronTrigger.Output();
|
|
5966
|
-
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
5967
|
-
msg.setCronTrigger(value);
|
|
5968
|
-
break;
|
|
5969
|
-
case 13:
|
|
5970
|
-
var value = new proto.aggregator.EventTrigger.Output();
|
|
5971
|
-
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
5972
|
-
msg.setEventTrigger(value);
|
|
5973
|
-
break;
|
|
5974
|
-
case 14:
|
|
5975
|
-
var value = new proto.aggregator.ManualTrigger.Output();
|
|
5976
|
-
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
5977
|
-
msg.setManualTrigger(value);
|
|
5978
|
-
break;
|
|
5979
5923
|
default:
|
|
5980
5924
|
reader.skipField();
|
|
5981
5925
|
break;
|
|
@@ -6025,13 +5969,6 @@ var require_avs_pb = __commonJS({
|
|
|
6025
5969
|
f
|
|
6026
5970
|
);
|
|
6027
5971
|
}
|
|
6028
|
-
f = message.getTriggerType();
|
|
6029
|
-
if (f !== 0) {
|
|
6030
|
-
writer.writeEnum(
|
|
6031
|
-
6,
|
|
6032
|
-
f
|
|
6033
|
-
);
|
|
6034
|
-
}
|
|
6035
5972
|
f = message.getStepsList();
|
|
6036
5973
|
if (f.length > 0) {
|
|
6037
5974
|
writer.writeRepeatedMessage(
|
|
@@ -6040,58 +5977,16 @@ var require_avs_pb = __commonJS({
|
|
|
6040
5977
|
proto.aggregator.Execution.Step.serializeBinaryToWriter
|
|
6041
5978
|
);
|
|
6042
5979
|
}
|
|
6043
|
-
f = message.getTriggerName();
|
|
6044
|
-
if (f.length > 0) {
|
|
6045
|
-
writer.writeString(
|
|
6046
|
-
9,
|
|
6047
|
-
f
|
|
6048
|
-
);
|
|
6049
|
-
}
|
|
6050
|
-
f = message.getBlockTrigger();
|
|
6051
|
-
if (f != null) {
|
|
6052
|
-
writer.writeMessage(
|
|
6053
|
-
10,
|
|
6054
|
-
f,
|
|
6055
|
-
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6056
|
-
);
|
|
6057
|
-
}
|
|
6058
|
-
f = message.getFixedTimeTrigger();
|
|
6059
|
-
if (f != null) {
|
|
6060
|
-
writer.writeMessage(
|
|
6061
|
-
11,
|
|
6062
|
-
f,
|
|
6063
|
-
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6064
|
-
);
|
|
6065
|
-
}
|
|
6066
|
-
f = message.getCronTrigger();
|
|
6067
|
-
if (f != null) {
|
|
6068
|
-
writer.writeMessage(
|
|
6069
|
-
12,
|
|
6070
|
-
f,
|
|
6071
|
-
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6072
|
-
);
|
|
6073
|
-
}
|
|
6074
|
-
f = message.getEventTrigger();
|
|
6075
|
-
if (f != null) {
|
|
6076
|
-
writer.writeMessage(
|
|
6077
|
-
13,
|
|
6078
|
-
f,
|
|
6079
|
-
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6080
|
-
);
|
|
6081
|
-
}
|
|
6082
|
-
f = message.getManualTrigger();
|
|
6083
|
-
if (f != null) {
|
|
6084
|
-
writer.writeMessage(
|
|
6085
|
-
14,
|
|
6086
|
-
f,
|
|
6087
|
-
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6088
|
-
);
|
|
6089
|
-
}
|
|
6090
5980
|
};
|
|
6091
5981
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
6092
|
-
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]];
|
|
6093
5983
|
proto.aggregator.Execution.Step.OutputDataCase = {
|
|
6094
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,
|
|
6095
5990
|
ETH_TRANSFER: 3,
|
|
6096
5991
|
GRAPHQL: 4,
|
|
6097
5992
|
CONTRACT_READ: 5,
|
|
@@ -6114,8 +6009,18 @@ var require_avs_pb = __commonJS({
|
|
|
6114
6009
|
};
|
|
6115
6010
|
proto.aggregator.Execution.Step.toObject = function(includeInstance, msg) {
|
|
6116
6011
|
var f, obj = {
|
|
6117
|
-
|
|
6012
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6013
|
+
type: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
6014
|
+
name: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
6118
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),
|
|
6119
6024
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
6120
6025
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
6121
6026
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -6125,11 +6030,8 @@ var require_avs_pb = __commonJS({
|
|
|
6125
6030
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
6126
6031
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
6127
6032
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
6128
|
-
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6129
|
-
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6130
6033
|
startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
6131
|
-
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6132
|
-
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f
|
|
6034
|
+
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6133
6035
|
};
|
|
6134
6036
|
if (includeInstance) {
|
|
6135
6037
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6154,7 +6056,21 @@ var require_avs_pb = __commonJS({
|
|
|
6154
6056
|
/** @type {string} */
|
|
6155
6057
|
reader.readString()
|
|
6156
6058
|
);
|
|
6157
|
-
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);
|
|
6158
6074
|
break;
|
|
6159
6075
|
case 2:
|
|
6160
6076
|
var value = (
|
|
@@ -6163,6 +6079,52 @@ var require_avs_pb = __commonJS({
|
|
|
6163
6079
|
);
|
|
6164
6080
|
msg.setSuccess(value);
|
|
6165
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;
|
|
6166
6128
|
case 3:
|
|
6167
6129
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
6168
6130
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -6208,20 +6170,6 @@ var require_avs_pb = __commonJS({
|
|
|
6208
6170
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
6209
6171
|
msg.setLoop(value);
|
|
6210
6172
|
break;
|
|
6211
|
-
case 12:
|
|
6212
|
-
var value = (
|
|
6213
|
-
/** @type {string} */
|
|
6214
|
-
reader.readString()
|
|
6215
|
-
);
|
|
6216
|
-
msg.setLog(value);
|
|
6217
|
-
break;
|
|
6218
|
-
case 13:
|
|
6219
|
-
var value = (
|
|
6220
|
-
/** @type {string} */
|
|
6221
|
-
reader.readString()
|
|
6222
|
-
);
|
|
6223
|
-
msg.setError(value);
|
|
6224
|
-
break;
|
|
6225
6173
|
case 14:
|
|
6226
6174
|
var value = (
|
|
6227
6175
|
/** @type {number} */
|
|
@@ -6236,13 +6184,6 @@ var require_avs_pb = __commonJS({
|
|
|
6236
6184
|
);
|
|
6237
6185
|
msg.setEndAt(value);
|
|
6238
6186
|
break;
|
|
6239
|
-
case 16:
|
|
6240
|
-
var value = (
|
|
6241
|
-
/** @type {string} */
|
|
6242
|
-
reader.readString()
|
|
6243
|
-
);
|
|
6244
|
-
msg.addInputs(value);
|
|
6245
|
-
break;
|
|
6246
6187
|
default:
|
|
6247
6188
|
reader.skipField();
|
|
6248
6189
|
break;
|
|
@@ -6257,13 +6198,27 @@ var require_avs_pb = __commonJS({
|
|
|
6257
6198
|
};
|
|
6258
6199
|
proto.aggregator.Execution.Step.serializeBinaryToWriter = function(message, writer) {
|
|
6259
6200
|
var f = void 0;
|
|
6260
|
-
f = message.
|
|
6201
|
+
f = message.getId();
|
|
6261
6202
|
if (f.length > 0) {
|
|
6262
6203
|
writer.writeString(
|
|
6263
6204
|
1,
|
|
6264
6205
|
f
|
|
6265
6206
|
);
|
|
6266
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
|
+
}
|
|
6267
6222
|
f = message.getSuccess();
|
|
6268
6223
|
if (f) {
|
|
6269
6224
|
writer.writeBool(
|
|
@@ -6271,6 +6226,67 @@ var require_avs_pb = __commonJS({
|
|
|
6271
6226
|
f
|
|
6272
6227
|
);
|
|
6273
6228
|
}
|
|
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();
|
|
6251
|
+
if (f != null) {
|
|
6252
|
+
writer.writeMessage(
|
|
6253
|
+
20,
|
|
6254
|
+
f,
|
|
6255
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6256
|
+
);
|
|
6257
|
+
}
|
|
6258
|
+
f = message.getFixedTimeTrigger();
|
|
6259
|
+
if (f != null) {
|
|
6260
|
+
writer.writeMessage(
|
|
6261
|
+
21,
|
|
6262
|
+
f,
|
|
6263
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6264
|
+
);
|
|
6265
|
+
}
|
|
6266
|
+
f = message.getCronTrigger();
|
|
6267
|
+
if (f != null) {
|
|
6268
|
+
writer.writeMessage(
|
|
6269
|
+
22,
|
|
6270
|
+
f,
|
|
6271
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6272
|
+
);
|
|
6273
|
+
}
|
|
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
|
+
}
|
|
6274
6290
|
f = message.getEthTransfer();
|
|
6275
6291
|
if (f != null) {
|
|
6276
6292
|
writer.writeMessage(
|
|
@@ -6343,20 +6359,6 @@ var require_avs_pb = __commonJS({
|
|
|
6343
6359
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
6344
6360
|
);
|
|
6345
6361
|
}
|
|
6346
|
-
f = message.getLog();
|
|
6347
|
-
if (f.length > 0) {
|
|
6348
|
-
writer.writeString(
|
|
6349
|
-
12,
|
|
6350
|
-
f
|
|
6351
|
-
);
|
|
6352
|
-
}
|
|
6353
|
-
f = message.getError();
|
|
6354
|
-
if (f.length > 0) {
|
|
6355
|
-
writer.writeString(
|
|
6356
|
-
13,
|
|
6357
|
-
f
|
|
6358
|
-
);
|
|
6359
|
-
}
|
|
6360
6362
|
f = message.getStartAt();
|
|
6361
6363
|
if (f !== 0) {
|
|
6362
6364
|
writer.writeInt64(
|
|
@@ -6371,23 +6373,34 @@ var require_avs_pb = __commonJS({
|
|
|
6371
6373
|
f
|
|
6372
6374
|
);
|
|
6373
6375
|
}
|
|
6374
|
-
f = message.getInputsList();
|
|
6375
|
-
if (f.length > 0) {
|
|
6376
|
-
writer.writeRepeatedString(
|
|
6377
|
-
16,
|
|
6378
|
-
f
|
|
6379
|
-
);
|
|
6380
|
-
}
|
|
6381
6376
|
};
|
|
6382
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6377
|
+
proto.aggregator.Execution.Step.prototype.getId = function() {
|
|
6383
6378
|
return (
|
|
6384
6379
|
/** @type {string} */
|
|
6385
6380
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
6386
6381
|
);
|
|
6387
6382
|
};
|
|
6388
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6383
|
+
proto.aggregator.Execution.Step.prototype.setId = function(value) {
|
|
6389
6384
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6390
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
|
+
};
|
|
6391
6404
|
proto.aggregator.Execution.Step.prototype.getSuccess = function() {
|
|
6392
6405
|
return (
|
|
6393
6406
|
/** @type {boolean} */
|
|
@@ -6397,6 +6410,114 @@ var require_avs_pb = __commonJS({
|
|
|
6397
6410
|
proto.aggregator.Execution.Step.prototype.setSuccess = function(value) {
|
|
6398
6411
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6399
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
|
+
};
|
|
6400
6521
|
proto.aggregator.Execution.Step.prototype.getEthTransfer = function() {
|
|
6401
6522
|
return (
|
|
6402
6523
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -6532,24 +6653,6 @@ var require_avs_pb = __commonJS({
|
|
|
6532
6653
|
proto.aggregator.Execution.Step.prototype.hasLoop = function() {
|
|
6533
6654
|
return jspb.Message.getField(this, 11) != null;
|
|
6534
6655
|
};
|
|
6535
|
-
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6536
|
-
return (
|
|
6537
|
-
/** @type {string} */
|
|
6538
|
-
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6539
|
-
);
|
|
6540
|
-
};
|
|
6541
|
-
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6542
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6543
|
-
};
|
|
6544
|
-
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6545
|
-
return (
|
|
6546
|
-
/** @type {string} */
|
|
6547
|
-
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6548
|
-
);
|
|
6549
|
-
};
|
|
6550
|
-
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6551
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6552
|
-
};
|
|
6553
6656
|
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
6554
6657
|
return (
|
|
6555
6658
|
/** @type {number} */
|
|
@@ -6568,21 +6671,6 @@ var require_avs_pb = __commonJS({
|
|
|
6568
6671
|
proto.aggregator.Execution.Step.prototype.setEndAt = function(value) {
|
|
6569
6672
|
return jspb.Message.setProto3IntField(this, 15, value);
|
|
6570
6673
|
};
|
|
6571
|
-
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6572
|
-
return (
|
|
6573
|
-
/** @type {!Array<string>} */
|
|
6574
|
-
jspb.Message.getRepeatedField(this, 16)
|
|
6575
|
-
);
|
|
6576
|
-
};
|
|
6577
|
-
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6578
|
-
return jspb.Message.setField(this, 16, value || []);
|
|
6579
|
-
};
|
|
6580
|
-
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6581
|
-
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6582
|
-
};
|
|
6583
|
-
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6584
|
-
return this.setInputsList([]);
|
|
6585
|
-
};
|
|
6586
6674
|
proto.aggregator.Execution.prototype.getId = function() {
|
|
6587
6675
|
return (
|
|
6588
6676
|
/** @type {string} */
|
|
@@ -6608,133 +6696,40 @@ var require_avs_pb = __commonJS({
|
|
|
6608
6696
|
);
|
|
6609
6697
|
};
|
|
6610
6698
|
proto.aggregator.Execution.prototype.setEndAt = function(value) {
|
|
6611
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6612
|
-
};
|
|
6613
|
-
proto.aggregator.Execution.prototype.getSuccess = function() {
|
|
6614
|
-
return (
|
|
6615
|
-
/** @type {boolean} */
|
|
6616
|
-
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
6617
|
-
);
|
|
6618
|
-
};
|
|
6619
|
-
proto.aggregator.Execution.prototype.setSuccess = function(value) {
|
|
6620
|
-
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
6621
|
-
};
|
|
6622
|
-
proto.aggregator.Execution.prototype.getError = function() {
|
|
6623
|
-
return (
|
|
6624
|
-
/** @type {string} */
|
|
6625
|
-
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
6626
|
-
);
|
|
6627
|
-
};
|
|
6628
|
-
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6629
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6630
|
-
};
|
|
6631
|
-
proto.aggregator.Execution.prototype.getTriggerType = function() {
|
|
6632
|
-
return (
|
|
6633
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
6634
|
-
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
6635
|
-
);
|
|
6636
|
-
};
|
|
6637
|
-
proto.aggregator.Execution.prototype.setTriggerType = function(value) {
|
|
6638
|
-
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
6639
|
-
};
|
|
6640
|
-
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6641
|
-
return (
|
|
6642
|
-
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
6643
|
-
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.Execution.Step, 8)
|
|
6644
|
-
);
|
|
6645
|
-
};
|
|
6646
|
-
proto.aggregator.Execution.prototype.setStepsList = function(value) {
|
|
6647
|
-
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
6648
|
-
};
|
|
6649
|
-
proto.aggregator.Execution.prototype.addSteps = function(opt_value, opt_index) {
|
|
6650
|
-
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.aggregator.Execution.Step, opt_index);
|
|
6651
|
-
};
|
|
6652
|
-
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6653
|
-
return this.setStepsList([]);
|
|
6654
|
-
};
|
|
6655
|
-
proto.aggregator.Execution.prototype.getTriggerName = function() {
|
|
6656
|
-
return (
|
|
6657
|
-
/** @type {string} */
|
|
6658
|
-
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
6659
|
-
);
|
|
6660
|
-
};
|
|
6661
|
-
proto.aggregator.Execution.prototype.setTriggerName = function(value) {
|
|
6662
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
6663
|
-
};
|
|
6664
|
-
proto.aggregator.Execution.prototype.getBlockTrigger = function() {
|
|
6665
|
-
return (
|
|
6666
|
-
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6667
|
-
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 10)
|
|
6668
|
-
);
|
|
6669
|
-
};
|
|
6670
|
-
proto.aggregator.Execution.prototype.setBlockTrigger = function(value) {
|
|
6671
|
-
return jspb.Message.setOneofWrapperField(this, 10, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6672
|
-
};
|
|
6673
|
-
proto.aggregator.Execution.prototype.clearBlockTrigger = function() {
|
|
6674
|
-
return this.setBlockTrigger(void 0);
|
|
6675
|
-
};
|
|
6676
|
-
proto.aggregator.Execution.prototype.hasBlockTrigger = function() {
|
|
6677
|
-
return jspb.Message.getField(this, 10) != null;
|
|
6678
|
-
};
|
|
6679
|
-
proto.aggregator.Execution.prototype.getFixedTimeTrigger = function() {
|
|
6680
|
-
return (
|
|
6681
|
-
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6682
|
-
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 11)
|
|
6683
|
-
);
|
|
6684
|
-
};
|
|
6685
|
-
proto.aggregator.Execution.prototype.setFixedTimeTrigger = function(value) {
|
|
6686
|
-
return jspb.Message.setOneofWrapperField(this, 11, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6687
|
-
};
|
|
6688
|
-
proto.aggregator.Execution.prototype.clearFixedTimeTrigger = function() {
|
|
6689
|
-
return this.setFixedTimeTrigger(void 0);
|
|
6690
|
-
};
|
|
6691
|
-
proto.aggregator.Execution.prototype.hasFixedTimeTrigger = function() {
|
|
6692
|
-
return jspb.Message.getField(this, 11) != null;
|
|
6693
|
-
};
|
|
6694
|
-
proto.aggregator.Execution.prototype.getCronTrigger = function() {
|
|
6695
|
-
return (
|
|
6696
|
-
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6697
|
-
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 12)
|
|
6698
|
-
);
|
|
6699
|
-
};
|
|
6700
|
-
proto.aggregator.Execution.prototype.setCronTrigger = function(value) {
|
|
6701
|
-
return jspb.Message.setOneofWrapperField(this, 12, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6702
|
-
};
|
|
6703
|
-
proto.aggregator.Execution.prototype.clearCronTrigger = function() {
|
|
6704
|
-
return this.setCronTrigger(void 0);
|
|
6705
|
-
};
|
|
6706
|
-
proto.aggregator.Execution.prototype.hasCronTrigger = function() {
|
|
6707
|
-
return jspb.Message.getField(this, 12) != null;
|
|
6699
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6708
6700
|
};
|
|
6709
|
-
proto.aggregator.Execution.prototype.
|
|
6701
|
+
proto.aggregator.Execution.prototype.getSuccess = function() {
|
|
6710
6702
|
return (
|
|
6711
|
-
/** @type{
|
|
6712
|
-
jspb.Message.
|
|
6703
|
+
/** @type {boolean} */
|
|
6704
|
+
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
6713
6705
|
);
|
|
6714
6706
|
};
|
|
6715
|
-
proto.aggregator.Execution.prototype.
|
|
6716
|
-
return jspb.Message.
|
|
6707
|
+
proto.aggregator.Execution.prototype.setSuccess = function(value) {
|
|
6708
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
6717
6709
|
};
|
|
6718
|
-
proto.aggregator.Execution.prototype.
|
|
6719
|
-
return
|
|
6710
|
+
proto.aggregator.Execution.prototype.getError = function() {
|
|
6711
|
+
return (
|
|
6712
|
+
/** @type {string} */
|
|
6713
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
6714
|
+
);
|
|
6720
6715
|
};
|
|
6721
|
-
proto.aggregator.Execution.prototype.
|
|
6722
|
-
return jspb.Message.
|
|
6716
|
+
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6717
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6723
6718
|
};
|
|
6724
|
-
proto.aggregator.Execution.prototype.
|
|
6719
|
+
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6725
6720
|
return (
|
|
6726
|
-
/** @type{
|
|
6727
|
-
jspb.Message.
|
|
6721
|
+
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
6722
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.Execution.Step, 8)
|
|
6728
6723
|
);
|
|
6729
6724
|
};
|
|
6730
|
-
proto.aggregator.Execution.prototype.
|
|
6731
|
-
return jspb.Message.
|
|
6725
|
+
proto.aggregator.Execution.prototype.setStepsList = function(value) {
|
|
6726
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
6732
6727
|
};
|
|
6733
|
-
proto.aggregator.Execution.prototype.
|
|
6734
|
-
return
|
|
6728
|
+
proto.aggregator.Execution.prototype.addSteps = function(opt_value, opt_index) {
|
|
6729
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.aggregator.Execution.Step, opt_index);
|
|
6735
6730
|
};
|
|
6736
|
-
proto.aggregator.Execution.prototype.
|
|
6737
|
-
return
|
|
6731
|
+
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6732
|
+
return this.setStepsList([]);
|
|
6738
6733
|
};
|
|
6739
6734
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
6740
6735
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -13125,6 +13120,168 @@ var require_avs_pb = __commonJS({
|
|
|
13125
13120
|
proto.aggregator.Evm.UserOp.prototype.setSignature = function(value) {
|
|
13126
13121
|
return jspb.Message.setProto3StringField(this, 11, value);
|
|
13127
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
|
+
inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13142
|
+
};
|
|
13143
|
+
if (includeInstance) {
|
|
13144
|
+
obj.$jspbMessageInstance = msg;
|
|
13145
|
+
}
|
|
13146
|
+
return obj;
|
|
13147
|
+
};
|
|
13148
|
+
}
|
|
13149
|
+
proto.aggregator.SimulateTaskReq.deserializeBinary = function(bytes) {
|
|
13150
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13151
|
+
var msg = new proto.aggregator.SimulateTaskReq();
|
|
13152
|
+
return proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
13153
|
+
};
|
|
13154
|
+
proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
13155
|
+
while (reader.nextField()) {
|
|
13156
|
+
if (reader.isEndGroup()) {
|
|
13157
|
+
break;
|
|
13158
|
+
}
|
|
13159
|
+
var field = reader.getFieldNumber();
|
|
13160
|
+
switch (field) {
|
|
13161
|
+
case 1:
|
|
13162
|
+
var value = new proto.aggregator.TaskTrigger();
|
|
13163
|
+
reader.readMessage(value, proto.aggregator.TaskTrigger.deserializeBinaryFromReader);
|
|
13164
|
+
msg.setTrigger(value);
|
|
13165
|
+
break;
|
|
13166
|
+
case 2:
|
|
13167
|
+
var value = new proto.aggregator.TaskNode();
|
|
13168
|
+
reader.readMessage(value, proto.aggregator.TaskNode.deserializeBinaryFromReader);
|
|
13169
|
+
msg.addNodes(value);
|
|
13170
|
+
break;
|
|
13171
|
+
case 3:
|
|
13172
|
+
var value = new proto.aggregator.TaskEdge();
|
|
13173
|
+
reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
|
|
13174
|
+
msg.addEdges(value);
|
|
13175
|
+
break;
|
|
13176
|
+
case 6:
|
|
13177
|
+
var value = msg.getInputVariablesMap();
|
|
13178
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13179
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13180
|
+
});
|
|
13181
|
+
break;
|
|
13182
|
+
default:
|
|
13183
|
+
reader.skipField();
|
|
13184
|
+
break;
|
|
13185
|
+
}
|
|
13186
|
+
}
|
|
13187
|
+
return msg;
|
|
13188
|
+
};
|
|
13189
|
+
proto.aggregator.SimulateTaskReq.prototype.serializeBinary = function() {
|
|
13190
|
+
var writer = new jspb.BinaryWriter();
|
|
13191
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter(this, writer);
|
|
13192
|
+
return writer.getResultBuffer();
|
|
13193
|
+
};
|
|
13194
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
13195
|
+
var f = void 0;
|
|
13196
|
+
f = message.getTrigger();
|
|
13197
|
+
if (f != null) {
|
|
13198
|
+
writer.writeMessage(
|
|
13199
|
+
1,
|
|
13200
|
+
f,
|
|
13201
|
+
proto.aggregator.TaskTrigger.serializeBinaryToWriter
|
|
13202
|
+
);
|
|
13203
|
+
}
|
|
13204
|
+
f = message.getNodesList();
|
|
13205
|
+
if (f.length > 0) {
|
|
13206
|
+
writer.writeRepeatedMessage(
|
|
13207
|
+
2,
|
|
13208
|
+
f,
|
|
13209
|
+
proto.aggregator.TaskNode.serializeBinaryToWriter
|
|
13210
|
+
);
|
|
13211
|
+
}
|
|
13212
|
+
f = message.getEdgesList();
|
|
13213
|
+
if (f.length > 0) {
|
|
13214
|
+
writer.writeRepeatedMessage(
|
|
13215
|
+
3,
|
|
13216
|
+
f,
|
|
13217
|
+
proto.aggregator.TaskEdge.serializeBinaryToWriter
|
|
13218
|
+
);
|
|
13219
|
+
}
|
|
13220
|
+
f = message.getInputVariablesMap(true);
|
|
13221
|
+
if (f && f.getLength() > 0) {
|
|
13222
|
+
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13223
|
+
}
|
|
13224
|
+
};
|
|
13225
|
+
proto.aggregator.SimulateTaskReq.prototype.getTrigger = function() {
|
|
13226
|
+
return (
|
|
13227
|
+
/** @type{?proto.aggregator.TaskTrigger} */
|
|
13228
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskTrigger, 1)
|
|
13229
|
+
);
|
|
13230
|
+
};
|
|
13231
|
+
proto.aggregator.SimulateTaskReq.prototype.setTrigger = function(value) {
|
|
13232
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13233
|
+
};
|
|
13234
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTrigger = function() {
|
|
13235
|
+
return this.setTrigger(void 0);
|
|
13236
|
+
};
|
|
13237
|
+
proto.aggregator.SimulateTaskReq.prototype.hasTrigger = function() {
|
|
13238
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13239
|
+
};
|
|
13240
|
+
proto.aggregator.SimulateTaskReq.prototype.getNodesList = function() {
|
|
13241
|
+
return (
|
|
13242
|
+
/** @type{!Array<!proto.aggregator.TaskNode>} */
|
|
13243
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskNode, 2)
|
|
13244
|
+
);
|
|
13245
|
+
};
|
|
13246
|
+
proto.aggregator.SimulateTaskReq.prototype.setNodesList = function(value) {
|
|
13247
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
13248
|
+
};
|
|
13249
|
+
proto.aggregator.SimulateTaskReq.prototype.addNodes = function(opt_value, opt_index) {
|
|
13250
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.aggregator.TaskNode, opt_index);
|
|
13251
|
+
};
|
|
13252
|
+
proto.aggregator.SimulateTaskReq.prototype.clearNodesList = function() {
|
|
13253
|
+
return this.setNodesList([]);
|
|
13254
|
+
};
|
|
13255
|
+
proto.aggregator.SimulateTaskReq.prototype.getEdgesList = function() {
|
|
13256
|
+
return (
|
|
13257
|
+
/** @type{!Array<!proto.aggregator.TaskEdge>} */
|
|
13258
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskEdge, 3)
|
|
13259
|
+
);
|
|
13260
|
+
};
|
|
13261
|
+
proto.aggregator.SimulateTaskReq.prototype.setEdgesList = function(value) {
|
|
13262
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
13263
|
+
};
|
|
13264
|
+
proto.aggregator.SimulateTaskReq.prototype.addEdges = function(opt_value, opt_index) {
|
|
13265
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.aggregator.TaskEdge, opt_index);
|
|
13266
|
+
};
|
|
13267
|
+
proto.aggregator.SimulateTaskReq.prototype.clearEdgesList = function() {
|
|
13268
|
+
return this.setEdgesList([]);
|
|
13269
|
+
};
|
|
13270
|
+
proto.aggregator.SimulateTaskReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
|
|
13271
|
+
return (
|
|
13272
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13273
|
+
jspb.Message.getMapField(
|
|
13274
|
+
this,
|
|
13275
|
+
6,
|
|
13276
|
+
opt_noLazyCreate,
|
|
13277
|
+
proto.google.protobuf.Value
|
|
13278
|
+
)
|
|
13279
|
+
);
|
|
13280
|
+
};
|
|
13281
|
+
proto.aggregator.SimulateTaskReq.prototype.clearInputVariablesMap = function() {
|
|
13282
|
+
this.getInputVariablesMap().clear();
|
|
13283
|
+
return this;
|
|
13284
|
+
};
|
|
13128
13285
|
proto.aggregator.TriggerType = {
|
|
13129
13286
|
TRIGGER_TYPE_UNSPECIFIED: 0,
|
|
13130
13287
|
TRIGGER_TYPE_MANUAL: 1,
|
|
@@ -13181,352 +13338,360 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13181
13338
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
13182
13339
|
"use strict";
|
|
13183
13340
|
var grpc = __require("@grpc/grpc-js");
|
|
13184
|
-
var
|
|
13341
|
+
var avs_pb23 = require_avs_pb();
|
|
13185
13342
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
13186
|
-
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
13187
13343
|
var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
|
|
13188
13344
|
var google_protobuf_struct_pb = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
13189
13345
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
13190
|
-
if (!(arg instanceof
|
|
13346
|
+
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
13191
13347
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
13192
13348
|
}
|
|
13193
13349
|
return Buffer.from(arg.serializeBinary());
|
|
13194
13350
|
}
|
|
13195
13351
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
13196
|
-
return
|
|
13352
|
+
return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13197
13353
|
}
|
|
13198
13354
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
13199
|
-
if (!(arg instanceof
|
|
13355
|
+
if (!(arg instanceof avs_pb23.CreateTaskReq)) {
|
|
13200
13356
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
13201
13357
|
}
|
|
13202
13358
|
return Buffer.from(arg.serializeBinary());
|
|
13203
13359
|
}
|
|
13204
13360
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
13205
|
-
return
|
|
13361
|
+
return avs_pb23.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13206
13362
|
}
|
|
13207
13363
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
13208
|
-
if (!(arg instanceof
|
|
13364
|
+
if (!(arg instanceof avs_pb23.CreateTaskResp)) {
|
|
13209
13365
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
13210
13366
|
}
|
|
13211
13367
|
return Buffer.from(arg.serializeBinary());
|
|
13212
13368
|
}
|
|
13213
13369
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
13214
|
-
return
|
|
13370
|
+
return avs_pb23.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13215
13371
|
}
|
|
13216
13372
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
13217
|
-
if (!(arg instanceof
|
|
13373
|
+
if (!(arg instanceof avs_pb23.DeleteSecretReq)) {
|
|
13218
13374
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
13219
13375
|
}
|
|
13220
13376
|
return Buffer.from(arg.serializeBinary());
|
|
13221
13377
|
}
|
|
13222
13378
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
13223
|
-
return
|
|
13379
|
+
return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13224
13380
|
}
|
|
13225
13381
|
function serialize_aggregator_Execution(arg) {
|
|
13226
|
-
if (!(arg instanceof
|
|
13382
|
+
if (!(arg instanceof avs_pb23.Execution)) {
|
|
13227
13383
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
13228
13384
|
}
|
|
13229
13385
|
return Buffer.from(arg.serializeBinary());
|
|
13230
13386
|
}
|
|
13231
13387
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
13232
|
-
return
|
|
13388
|
+
return avs_pb23.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13233
13389
|
}
|
|
13234
13390
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
13235
|
-
if (!(arg instanceof
|
|
13391
|
+
if (!(arg instanceof avs_pb23.ExecutionReq)) {
|
|
13236
13392
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
13237
13393
|
}
|
|
13238
13394
|
return Buffer.from(arg.serializeBinary());
|
|
13239
13395
|
}
|
|
13240
13396
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
13241
|
-
return
|
|
13397
|
+
return avs_pb23.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13242
13398
|
}
|
|
13243
13399
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
13244
|
-
if (!(arg instanceof
|
|
13400
|
+
if (!(arg instanceof avs_pb23.ExecutionStatusResp)) {
|
|
13245
13401
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
13246
13402
|
}
|
|
13247
13403
|
return Buffer.from(arg.serializeBinary());
|
|
13248
13404
|
}
|
|
13249
13405
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
13250
|
-
return
|
|
13406
|
+
return avs_pb23.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13251
13407
|
}
|
|
13252
13408
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
13253
|
-
if (!(arg instanceof
|
|
13409
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountReq)) {
|
|
13254
13410
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
13255
13411
|
}
|
|
13256
13412
|
return Buffer.from(arg.serializeBinary());
|
|
13257
13413
|
}
|
|
13258
13414
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
13259
|
-
return
|
|
13415
|
+
return avs_pb23.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13260
13416
|
}
|
|
13261
13417
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
13262
|
-
if (!(arg instanceof
|
|
13418
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountResp)) {
|
|
13263
13419
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
13264
13420
|
}
|
|
13265
13421
|
return Buffer.from(arg.serializeBinary());
|
|
13266
13422
|
}
|
|
13267
13423
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
13268
|
-
return
|
|
13424
|
+
return avs_pb23.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13269
13425
|
}
|
|
13270
13426
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
13271
|
-
if (!(arg instanceof
|
|
13427
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsReq)) {
|
|
13272
13428
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
13273
13429
|
}
|
|
13274
13430
|
return Buffer.from(arg.serializeBinary());
|
|
13275
13431
|
}
|
|
13276
13432
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
13277
|
-
return
|
|
13433
|
+
return avs_pb23.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13278
13434
|
}
|
|
13279
13435
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
13280
|
-
if (!(arg instanceof
|
|
13436
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsResp)) {
|
|
13281
13437
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
13282
13438
|
}
|
|
13283
13439
|
return Buffer.from(arg.serializeBinary());
|
|
13284
13440
|
}
|
|
13285
13441
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
13286
|
-
return
|
|
13442
|
+
return avs_pb23.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13287
13443
|
}
|
|
13288
13444
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
13289
|
-
if (!(arg instanceof
|
|
13445
|
+
if (!(arg instanceof avs_pb23.GetKeyReq)) {
|
|
13290
13446
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
13291
13447
|
}
|
|
13292
13448
|
return Buffer.from(arg.serializeBinary());
|
|
13293
13449
|
}
|
|
13294
13450
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
13295
|
-
return
|
|
13451
|
+
return avs_pb23.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13296
13452
|
}
|
|
13297
13453
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
13298
|
-
if (!(arg instanceof
|
|
13454
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatReq)) {
|
|
13299
13455
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
13300
13456
|
}
|
|
13301
13457
|
return Buffer.from(arg.serializeBinary());
|
|
13302
13458
|
}
|
|
13303
13459
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
13304
|
-
return
|
|
13460
|
+
return avs_pb23.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13305
13461
|
}
|
|
13306
13462
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
13307
|
-
if (!(arg instanceof
|
|
13463
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatResp)) {
|
|
13308
13464
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
13309
13465
|
}
|
|
13310
13466
|
return Buffer.from(arg.serializeBinary());
|
|
13311
13467
|
}
|
|
13312
13468
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
13313
|
-
return
|
|
13469
|
+
return avs_pb23.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13314
13470
|
}
|
|
13315
13471
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13316
|
-
if (!(arg instanceof
|
|
13472
|
+
if (!(arg instanceof avs_pb23.GetWalletReq)) {
|
|
13317
13473
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
13318
13474
|
}
|
|
13319
13475
|
return Buffer.from(arg.serializeBinary());
|
|
13320
13476
|
}
|
|
13321
13477
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
13322
|
-
return
|
|
13478
|
+
return avs_pb23.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13323
13479
|
}
|
|
13324
13480
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
13325
|
-
if (!(arg instanceof
|
|
13481
|
+
if (!(arg instanceof avs_pb23.GetWalletResp)) {
|
|
13326
13482
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
13327
13483
|
}
|
|
13328
13484
|
return Buffer.from(arg.serializeBinary());
|
|
13329
13485
|
}
|
|
13330
13486
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
13331
|
-
return
|
|
13487
|
+
return avs_pb23.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13332
13488
|
}
|
|
13333
13489
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
13334
|
-
if (!(arg instanceof
|
|
13490
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountReq)) {
|
|
13335
13491
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
13336
13492
|
}
|
|
13337
13493
|
return Buffer.from(arg.serializeBinary());
|
|
13338
13494
|
}
|
|
13339
13495
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13340
|
-
return
|
|
13496
|
+
return avs_pb23.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13341
13497
|
}
|
|
13342
13498
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13343
|
-
if (!(arg instanceof
|
|
13499
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountResp)) {
|
|
13344
13500
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13345
13501
|
}
|
|
13346
13502
|
return Buffer.from(arg.serializeBinary());
|
|
13347
13503
|
}
|
|
13348
13504
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13349
|
-
return
|
|
13505
|
+
return avs_pb23.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13350
13506
|
}
|
|
13351
13507
|
function serialize_aggregator_IdReq(arg) {
|
|
13352
|
-
if (!(arg instanceof
|
|
13508
|
+
if (!(arg instanceof avs_pb23.IdReq)) {
|
|
13353
13509
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13354
13510
|
}
|
|
13355
13511
|
return Buffer.from(arg.serializeBinary());
|
|
13356
13512
|
}
|
|
13357
13513
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13358
|
-
return
|
|
13514
|
+
return avs_pb23.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13359
13515
|
}
|
|
13360
13516
|
function serialize_aggregator_KeyResp(arg) {
|
|
13361
|
-
if (!(arg instanceof
|
|
13517
|
+
if (!(arg instanceof avs_pb23.KeyResp)) {
|
|
13362
13518
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13363
13519
|
}
|
|
13364
13520
|
return Buffer.from(arg.serializeBinary());
|
|
13365
13521
|
}
|
|
13366
13522
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13367
|
-
return
|
|
13523
|
+
return avs_pb23.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13368
13524
|
}
|
|
13369
13525
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13370
|
-
if (!(arg instanceof
|
|
13526
|
+
if (!(arg instanceof avs_pb23.ListExecutionsReq)) {
|
|
13371
13527
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13372
13528
|
}
|
|
13373
13529
|
return Buffer.from(arg.serializeBinary());
|
|
13374
13530
|
}
|
|
13375
13531
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13376
|
-
return
|
|
13532
|
+
return avs_pb23.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13377
13533
|
}
|
|
13378
13534
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13379
|
-
if (!(arg instanceof
|
|
13535
|
+
if (!(arg instanceof avs_pb23.ListExecutionsResp)) {
|
|
13380
13536
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13381
13537
|
}
|
|
13382
13538
|
return Buffer.from(arg.serializeBinary());
|
|
13383
13539
|
}
|
|
13384
13540
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13385
|
-
return
|
|
13541
|
+
return avs_pb23.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13386
13542
|
}
|
|
13387
13543
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13388
|
-
if (!(arg instanceof
|
|
13544
|
+
if (!(arg instanceof avs_pb23.ListSecretsReq)) {
|
|
13389
13545
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13390
13546
|
}
|
|
13391
13547
|
return Buffer.from(arg.serializeBinary());
|
|
13392
13548
|
}
|
|
13393
13549
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13394
|
-
return
|
|
13550
|
+
return avs_pb23.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13395
13551
|
}
|
|
13396
13552
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13397
|
-
if (!(arg instanceof
|
|
13553
|
+
if (!(arg instanceof avs_pb23.ListSecretsResp)) {
|
|
13398
13554
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13399
13555
|
}
|
|
13400
13556
|
return Buffer.from(arg.serializeBinary());
|
|
13401
13557
|
}
|
|
13402
13558
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13403
|
-
return
|
|
13559
|
+
return avs_pb23.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13404
13560
|
}
|
|
13405
13561
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13406
|
-
if (!(arg instanceof
|
|
13562
|
+
if (!(arg instanceof avs_pb23.ListTasksReq)) {
|
|
13407
13563
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13408
13564
|
}
|
|
13409
13565
|
return Buffer.from(arg.serializeBinary());
|
|
13410
13566
|
}
|
|
13411
13567
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13412
|
-
return
|
|
13568
|
+
return avs_pb23.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13413
13569
|
}
|
|
13414
13570
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13415
|
-
if (!(arg instanceof
|
|
13571
|
+
if (!(arg instanceof avs_pb23.ListTasksResp)) {
|
|
13416
13572
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13417
13573
|
}
|
|
13418
13574
|
return Buffer.from(arg.serializeBinary());
|
|
13419
13575
|
}
|
|
13420
13576
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13421
|
-
return
|
|
13577
|
+
return avs_pb23.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13422
13578
|
}
|
|
13423
13579
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13424
|
-
if (!(arg instanceof
|
|
13580
|
+
if (!(arg instanceof avs_pb23.ListWalletReq)) {
|
|
13425
13581
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13426
13582
|
}
|
|
13427
13583
|
return Buffer.from(arg.serializeBinary());
|
|
13428
13584
|
}
|
|
13429
13585
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13430
|
-
return
|
|
13586
|
+
return avs_pb23.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13431
13587
|
}
|
|
13432
13588
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13433
|
-
if (!(arg instanceof
|
|
13589
|
+
if (!(arg instanceof avs_pb23.ListWalletResp)) {
|
|
13434
13590
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13435
13591
|
}
|
|
13436
13592
|
return Buffer.from(arg.serializeBinary());
|
|
13437
13593
|
}
|
|
13438
13594
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13439
|
-
return
|
|
13595
|
+
return avs_pb23.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13440
13596
|
}
|
|
13441
13597
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13442
|
-
if (!(arg instanceof
|
|
13598
|
+
if (!(arg instanceof avs_pb23.NonceRequest)) {
|
|
13443
13599
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13444
13600
|
}
|
|
13445
13601
|
return Buffer.from(arg.serializeBinary());
|
|
13446
13602
|
}
|
|
13447
13603
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13448
|
-
return
|
|
13604
|
+
return avs_pb23.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13449
13605
|
}
|
|
13450
13606
|
function serialize_aggregator_NonceResp(arg) {
|
|
13451
|
-
if (!(arg instanceof
|
|
13607
|
+
if (!(arg instanceof avs_pb23.NonceResp)) {
|
|
13452
13608
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13453
13609
|
}
|
|
13454
13610
|
return Buffer.from(arg.serializeBinary());
|
|
13455
13611
|
}
|
|
13456
13612
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13457
|
-
return
|
|
13613
|
+
return avs_pb23.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13458
13614
|
}
|
|
13459
13615
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13460
|
-
if (!(arg instanceof
|
|
13616
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsReq)) {
|
|
13461
13617
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13462
13618
|
}
|
|
13463
13619
|
return Buffer.from(arg.serializeBinary());
|
|
13464
13620
|
}
|
|
13465
13621
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13466
|
-
return
|
|
13622
|
+
return avs_pb23.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13467
13623
|
}
|
|
13468
13624
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13469
|
-
if (!(arg instanceof
|
|
13625
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsResp)) {
|
|
13470
13626
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13471
13627
|
}
|
|
13472
13628
|
return Buffer.from(arg.serializeBinary());
|
|
13473
13629
|
}
|
|
13474
13630
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13475
|
-
return
|
|
13631
|
+
return avs_pb23.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13476
13632
|
}
|
|
13477
13633
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13478
|
-
if (!(arg instanceof
|
|
13634
|
+
if (!(arg instanceof avs_pb23.RunTriggerReq)) {
|
|
13479
13635
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13480
13636
|
}
|
|
13481
13637
|
return Buffer.from(arg.serializeBinary());
|
|
13482
13638
|
}
|
|
13483
13639
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13484
|
-
return
|
|
13640
|
+
return avs_pb23.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13485
13641
|
}
|
|
13486
13642
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13487
|
-
if (!(arg instanceof
|
|
13643
|
+
if (!(arg instanceof avs_pb23.RunTriggerResp)) {
|
|
13488
13644
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13489
13645
|
}
|
|
13490
13646
|
return Buffer.from(arg.serializeBinary());
|
|
13491
13647
|
}
|
|
13492
13648
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13493
|
-
return
|
|
13649
|
+
return avs_pb23.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13494
13650
|
}
|
|
13495
13651
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13496
|
-
if (!(arg instanceof
|
|
13652
|
+
if (!(arg instanceof avs_pb23.SetWalletReq)) {
|
|
13497
13653
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13498
13654
|
}
|
|
13499
13655
|
return Buffer.from(arg.serializeBinary());
|
|
13500
13656
|
}
|
|
13501
13657
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13502
|
-
return
|
|
13658
|
+
return avs_pb23.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13659
|
+
}
|
|
13660
|
+
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
13661
|
+
if (!(arg instanceof avs_pb23.SimulateTaskReq)) {
|
|
13662
|
+
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
13663
|
+
}
|
|
13664
|
+
return Buffer.from(arg.serializeBinary());
|
|
13665
|
+
}
|
|
13666
|
+
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
13667
|
+
return avs_pb23.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13503
13668
|
}
|
|
13504
13669
|
function serialize_aggregator_Task(arg) {
|
|
13505
|
-
if (!(arg instanceof
|
|
13670
|
+
if (!(arg instanceof avs_pb23.Task)) {
|
|
13506
13671
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13507
13672
|
}
|
|
13508
13673
|
return Buffer.from(arg.serializeBinary());
|
|
13509
13674
|
}
|
|
13510
13675
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13511
|
-
return
|
|
13676
|
+
return avs_pb23.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13512
13677
|
}
|
|
13513
13678
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
13514
|
-
if (!(arg instanceof
|
|
13679
|
+
if (!(arg instanceof avs_pb23.TriggerTaskReq)) {
|
|
13515
13680
|
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
13516
13681
|
}
|
|
13517
13682
|
return Buffer.from(arg.serializeBinary());
|
|
13518
13683
|
}
|
|
13519
13684
|
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13520
|
-
return
|
|
13685
|
+
return avs_pb23.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13521
13686
|
}
|
|
13522
13687
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
13523
|
-
if (!(arg instanceof
|
|
13688
|
+
if (!(arg instanceof avs_pb23.TriggerTaskResp)) {
|
|
13524
13689
|
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
13525
13690
|
}
|
|
13526
13691
|
return Buffer.from(arg.serializeBinary());
|
|
13527
13692
|
}
|
|
13528
13693
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
13529
|
-
return
|
|
13694
|
+
return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13530
13695
|
}
|
|
13531
13696
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13532
13697
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13543,8 +13708,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13543
13708
|
path: "/aggregator.Aggregator/GetKey",
|
|
13544
13709
|
requestStream: false,
|
|
13545
13710
|
responseStream: false,
|
|
13546
|
-
requestType:
|
|
13547
|
-
responseType:
|
|
13711
|
+
requestType: avs_pb23.GetKeyReq,
|
|
13712
|
+
responseType: avs_pb23.KeyResp,
|
|
13548
13713
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13549
13714
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13550
13715
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13555,8 +13720,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13555
13720
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13556
13721
|
requestStream: false,
|
|
13557
13722
|
responseStream: false,
|
|
13558
|
-
requestType:
|
|
13559
|
-
responseType:
|
|
13723
|
+
requestType: avs_pb23.GetSignatureFormatReq,
|
|
13724
|
+
responseType: avs_pb23.GetSignatureFormatResp,
|
|
13560
13725
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13561
13726
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13562
13727
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13567,8 +13732,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13567
13732
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13568
13733
|
requestStream: false,
|
|
13569
13734
|
responseStream: false,
|
|
13570
|
-
requestType:
|
|
13571
|
-
responseType:
|
|
13735
|
+
requestType: avs_pb23.NonceRequest,
|
|
13736
|
+
responseType: avs_pb23.NonceResp,
|
|
13572
13737
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13573
13738
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13574
13739
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13578,8 +13743,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13578
13743
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13579
13744
|
requestStream: false,
|
|
13580
13745
|
responseStream: false,
|
|
13581
|
-
requestType:
|
|
13582
|
-
responseType:
|
|
13746
|
+
requestType: avs_pb23.GetWalletReq,
|
|
13747
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13583
13748
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13584
13749
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13585
13750
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13589,8 +13754,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13589
13754
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13590
13755
|
requestStream: false,
|
|
13591
13756
|
responseStream: false,
|
|
13592
|
-
requestType:
|
|
13593
|
-
responseType:
|
|
13757
|
+
requestType: avs_pb23.SetWalletReq,
|
|
13758
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13594
13759
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13595
13760
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13596
13761
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13600,8 +13765,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13600
13765
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13601
13766
|
requestStream: false,
|
|
13602
13767
|
responseStream: false,
|
|
13603
|
-
requestType:
|
|
13604
|
-
responseType:
|
|
13768
|
+
requestType: avs_pb23.ListWalletReq,
|
|
13769
|
+
responseType: avs_pb23.ListWalletResp,
|
|
13605
13770
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13606
13771
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13607
13772
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13612,8 +13777,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13612
13777
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13613
13778
|
requestStream: false,
|
|
13614
13779
|
responseStream: false,
|
|
13615
|
-
requestType:
|
|
13616
|
-
responseType:
|
|
13780
|
+
requestType: avs_pb23.CreateTaskReq,
|
|
13781
|
+
responseType: avs_pb23.CreateTaskResp,
|
|
13617
13782
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13618
13783
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13619
13784
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13623,8 +13788,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13623
13788
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13624
13789
|
requestStream: false,
|
|
13625
13790
|
responseStream: false,
|
|
13626
|
-
requestType:
|
|
13627
|
-
responseType:
|
|
13791
|
+
requestType: avs_pb23.ListTasksReq,
|
|
13792
|
+
responseType: avs_pb23.ListTasksResp,
|
|
13628
13793
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13629
13794
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13630
13795
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13634,8 +13799,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13634
13799
|
path: "/aggregator.Aggregator/GetTask",
|
|
13635
13800
|
requestStream: false,
|
|
13636
13801
|
responseStream: false,
|
|
13637
|
-
requestType:
|
|
13638
|
-
responseType:
|
|
13802
|
+
requestType: avs_pb23.IdReq,
|
|
13803
|
+
responseType: avs_pb23.Task,
|
|
13639
13804
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13640
13805
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13641
13806
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13645,8 +13810,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13645
13810
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13646
13811
|
requestStream: false,
|
|
13647
13812
|
responseStream: false,
|
|
13648
|
-
requestType:
|
|
13649
|
-
responseType:
|
|
13813
|
+
requestType: avs_pb23.ListExecutionsReq,
|
|
13814
|
+
responseType: avs_pb23.ListExecutionsResp,
|
|
13650
13815
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13651
13816
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13652
13817
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13656,8 +13821,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13656
13821
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13657
13822
|
requestStream: false,
|
|
13658
13823
|
responseStream: false,
|
|
13659
|
-
requestType:
|
|
13660
|
-
responseType:
|
|
13824
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13825
|
+
responseType: avs_pb23.Execution,
|
|
13661
13826
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13662
13827
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13663
13828
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13667,8 +13832,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13667
13832
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13668
13833
|
requestStream: false,
|
|
13669
13834
|
responseStream: false,
|
|
13670
|
-
requestType:
|
|
13671
|
-
responseType:
|
|
13835
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13836
|
+
responseType: avs_pb23.ExecutionStatusResp,
|
|
13672
13837
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13673
13838
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13674
13839
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13678,7 +13843,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13678
13843
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13679
13844
|
requestStream: false,
|
|
13680
13845
|
responseStream: false,
|
|
13681
|
-
requestType:
|
|
13846
|
+
requestType: avs_pb23.IdReq,
|
|
13682
13847
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13683
13848
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13684
13849
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13689,7 +13854,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13689
13854
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13690
13855
|
requestStream: false,
|
|
13691
13856
|
responseStream: false,
|
|
13692
|
-
requestType:
|
|
13857
|
+
requestType: avs_pb23.IdReq,
|
|
13693
13858
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13694
13859
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13695
13860
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13700,8 +13865,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13700
13865
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13701
13866
|
requestStream: false,
|
|
13702
13867
|
responseStream: false,
|
|
13703
|
-
requestType:
|
|
13704
|
-
responseType:
|
|
13868
|
+
requestType: avs_pb23.TriggerTaskReq,
|
|
13869
|
+
responseType: avs_pb23.TriggerTaskResp,
|
|
13705
13870
|
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
13706
13871
|
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
13707
13872
|
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
@@ -13714,7 +13879,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13714
13879
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13715
13880
|
requestStream: false,
|
|
13716
13881
|
responseStream: false,
|
|
13717
|
-
requestType:
|
|
13882
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13718
13883
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13719
13884
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13720
13885
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13725,7 +13890,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13725
13890
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13726
13891
|
requestStream: false,
|
|
13727
13892
|
responseStream: false,
|
|
13728
|
-
requestType:
|
|
13893
|
+
requestType: avs_pb23.DeleteSecretReq,
|
|
13729
13894
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13730
13895
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13731
13896
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13738,8 +13903,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13738
13903
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13739
13904
|
requestStream: false,
|
|
13740
13905
|
responseStream: false,
|
|
13741
|
-
requestType:
|
|
13742
|
-
responseType:
|
|
13906
|
+
requestType: avs_pb23.ListSecretsReq,
|
|
13907
|
+
responseType: avs_pb23.ListSecretsResp,
|
|
13743
13908
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13744
13909
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13745
13910
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13751,7 +13916,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13751
13916
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13752
13917
|
requestStream: false,
|
|
13753
13918
|
responseStream: false,
|
|
13754
|
-
requestType:
|
|
13919
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13755
13920
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13756
13921
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13757
13922
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13768,8 +13933,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13768
13933
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13769
13934
|
requestStream: false,
|
|
13770
13935
|
responseStream: false,
|
|
13771
|
-
requestType:
|
|
13772
|
-
responseType:
|
|
13936
|
+
requestType: avs_pb23.GetWorkflowCountReq,
|
|
13937
|
+
responseType: avs_pb23.GetWorkflowCountResp,
|
|
13773
13938
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13774
13939
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13775
13940
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13783,8 +13948,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13783
13948
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13784
13949
|
requestStream: false,
|
|
13785
13950
|
responseStream: false,
|
|
13786
|
-
requestType:
|
|
13787
|
-
responseType:
|
|
13951
|
+
requestType: avs_pb23.GetExecutionCountReq,
|
|
13952
|
+
responseType: avs_pb23.GetExecutionCountResp,
|
|
13788
13953
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13789
13954
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13790
13955
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13797,8 +13962,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13797
13962
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13798
13963
|
requestStream: false,
|
|
13799
13964
|
responseStream: false,
|
|
13800
|
-
requestType:
|
|
13801
|
-
responseType:
|
|
13965
|
+
requestType: avs_pb23.GetExecutionStatsReq,
|
|
13966
|
+
responseType: avs_pb23.GetExecutionStatsResp,
|
|
13802
13967
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13803
13968
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13804
13969
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13809,8 +13974,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13809
13974
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13810
13975
|
requestStream: false,
|
|
13811
13976
|
responseStream: false,
|
|
13812
|
-
requestType:
|
|
13813
|
-
responseType:
|
|
13977
|
+
requestType: avs_pb23.RunNodeWithInputsReq,
|
|
13978
|
+
responseType: avs_pb23.RunNodeWithInputsResp,
|
|
13814
13979
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13815
13980
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13816
13981
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13821,12 +13986,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13821
13986
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13822
13987
|
requestStream: false,
|
|
13823
13988
|
responseStream: false,
|
|
13824
|
-
requestType:
|
|
13825
|
-
responseType:
|
|
13989
|
+
requestType: avs_pb23.RunTriggerReq,
|
|
13990
|
+
responseType: avs_pb23.RunTriggerResp,
|
|
13826
13991
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13827
13992
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13828
13993
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
13829
13994
|
responseDeserialize: deserialize_aggregator_RunTriggerResp
|
|
13995
|
+
},
|
|
13996
|
+
// SimulateTask allows executing a complete task simulation including trigger and all workflow nodes
|
|
13997
|
+
simulateTask: {
|
|
13998
|
+
path: "/aggregator.Aggregator/SimulateTask",
|
|
13999
|
+
requestStream: false,
|
|
14000
|
+
responseStream: false,
|
|
14001
|
+
requestType: avs_pb23.SimulateTaskReq,
|
|
14002
|
+
responseType: avs_pb23.Execution,
|
|
14003
|
+
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
14004
|
+
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
14005
|
+
responseSerialize: serialize_aggregator_Execution,
|
|
14006
|
+
responseDeserialize: deserialize_aggregator_Execution
|
|
13830
14007
|
}
|
|
13831
14008
|
};
|
|
13832
14009
|
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -13835,7 +14012,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13835
14012
|
|
|
13836
14013
|
// src/index.ts
|
|
13837
14014
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13838
|
-
var
|
|
14015
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
13839
14016
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
13840
14017
|
|
|
13841
14018
|
// src/models/workflow.ts
|
|
@@ -13892,15 +14069,16 @@ var Trigger = class {
|
|
|
13892
14069
|
var interface_default = Trigger;
|
|
13893
14070
|
|
|
13894
14071
|
// src/models/trigger/block.ts
|
|
13895
|
-
import { TriggerType } from "@avaprotocol/types";
|
|
14072
|
+
import { TriggerType as TriggerType2 } from "@avaprotocol/types";
|
|
13896
14073
|
var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
13897
14074
|
constructor(props) {
|
|
13898
|
-
super({ ...props, type:
|
|
14075
|
+
super({ ...props, type: TriggerType2.Block, data: props.data });
|
|
13899
14076
|
}
|
|
13900
14077
|
toRequest() {
|
|
13901
14078
|
const request = new avs_pb2.TaskTrigger();
|
|
13902
14079
|
request.setName(this.name);
|
|
13903
14080
|
request.setId(this.id);
|
|
14081
|
+
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
13904
14082
|
if (!this.data) {
|
|
13905
14083
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
13906
14084
|
}
|
|
@@ -13924,7 +14102,7 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
13924
14102
|
}
|
|
13925
14103
|
return new _BlockTrigger({
|
|
13926
14104
|
...obj,
|
|
13927
|
-
type:
|
|
14105
|
+
type: TriggerType2.Block,
|
|
13928
14106
|
data
|
|
13929
14107
|
});
|
|
13930
14108
|
}
|
|
@@ -13950,15 +14128,16 @@ var block_default = BlockTrigger2;
|
|
|
13950
14128
|
|
|
13951
14129
|
// src/models/trigger/cron.ts
|
|
13952
14130
|
var avs_pb3 = __toESM(require_avs_pb());
|
|
13953
|
-
import { TriggerType as
|
|
14131
|
+
import { TriggerType as TriggerType4 } from "@avaprotocol/types";
|
|
13954
14132
|
var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
13955
14133
|
constructor(props) {
|
|
13956
|
-
super({ ...props, type:
|
|
14134
|
+
super({ ...props, type: TriggerType4.Cron, data: props.data });
|
|
13957
14135
|
}
|
|
13958
14136
|
toRequest() {
|
|
13959
14137
|
const request = new avs_pb3.TaskTrigger();
|
|
13960
14138
|
request.setName(this.name);
|
|
13961
14139
|
request.setId(this.id);
|
|
14140
|
+
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
13962
14141
|
if (!this.data) {
|
|
13963
14142
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
13964
14143
|
}
|
|
@@ -13982,7 +14161,7 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13982
14161
|
}
|
|
13983
14162
|
return new _CronTrigger({
|
|
13984
14163
|
...obj,
|
|
13985
|
-
type:
|
|
14164
|
+
type: TriggerType4.Cron,
|
|
13986
14165
|
data
|
|
13987
14166
|
});
|
|
13988
14167
|
}
|
|
@@ -14015,15 +14194,16 @@ var cron_default = CronTrigger2;
|
|
|
14015
14194
|
// src/models/trigger/event.ts
|
|
14016
14195
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
14017
14196
|
import * as _ from "lodash";
|
|
14018
|
-
import { TriggerType as
|
|
14197
|
+
import { TriggerType as TriggerType6 } from "@avaprotocol/types";
|
|
14019
14198
|
var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
14020
14199
|
constructor(props) {
|
|
14021
|
-
super({ ...props, type:
|
|
14200
|
+
super({ ...props, type: TriggerType6.Event, data: props.data });
|
|
14022
14201
|
}
|
|
14023
14202
|
toRequest() {
|
|
14024
14203
|
const request = new avs_pb4.TaskTrigger();
|
|
14025
14204
|
request.setName(this.name);
|
|
14026
14205
|
request.setId(this.id);
|
|
14206
|
+
request.setType(avs_pb4.TriggerType.TRIGGER_TYPE_EVENT);
|
|
14027
14207
|
if (!this.data) {
|
|
14028
14208
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
14029
14209
|
}
|
|
@@ -14071,7 +14251,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
14071
14251
|
}
|
|
14072
14252
|
return new _EventTrigger({
|
|
14073
14253
|
...obj,
|
|
14074
|
-
type:
|
|
14254
|
+
type: TriggerType6.Event,
|
|
14075
14255
|
data
|
|
14076
14256
|
});
|
|
14077
14257
|
}
|
|
@@ -14097,15 +14277,16 @@ var event_default = EventTrigger2;
|
|
|
14097
14277
|
|
|
14098
14278
|
// src/models/trigger/fixedTime.ts
|
|
14099
14279
|
var avs_pb5 = __toESM(require_avs_pb());
|
|
14100
|
-
import { TriggerType as
|
|
14280
|
+
import { TriggerType as TriggerType8 } from "@avaprotocol/types";
|
|
14101
14281
|
var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
14102
14282
|
constructor(props) {
|
|
14103
|
-
super({ ...props, type:
|
|
14283
|
+
super({ ...props, type: TriggerType8.FixedTime, data: props.data });
|
|
14104
14284
|
}
|
|
14105
14285
|
toRequest() {
|
|
14106
14286
|
const request = new avs_pb5.TaskTrigger();
|
|
14107
14287
|
request.setName(this.name);
|
|
14108
14288
|
request.setId(this.id);
|
|
14289
|
+
request.setType(avs_pb5.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14109
14290
|
if (!this.data) {
|
|
14110
14291
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
14111
14292
|
}
|
|
@@ -14129,7 +14310,7 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
14129
14310
|
}
|
|
14130
14311
|
return new _FixedTimeTrigger({
|
|
14131
14312
|
...obj,
|
|
14132
|
-
type:
|
|
14313
|
+
type: TriggerType8.FixedTime,
|
|
14133
14314
|
data
|
|
14134
14315
|
});
|
|
14135
14316
|
}
|
|
@@ -14161,15 +14342,16 @@ var fixedTime_default = FixedTimeTrigger2;
|
|
|
14161
14342
|
|
|
14162
14343
|
// src/models/trigger/manual.ts
|
|
14163
14344
|
var avs_pb6 = __toESM(require_avs_pb());
|
|
14164
|
-
import { TriggerType as
|
|
14345
|
+
import { TriggerType as TriggerType10 } from "@avaprotocol/types";
|
|
14165
14346
|
var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
14166
14347
|
constructor(props) {
|
|
14167
|
-
super({ ...props, type:
|
|
14348
|
+
super({ ...props, type: TriggerType10.Manual, data: props.data || null });
|
|
14168
14349
|
}
|
|
14169
14350
|
toRequest() {
|
|
14170
14351
|
const trigger = new avs_pb6.TaskTrigger();
|
|
14171
14352
|
trigger.setId(this.id);
|
|
14172
14353
|
trigger.setName(this.name);
|
|
14354
|
+
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
14173
14355
|
trigger.setManual(true);
|
|
14174
14356
|
return trigger;
|
|
14175
14357
|
}
|
|
@@ -14177,7 +14359,7 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14177
14359
|
const obj = raw.toObject();
|
|
14178
14360
|
return new _ManualTrigger({
|
|
14179
14361
|
...obj,
|
|
14180
|
-
type:
|
|
14362
|
+
type: TriggerType10.Manual,
|
|
14181
14363
|
data: null
|
|
14182
14364
|
// Manual triggers don't have data in the protobuf response
|
|
14183
14365
|
});
|
|
@@ -14206,7 +14388,7 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14206
14388
|
var manual_default = ManualTrigger;
|
|
14207
14389
|
|
|
14208
14390
|
// src/models/trigger/factory.ts
|
|
14209
|
-
import { TriggerType as
|
|
14391
|
+
import { TriggerType as TriggerType12 } from "@avaprotocol/types";
|
|
14210
14392
|
|
|
14211
14393
|
// src/utils.ts
|
|
14212
14394
|
import {
|
|
@@ -14214,6 +14396,7 @@ import {
|
|
|
14214
14396
|
Struct as ProtobufStruct,
|
|
14215
14397
|
ListValue as ProtobufListValue
|
|
14216
14398
|
} from "google-protobuf/google/protobuf/struct_pb";
|
|
14399
|
+
import { TriggerType as TriggerType11, NodeType } from "@avaprotocol/types";
|
|
14217
14400
|
function convertProtobufValueToJs(value) {
|
|
14218
14401
|
if (!value) {
|
|
14219
14402
|
return void 0;
|
|
@@ -14274,6 +14457,78 @@ function convertJSValueToProtobuf(value) {
|
|
|
14274
14457
|
}
|
|
14275
14458
|
return protobufValue;
|
|
14276
14459
|
}
|
|
14460
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
14461
|
+
switch (protobufType) {
|
|
14462
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
14463
|
+
return TriggerType11.Manual;
|
|
14464
|
+
// "manualTrigger"
|
|
14465
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
14466
|
+
return TriggerType11.FixedTime;
|
|
14467
|
+
// "fixedTimeTrigger"
|
|
14468
|
+
case "TRIGGER_TYPE_CRON":
|
|
14469
|
+
return TriggerType11.Cron;
|
|
14470
|
+
// "cronTrigger"
|
|
14471
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
14472
|
+
return TriggerType11.Block;
|
|
14473
|
+
// "blockTrigger"
|
|
14474
|
+
case "TRIGGER_TYPE_EVENT":
|
|
14475
|
+
return TriggerType11.Event;
|
|
14476
|
+
// "eventTrigger"
|
|
14477
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
14478
|
+
return TriggerType11.Unspecified;
|
|
14479
|
+
// "unspecified"
|
|
14480
|
+
default:
|
|
14481
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
14482
|
+
return protobufType;
|
|
14483
|
+
}
|
|
14484
|
+
}
|
|
14485
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
14486
|
+
switch (protobufType) {
|
|
14487
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
14488
|
+
return NodeType.ETHTransfer;
|
|
14489
|
+
// "ethTransfer"
|
|
14490
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
14491
|
+
return NodeType.ContractWrite;
|
|
14492
|
+
// "contractWrite"
|
|
14493
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
14494
|
+
return NodeType.ContractRead;
|
|
14495
|
+
// "contractRead"
|
|
14496
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
14497
|
+
return NodeType.GraphQLQuery;
|
|
14498
|
+
// "graphql"
|
|
14499
|
+
case "NODE_TYPE_REST_API":
|
|
14500
|
+
return NodeType.RestAPI;
|
|
14501
|
+
// "restApi"
|
|
14502
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
14503
|
+
return NodeType.CustomCode;
|
|
14504
|
+
// "customCode"
|
|
14505
|
+
case "NODE_TYPE_BRANCH":
|
|
14506
|
+
return NodeType.Branch;
|
|
14507
|
+
// "branch"
|
|
14508
|
+
case "NODE_TYPE_FILTER":
|
|
14509
|
+
return NodeType.Filter;
|
|
14510
|
+
// "filter"
|
|
14511
|
+
case "NODE_TYPE_LOOP":
|
|
14512
|
+
return NodeType.Loop;
|
|
14513
|
+
// "loop"
|
|
14514
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
14515
|
+
return NodeType.Unspecified;
|
|
14516
|
+
// "unspecified"
|
|
14517
|
+
default:
|
|
14518
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
14519
|
+
return protobufType;
|
|
14520
|
+
}
|
|
14521
|
+
}
|
|
14522
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
14523
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
14524
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
14525
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
14526
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
14527
|
+
} else {
|
|
14528
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
14529
|
+
return protobufType;
|
|
14530
|
+
}
|
|
14531
|
+
}
|
|
14277
14532
|
|
|
14278
14533
|
// src/models/trigger/factory.ts
|
|
14279
14534
|
var TriggerFactory = class {
|
|
@@ -14284,15 +14539,15 @@ var TriggerFactory = class {
|
|
|
14284
14539
|
*/
|
|
14285
14540
|
static create(props) {
|
|
14286
14541
|
switch (props.type) {
|
|
14287
|
-
case
|
|
14542
|
+
case TriggerType12.Block:
|
|
14288
14543
|
return new block_default(props);
|
|
14289
|
-
case
|
|
14544
|
+
case TriggerType12.Cron:
|
|
14290
14545
|
return new cron_default(props);
|
|
14291
|
-
case
|
|
14546
|
+
case TriggerType12.Event:
|
|
14292
14547
|
return new event_default(props);
|
|
14293
|
-
case
|
|
14548
|
+
case TriggerType12.FixedTime:
|
|
14294
14549
|
return new fixedTime_default(props);
|
|
14295
|
-
case
|
|
14550
|
+
case TriggerType12.Manual:
|
|
14296
14551
|
return new manual_default(props);
|
|
14297
14552
|
}
|
|
14298
14553
|
throw new Error("Unsupported trigger type");
|
|
@@ -14363,7 +14618,7 @@ import _3 from "lodash";
|
|
|
14363
14618
|
|
|
14364
14619
|
// src/models/node/interface.ts
|
|
14365
14620
|
var avs_pb8 = __toESM(require_avs_pb());
|
|
14366
|
-
import { NodeType, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14621
|
+
import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14367
14622
|
import _2 from "lodash";
|
|
14368
14623
|
var Node = class {
|
|
14369
14624
|
constructor(props) {
|
|
@@ -14386,16 +14641,16 @@ var interface_default2 = Node;
|
|
|
14386
14641
|
|
|
14387
14642
|
// src/models/node/contractWrite.ts
|
|
14388
14643
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
14389
|
-
import { NodeType as
|
|
14644
|
+
import { NodeType as NodeType3 } from "@avaprotocol/types";
|
|
14390
14645
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
14391
14646
|
constructor(props) {
|
|
14392
|
-
super({ ...props, type:
|
|
14647
|
+
super({ ...props, type: NodeType3.ContractWrite, data: props.data });
|
|
14393
14648
|
}
|
|
14394
14649
|
static fromResponse(raw) {
|
|
14395
14650
|
const obj = raw.toObject();
|
|
14396
14651
|
return new _ContractWriteNode({
|
|
14397
14652
|
...obj,
|
|
14398
|
-
type:
|
|
14653
|
+
type: NodeType3.ContractWrite,
|
|
14399
14654
|
data: raw.getContractWrite().getConfig().toObject()
|
|
14400
14655
|
});
|
|
14401
14656
|
}
|
|
@@ -14421,16 +14676,16 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
14421
14676
|
|
|
14422
14677
|
// src/models/node/customCode.ts
|
|
14423
14678
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
14424
|
-
import { NodeType as
|
|
14679
|
+
import { NodeType as NodeType4 } from "@avaprotocol/types";
|
|
14425
14680
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
14426
14681
|
constructor(props) {
|
|
14427
|
-
super({ ...props, type:
|
|
14682
|
+
super({ ...props, type: NodeType4.CustomCode, data: props.data });
|
|
14428
14683
|
}
|
|
14429
14684
|
static fromResponse(raw) {
|
|
14430
14685
|
const obj = raw.toObject();
|
|
14431
14686
|
return new _CustomCodeNode({
|
|
14432
14687
|
...obj,
|
|
14433
|
-
type:
|
|
14688
|
+
type: NodeType4.CustomCode,
|
|
14434
14689
|
data: raw.getCustomCode().getConfig().toObject()
|
|
14435
14690
|
});
|
|
14436
14691
|
}
|
|
@@ -14458,12 +14713,12 @@ var customCode_default = CustomCodeNode2;
|
|
|
14458
14713
|
|
|
14459
14714
|
// src/models/node/graphqlQuery.ts
|
|
14460
14715
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
14461
|
-
import { NodeType as
|
|
14716
|
+
import { NodeType as NodeType5 } from "@avaprotocol/types";
|
|
14462
14717
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
14463
14718
|
constructor(props) {
|
|
14464
14719
|
super({
|
|
14465
14720
|
...props,
|
|
14466
|
-
type:
|
|
14721
|
+
type: NodeType5.GraphQLQuery,
|
|
14467
14722
|
data: props.data
|
|
14468
14723
|
});
|
|
14469
14724
|
}
|
|
@@ -14471,7 +14726,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14471
14726
|
const obj = raw.toObject();
|
|
14472
14727
|
return new _GraphQLQueryNode({
|
|
14473
14728
|
...obj,
|
|
14474
|
-
type:
|
|
14729
|
+
type: NodeType5.GraphQLQuery,
|
|
14475
14730
|
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
14476
14731
|
});
|
|
14477
14732
|
}
|
|
@@ -14503,17 +14758,17 @@ var graphqlQuery_default = GraphQLQueryNode2;
|
|
|
14503
14758
|
// src/models/node/restApi.ts
|
|
14504
14759
|
var avs_pb12 = __toESM(require_avs_pb());
|
|
14505
14760
|
import {
|
|
14506
|
-
NodeType as
|
|
14761
|
+
NodeType as NodeType6
|
|
14507
14762
|
} from "@avaprotocol/types";
|
|
14508
14763
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14509
14764
|
constructor(props) {
|
|
14510
|
-
super({ ...props, type:
|
|
14765
|
+
super({ ...props, type: NodeType6.RestAPI, data: props.data });
|
|
14511
14766
|
}
|
|
14512
14767
|
static fromResponse(raw) {
|
|
14513
14768
|
const obj = raw.toObject();
|
|
14514
14769
|
return new _RestAPINode({
|
|
14515
14770
|
...obj,
|
|
14516
|
-
type:
|
|
14771
|
+
type: NodeType6.RestAPI,
|
|
14517
14772
|
data: raw.getRestApi().getConfig().toObject()
|
|
14518
14773
|
});
|
|
14519
14774
|
}
|
|
@@ -14555,16 +14810,16 @@ var restApi_default = RestAPINode2;
|
|
|
14555
14810
|
|
|
14556
14811
|
// src/models/node/contractRead.ts
|
|
14557
14812
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
14558
|
-
import { NodeType as
|
|
14813
|
+
import { NodeType as NodeType7 } from "@avaprotocol/types";
|
|
14559
14814
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14560
14815
|
constructor(props) {
|
|
14561
|
-
super({ ...props, type:
|
|
14816
|
+
super({ ...props, type: NodeType7.ContractRead, data: props.data });
|
|
14562
14817
|
}
|
|
14563
14818
|
static fromResponse(raw) {
|
|
14564
14819
|
const obj = raw.toObject();
|
|
14565
14820
|
return new _ContractReadNode({
|
|
14566
14821
|
...obj,
|
|
14567
|
-
type:
|
|
14822
|
+
type: NodeType7.ContractRead,
|
|
14568
14823
|
data: raw.getContractRead().getConfig().toObject()
|
|
14569
14824
|
});
|
|
14570
14825
|
}
|
|
@@ -14596,16 +14851,16 @@ var contractRead_default = ContractReadNode2;
|
|
|
14596
14851
|
|
|
14597
14852
|
// src/models/node/ethTransfer.ts
|
|
14598
14853
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
14599
|
-
import { NodeType as
|
|
14854
|
+
import { NodeType as NodeType8 } from "@avaprotocol/types";
|
|
14600
14855
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14601
14856
|
constructor(props) {
|
|
14602
|
-
super({ ...props, type:
|
|
14857
|
+
super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
|
|
14603
14858
|
}
|
|
14604
14859
|
static fromResponse(raw) {
|
|
14605
14860
|
const obj = raw.toObject();
|
|
14606
14861
|
return new _ETHTransferNode({
|
|
14607
14862
|
...obj,
|
|
14608
|
-
type:
|
|
14863
|
+
type: NodeType8.ETHTransfer,
|
|
14609
14864
|
data: raw.getEthTransfer().getConfig().toObject()
|
|
14610
14865
|
});
|
|
14611
14866
|
}
|
|
@@ -14629,17 +14884,17 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14629
14884
|
var ethTransfer_default = ETHTransferNode2;
|
|
14630
14885
|
|
|
14631
14886
|
// src/models/node/branch.ts
|
|
14632
|
-
import { NodeType as
|
|
14887
|
+
import { NodeType as NodeType9 } from "@avaprotocol/types";
|
|
14633
14888
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
14634
14889
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14635
14890
|
constructor(props) {
|
|
14636
|
-
super({ ...props, type:
|
|
14891
|
+
super({ ...props, type: NodeType9.Branch, data: props.data });
|
|
14637
14892
|
}
|
|
14638
14893
|
static fromResponse(raw) {
|
|
14639
14894
|
const obj = raw.toObject();
|
|
14640
14895
|
return new _BranchNode({
|
|
14641
14896
|
...obj,
|
|
14642
|
-
type:
|
|
14897
|
+
type: NodeType9.Branch,
|
|
14643
14898
|
data: raw.getBranch().toObject().config
|
|
14644
14899
|
});
|
|
14645
14900
|
}
|
|
@@ -14675,16 +14930,16 @@ var branch_default = BranchNode2;
|
|
|
14675
14930
|
|
|
14676
14931
|
// src/models/node/filter.ts
|
|
14677
14932
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
14678
|
-
import { NodeType as
|
|
14933
|
+
import { NodeType as NodeType10 } from "@avaprotocol/types";
|
|
14679
14934
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14680
14935
|
constructor(props) {
|
|
14681
|
-
super({ ...props, type:
|
|
14936
|
+
super({ ...props, type: NodeType10.Filter, data: props.data });
|
|
14682
14937
|
}
|
|
14683
14938
|
static fromResponse(raw) {
|
|
14684
14939
|
const obj = raw.toObject();
|
|
14685
14940
|
return new _FilterNode({
|
|
14686
14941
|
...obj,
|
|
14687
|
-
type:
|
|
14942
|
+
type: NodeType10.Filter,
|
|
14688
14943
|
data: raw.getFilter().getConfig().toObject()
|
|
14689
14944
|
});
|
|
14690
14945
|
}
|
|
@@ -14709,10 +14964,10 @@ var filter_default = FilterNode2;
|
|
|
14709
14964
|
|
|
14710
14965
|
// src/models/node/loop.ts
|
|
14711
14966
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
14712
|
-
import { NodeType as
|
|
14967
|
+
import { NodeType as NodeType11 } from "@avaprotocol/types";
|
|
14713
14968
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14714
14969
|
constructor(props) {
|
|
14715
|
-
super({ ...props, type:
|
|
14970
|
+
super({ ...props, type: NodeType11.Loop, data: props.data });
|
|
14716
14971
|
}
|
|
14717
14972
|
static fromResponse(raw) {
|
|
14718
14973
|
const loopNode = raw.getLoop();
|
|
@@ -14734,7 +14989,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14734
14989
|
return new _LoopNode({
|
|
14735
14990
|
id: raw.getId(),
|
|
14736
14991
|
name: raw.getName(),
|
|
14737
|
-
type:
|
|
14992
|
+
type: NodeType11.Loop,
|
|
14738
14993
|
data
|
|
14739
14994
|
});
|
|
14740
14995
|
}
|
|
@@ -14829,31 +15084,31 @@ var loop_default = LoopNode2;
|
|
|
14829
15084
|
|
|
14830
15085
|
// src/models/node/factory.ts
|
|
14831
15086
|
import {
|
|
14832
|
-
NodeType as
|
|
15087
|
+
NodeType as NodeType12,
|
|
14833
15088
|
CustomCodeLangs as CustomCodeLangs2
|
|
14834
15089
|
} from "@avaprotocol/types";
|
|
14835
15090
|
var NodeFactory = class {
|
|
14836
15091
|
static create(props) {
|
|
14837
15092
|
switch (props.type) {
|
|
14838
|
-
case
|
|
15093
|
+
case NodeType12.ContractWrite:
|
|
14839
15094
|
return new contractWrite_default(props);
|
|
14840
|
-
case
|
|
15095
|
+
case NodeType12.RestAPI:
|
|
14841
15096
|
return new restApi_default(props);
|
|
14842
|
-
case
|
|
15097
|
+
case NodeType12.CustomCode:
|
|
14843
15098
|
return new customCode_default(props);
|
|
14844
|
-
case
|
|
15099
|
+
case NodeType12.ContractRead:
|
|
14845
15100
|
return new contractRead_default(props);
|
|
14846
|
-
case
|
|
15101
|
+
case NodeType12.ETHTransfer:
|
|
14847
15102
|
return new ethTransfer_default(props);
|
|
14848
|
-
case
|
|
15103
|
+
case NodeType12.GraphQLQuery:
|
|
14849
15104
|
return new graphqlQuery_default(props);
|
|
14850
|
-
case
|
|
15105
|
+
case NodeType12.Branch:
|
|
14851
15106
|
return new branch_default(props);
|
|
14852
|
-
case
|
|
15107
|
+
case NodeType12.Filter:
|
|
14853
15108
|
return new filter_default(props);
|
|
14854
|
-
case
|
|
15109
|
+
case NodeType12.Loop:
|
|
14855
15110
|
return new loop_default(props);
|
|
14856
|
-
case
|
|
15111
|
+
case NodeType12.Unspecified:
|
|
14857
15112
|
throw new Error("Cannot create node with unspecified type");
|
|
14858
15113
|
default:
|
|
14859
15114
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -15047,23 +15302,20 @@ var Workflow = class _Workflow {
|
|
|
15047
15302
|
};
|
|
15048
15303
|
var workflow_default = Workflow;
|
|
15049
15304
|
|
|
15050
|
-
// src/models/execution.ts
|
|
15051
|
-
var avs_pb21 = __toESM(require_avs_pb());
|
|
15052
|
-
import { TriggerTypeConverter } from "@avaprotocol/types";
|
|
15053
|
-
|
|
15054
15305
|
// src/models/step.ts
|
|
15055
15306
|
var avs_pb20 = __toESM(require_avs_pb());
|
|
15056
15307
|
var Step = class _Step {
|
|
15057
|
-
// Changed to any
|
|
15058
15308
|
constructor(props) {
|
|
15059
|
-
this.
|
|
15309
|
+
this.id = props.id;
|
|
15310
|
+
this.type = props.type;
|
|
15311
|
+
this.name = props.name;
|
|
15060
15312
|
this.success = props.success;
|
|
15061
|
-
this.log = props.log;
|
|
15062
15313
|
this.error = props.error;
|
|
15063
|
-
this.
|
|
15064
|
-
this.endAt = props.endAt;
|
|
15314
|
+
this.log = props.log;
|
|
15065
15315
|
this.inputsList = props.inputsList;
|
|
15066
15316
|
this.output = props.output;
|
|
15317
|
+
this.startAt = props.startAt;
|
|
15318
|
+
this.endAt = props.endAt;
|
|
15067
15319
|
}
|
|
15068
15320
|
static getOutput(step) {
|
|
15069
15321
|
const outputDataType = step.getOutputDataCase();
|
|
@@ -15071,9 +15323,38 @@ var Step = class _Step {
|
|
|
15071
15323
|
switch (outputDataType) {
|
|
15072
15324
|
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15073
15325
|
return null;
|
|
15326
|
+
// Trigger outputs
|
|
15327
|
+
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
15328
|
+
const blockOutput = step.getBlockTrigger()?.toObject();
|
|
15329
|
+
return blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15330
|
+
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15331
|
+
const fixedTimeOutput = step.getFixedTimeTrigger()?.toObject();
|
|
15332
|
+
return fixedTimeOutput ? {
|
|
15333
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15334
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15335
|
+
} : void 0;
|
|
15336
|
+
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
15337
|
+
const cronOutput = step.getCronTrigger()?.toObject();
|
|
15338
|
+
return cronOutput ? {
|
|
15339
|
+
timestamp: cronOutput.timestamp,
|
|
15340
|
+
timestampIso: cronOutput.timestampIso
|
|
15341
|
+
} : void 0;
|
|
15342
|
+
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
15343
|
+
const eventTrigger = step.getEventTrigger();
|
|
15344
|
+
if (eventTrigger) {
|
|
15345
|
+
if (eventTrigger.hasEvmLog()) {
|
|
15346
|
+
return eventTrigger.getEvmLog()?.toObject();
|
|
15347
|
+
} else if (eventTrigger.hasTransferLog()) {
|
|
15348
|
+
return eventTrigger.getTransferLog()?.toObject();
|
|
15349
|
+
}
|
|
15350
|
+
}
|
|
15351
|
+
return void 0;
|
|
15352
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
15353
|
+
const manualOutput = step.getManualTrigger()?.toObject();
|
|
15354
|
+
return manualOutput || void 0;
|
|
15355
|
+
// Node outputs
|
|
15074
15356
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15075
15357
|
return step.getEthTransfer()?.toObject();
|
|
15076
|
-
// Specific structure, not google.protobuf.Value
|
|
15077
15358
|
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15078
15359
|
nodeOutputMessage = step.getGraphql();
|
|
15079
15360
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15083,10 +15364,8 @@ var Step = class _Step {
|
|
|
15083
15364
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
15084
15365
|
}
|
|
15085
15366
|
return [];
|
|
15086
|
-
// Default to empty array if no data
|
|
15087
15367
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15088
15368
|
return step.getContractWrite()?.toObject();
|
|
15089
|
-
// Specific structure
|
|
15090
15369
|
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15091
15370
|
nodeOutputMessage = step.getCustomCode();
|
|
15092
15371
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
@@ -15095,7 +15374,6 @@ var Step = class _Step {
|
|
|
15095
15374
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15096
15375
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
15097
15376
|
return step.getBranch()?.toObject();
|
|
15098
|
-
// Specific structure
|
|
15099
15377
|
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
15100
15378
|
nodeOutputMessage = step.getFilter();
|
|
15101
15379
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15110,14 +15388,16 @@ var Step = class _Step {
|
|
|
15110
15388
|
}
|
|
15111
15389
|
static fromResponse(step) {
|
|
15112
15390
|
return new _Step({
|
|
15113
|
-
|
|
15391
|
+
id: step.getId(),
|
|
15392
|
+
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
15393
|
+
name: step.getName(),
|
|
15114
15394
|
success: step.getSuccess(),
|
|
15115
|
-
log: step.getLog(),
|
|
15116
15395
|
error: step.getError(),
|
|
15117
|
-
|
|
15118
|
-
endAt: step.getEndAt(),
|
|
15396
|
+
log: step.getLog(),
|
|
15119
15397
|
inputsList: step.getInputsList(),
|
|
15120
|
-
output: _Step.getOutput(step)
|
|
15398
|
+
output: _Step.getOutput(step),
|
|
15399
|
+
startAt: step.getStartAt(),
|
|
15400
|
+
endAt: step.getEndAt()
|
|
15121
15401
|
});
|
|
15122
15402
|
}
|
|
15123
15403
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -15125,77 +15405,31 @@ var Step = class _Step {
|
|
|
15125
15405
|
var step_default = Step;
|
|
15126
15406
|
|
|
15127
15407
|
// src/models/execution.ts
|
|
15128
|
-
var
|
|
15408
|
+
var Execution2 = class _Execution {
|
|
15129
15409
|
constructor(props) {
|
|
15130
15410
|
this.id = props.id;
|
|
15131
15411
|
this.startAt = props.startAt;
|
|
15132
15412
|
this.endAt = props.endAt;
|
|
15133
15413
|
this.success = props.success;
|
|
15134
15414
|
this.error = props.error;
|
|
15135
|
-
this.
|
|
15136
|
-
this.triggerName = props.triggerName;
|
|
15137
|
-
this.triggerType = props.triggerType;
|
|
15138
|
-
this.triggerOutput = props.triggerOutput;
|
|
15415
|
+
this.steps = props.steps;
|
|
15139
15416
|
}
|
|
15140
15417
|
static fromResponse(execution) {
|
|
15141
|
-
const triggerOutputDataType = execution.getOutputDataCase();
|
|
15142
|
-
let triggerOutputData;
|
|
15143
|
-
switch (triggerOutputDataType) {
|
|
15144
|
-
case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
15145
|
-
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
15146
|
-
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15147
|
-
break;
|
|
15148
|
-
case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15149
|
-
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
15150
|
-
triggerOutputData = fixedTimeOutput ? {
|
|
15151
|
-
timestamp: fixedTimeOutput.timestamp,
|
|
15152
|
-
timestampIso: fixedTimeOutput.timestampIso
|
|
15153
|
-
} : void 0;
|
|
15154
|
-
break;
|
|
15155
|
-
case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
|
|
15156
|
-
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
15157
|
-
triggerOutputData = cronOutput ? {
|
|
15158
|
-
timestamp: cronOutput.timestamp,
|
|
15159
|
-
timestampIso: cronOutput.timestampIso
|
|
15160
|
-
} : void 0;
|
|
15161
|
-
break;
|
|
15162
|
-
case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
15163
|
-
const eventTrigger = execution.getEventTrigger();
|
|
15164
|
-
if (eventTrigger) {
|
|
15165
|
-
if (eventTrigger.hasEvmLog()) {
|
|
15166
|
-
triggerOutputData = eventTrigger.getEvmLog()?.toObject();
|
|
15167
|
-
} else if (eventTrigger.hasTransferLog()) {
|
|
15168
|
-
triggerOutputData = eventTrigger.getTransferLog()?.toObject();
|
|
15169
|
-
}
|
|
15170
|
-
}
|
|
15171
|
-
break;
|
|
15172
|
-
case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
|
|
15173
|
-
const manualOutput = execution.getManualTrigger()?.toObject();
|
|
15174
|
-
triggerOutputData = manualOutput || void 0;
|
|
15175
|
-
break;
|
|
15176
|
-
case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15177
|
-
triggerOutputData = void 0;
|
|
15178
|
-
break;
|
|
15179
|
-
}
|
|
15180
15418
|
return new _Execution({
|
|
15181
15419
|
id: execution.getId(),
|
|
15182
15420
|
startAt: execution.getStartAt(),
|
|
15183
15421
|
endAt: execution.getEndAt(),
|
|
15184
15422
|
success: execution.getSuccess(),
|
|
15185
15423
|
error: execution.getError(),
|
|
15186
|
-
|
|
15187
|
-
triggerType: TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
|
|
15188
|
-
// Convert protobuf enum to SDK enum
|
|
15189
|
-
triggerOutput: triggerOutputData,
|
|
15190
|
-
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15424
|
+
steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15191
15425
|
});
|
|
15192
15426
|
}
|
|
15193
15427
|
// Client side does not generate the execution, so there's no toRequest() method
|
|
15194
15428
|
};
|
|
15195
|
-
var execution_default =
|
|
15429
|
+
var execution_default = Execution2;
|
|
15196
15430
|
|
|
15197
15431
|
// src/models/secret.ts
|
|
15198
|
-
var
|
|
15432
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
15199
15433
|
var Secret = class {
|
|
15200
15434
|
constructor(props) {
|
|
15201
15435
|
this.name = props.name;
|
|
@@ -15208,7 +15442,7 @@ var Secret = class {
|
|
|
15208
15442
|
this.description = props.description;
|
|
15209
15443
|
}
|
|
15210
15444
|
toRequest() {
|
|
15211
|
-
const request = new
|
|
15445
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
15212
15446
|
request.setName(this.name);
|
|
15213
15447
|
if (this.secret) {
|
|
15214
15448
|
request.setSecret(this.secret);
|
|
@@ -15226,10 +15460,10 @@ var secret_default = Secret;
|
|
|
15226
15460
|
|
|
15227
15461
|
// src/index.ts
|
|
15228
15462
|
import {
|
|
15229
|
-
TriggerType as
|
|
15463
|
+
TriggerType as TriggerType13,
|
|
15230
15464
|
NodeTypeGoConverter as NodeTypeGoConverter2,
|
|
15231
15465
|
TriggerTypeGoConverter,
|
|
15232
|
-
TriggerTypeConverter
|
|
15466
|
+
TriggerTypeConverter
|
|
15233
15467
|
} from "@avaprotocol/types";
|
|
15234
15468
|
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
15235
15469
|
var BaseClient = class {
|
|
@@ -15264,7 +15498,7 @@ var BaseClient = class {
|
|
|
15264
15498
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
15265
15499
|
*/
|
|
15266
15500
|
async getSignatureFormat(wallet) {
|
|
15267
|
-
const request = new
|
|
15501
|
+
const request = new avs_pb22.GetSignatureFormatReq();
|
|
15268
15502
|
request.setWallet(wallet);
|
|
15269
15503
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
15270
15504
|
return { message: result.getMessage() };
|
|
@@ -15279,7 +15513,7 @@ var BaseClient = class {
|
|
|
15279
15513
|
message,
|
|
15280
15514
|
apiKey
|
|
15281
15515
|
}) {
|
|
15282
|
-
const request = new
|
|
15516
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15283
15517
|
request.setMessage(message);
|
|
15284
15518
|
request.setSignature(apiKey);
|
|
15285
15519
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -15295,7 +15529,7 @@ var BaseClient = class {
|
|
|
15295
15529
|
message,
|
|
15296
15530
|
signature
|
|
15297
15531
|
}) {
|
|
15298
|
-
const request = new
|
|
15532
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15299
15533
|
request.setMessage(message);
|
|
15300
15534
|
request.setSignature(signature);
|
|
15301
15535
|
const result = await this.sendGrpcRequest(
|
|
@@ -15371,7 +15605,7 @@ var Client = class extends BaseClient {
|
|
|
15371
15605
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
15372
15606
|
*/
|
|
15373
15607
|
async getWallets(options) {
|
|
15374
|
-
const request = new
|
|
15608
|
+
const request = new avs_pb22.ListWalletReq();
|
|
15375
15609
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
15376
15610
|
return result.getItemsList().map((item) => item.toObject());
|
|
15377
15611
|
}
|
|
@@ -15383,7 +15617,7 @@ var Client = class extends BaseClient {
|
|
|
15383
15617
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
15384
15618
|
*/
|
|
15385
15619
|
async getWallet({ salt, factoryAddress }, options) {
|
|
15386
|
-
const request = new
|
|
15620
|
+
const request = new avs_pb22.GetWalletReq();
|
|
15387
15621
|
request.setSalt(salt);
|
|
15388
15622
|
if (factoryAddress) {
|
|
15389
15623
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15412,7 +15646,7 @@ var Client = class extends BaseClient {
|
|
|
15412
15646
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15413
15647
|
*/
|
|
15414
15648
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15415
|
-
const request = new
|
|
15649
|
+
const request = new avs_pb22.SetWalletReq();
|
|
15416
15650
|
request.setSalt(salt);
|
|
15417
15651
|
if (factoryAddress) {
|
|
15418
15652
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15460,7 +15694,7 @@ var Client = class extends BaseClient {
|
|
|
15460
15694
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15461
15695
|
*/
|
|
15462
15696
|
async getWorkflows(addresses, options) {
|
|
15463
|
-
const request = new
|
|
15697
|
+
const request = new avs_pb22.ListTasksReq();
|
|
15464
15698
|
for (const a of addresses) {
|
|
15465
15699
|
request.addSmartWalletAddress(a);
|
|
15466
15700
|
}
|
|
@@ -15499,7 +15733,7 @@ var Client = class extends BaseClient {
|
|
|
15499
15733
|
* @returns {Promise<number>} - The count of workflows
|
|
15500
15734
|
*/
|
|
15501
15735
|
async getWorkflowCount(addresses, options) {
|
|
15502
|
-
const request = new
|
|
15736
|
+
const request = new avs_pb22.GetWorkflowCountReq();
|
|
15503
15737
|
request.setAddressesList(addresses);
|
|
15504
15738
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15505
15739
|
return result.getTotal();
|
|
@@ -15515,7 +15749,7 @@ var Client = class extends BaseClient {
|
|
|
15515
15749
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15516
15750
|
*/
|
|
15517
15751
|
async getExecutions(workflows, options) {
|
|
15518
|
-
const request = new
|
|
15752
|
+
const request = new avs_pb22.ListExecutionsReq();
|
|
15519
15753
|
for (const w of workflows) {
|
|
15520
15754
|
request.addTaskIds(w);
|
|
15521
15755
|
}
|
|
@@ -15549,7 +15783,7 @@ var Client = class extends BaseClient {
|
|
|
15549
15783
|
* @returns {Promise<Execution>} - The Execution object
|
|
15550
15784
|
*/
|
|
15551
15785
|
async getExecution(workflowId, executionId, options) {
|
|
15552
|
-
const request = new
|
|
15786
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15553
15787
|
request.setTaskId(workflowId);
|
|
15554
15788
|
request.setExecutionId(executionId);
|
|
15555
15789
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15562,7 +15796,7 @@ var Client = class extends BaseClient {
|
|
|
15562
15796
|
* @returns {Promise<number>} - The count of executions
|
|
15563
15797
|
*/
|
|
15564
15798
|
async getExecutionCount(workflows, options) {
|
|
15565
|
-
const request = new
|
|
15799
|
+
const request = new avs_pb22.GetExecutionCountReq();
|
|
15566
15800
|
request.setWorkflowIdsList(workflows);
|
|
15567
15801
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15568
15802
|
return result.getTotal();
|
|
@@ -15575,7 +15809,7 @@ var Client = class extends BaseClient {
|
|
|
15575
15809
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15576
15810
|
*/
|
|
15577
15811
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15578
|
-
const request = new
|
|
15812
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15579
15813
|
request.setTaskId(workflowId);
|
|
15580
15814
|
request.setExecutionId(executionId);
|
|
15581
15815
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15588,7 +15822,7 @@ var Client = class extends BaseClient {
|
|
|
15588
15822
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15589
15823
|
*/
|
|
15590
15824
|
async getWorkflow(id, options) {
|
|
15591
|
-
const request = new
|
|
15825
|
+
const request = new avs_pb22.IdReq();
|
|
15592
15826
|
request.setId(id);
|
|
15593
15827
|
const result = await this.sendGrpcRequest(
|
|
15594
15828
|
"getTask",
|
|
@@ -15611,28 +15845,28 @@ var Client = class extends BaseClient {
|
|
|
15611
15845
|
triggerData,
|
|
15612
15846
|
isBlocking = false
|
|
15613
15847
|
}, options) {
|
|
15614
|
-
const request = new
|
|
15848
|
+
const request = new avs_pb22.TriggerTaskReq();
|
|
15615
15849
|
request.setTaskId(id);
|
|
15616
|
-
request.setTriggerType(
|
|
15850
|
+
request.setTriggerType(TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
15617
15851
|
request.setIsBlocking(isBlocking);
|
|
15618
15852
|
switch (triggerData.type) {
|
|
15619
|
-
case
|
|
15620
|
-
const fixedTimeOutput = new
|
|
15853
|
+
case TriggerType13.FixedTime: {
|
|
15854
|
+
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
15621
15855
|
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15622
15856
|
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15623
15857
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15624
15858
|
break;
|
|
15625
15859
|
}
|
|
15626
|
-
case
|
|
15627
|
-
const cronOutput = new
|
|
15860
|
+
case TriggerType13.Cron: {
|
|
15861
|
+
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
15628
15862
|
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15629
15863
|
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15630
15864
|
request.setCronTrigger(cronOutput);
|
|
15631
15865
|
break;
|
|
15632
15866
|
}
|
|
15633
|
-
case
|
|
15867
|
+
case TriggerType13.Block: {
|
|
15634
15868
|
const blockData = triggerData;
|
|
15635
|
-
const blockOutput = new
|
|
15869
|
+
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
15636
15870
|
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15637
15871
|
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15638
15872
|
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
@@ -15643,11 +15877,11 @@ var Client = class extends BaseClient {
|
|
|
15643
15877
|
request.setBlockTrigger(blockOutput);
|
|
15644
15878
|
break;
|
|
15645
15879
|
}
|
|
15646
|
-
case
|
|
15880
|
+
case TriggerType13.Event: {
|
|
15647
15881
|
const eventData = triggerData;
|
|
15648
|
-
const eventOutput = new
|
|
15882
|
+
const eventOutput = new avs_pb22.EventTrigger.Output();
|
|
15649
15883
|
if (eventData.evmLog) {
|
|
15650
|
-
const evmLog = new
|
|
15884
|
+
const evmLog = new avs_pb22.Evm.Log();
|
|
15651
15885
|
evmLog.setAddress(eventData.evmLog.address);
|
|
15652
15886
|
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15653
15887
|
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
@@ -15655,7 +15889,7 @@ var Client = class extends BaseClient {
|
|
|
15655
15889
|
eventOutput.setEvmLog(evmLog);
|
|
15656
15890
|
}
|
|
15657
15891
|
if (eventData.transferLog) {
|
|
15658
|
-
const transferLog = new
|
|
15892
|
+
const transferLog = new avs_pb22.EventTrigger.TransferLogOutput();
|
|
15659
15893
|
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15660
15894
|
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15661
15895
|
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
@@ -15674,14 +15908,14 @@ var Client = class extends BaseClient {
|
|
|
15674
15908
|
request.setEventTrigger(eventOutput);
|
|
15675
15909
|
break;
|
|
15676
15910
|
}
|
|
15677
|
-
case
|
|
15911
|
+
case TriggerType13.Manual: {
|
|
15678
15912
|
const manualData = triggerData;
|
|
15679
|
-
const manualOutput = new
|
|
15913
|
+
const manualOutput = new avs_pb22.ManualTrigger.Output();
|
|
15680
15914
|
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15681
15915
|
request.setManualTrigger(manualOutput);
|
|
15682
15916
|
break;
|
|
15683
15917
|
}
|
|
15684
|
-
case
|
|
15918
|
+
case TriggerType13.Unspecified:
|
|
15685
15919
|
break;
|
|
15686
15920
|
default:
|
|
15687
15921
|
throw new Error(`Unsupported trigger type: ${triggerData.type}`);
|
|
@@ -15696,7 +15930,7 @@ var Client = class extends BaseClient {
|
|
|
15696
15930
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15697
15931
|
*/
|
|
15698
15932
|
async cancelWorkflow(id, options) {
|
|
15699
|
-
const request = new
|
|
15933
|
+
const request = new avs_pb22.IdReq();
|
|
15700
15934
|
request.setId(id);
|
|
15701
15935
|
const result = await this.sendGrpcRequest(
|
|
15702
15936
|
"cancelTask",
|
|
@@ -15712,7 +15946,7 @@ var Client = class extends BaseClient {
|
|
|
15712
15946
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15713
15947
|
*/
|
|
15714
15948
|
async deleteWorkflow(id, options) {
|
|
15715
|
-
const request = new
|
|
15949
|
+
const request = new avs_pb22.IdReq();
|
|
15716
15950
|
request.setId(id);
|
|
15717
15951
|
const result = await this.sendGrpcRequest(
|
|
15718
15952
|
"deleteTask",
|
|
@@ -15732,7 +15966,7 @@ var Client = class extends BaseClient {
|
|
|
15732
15966
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15733
15967
|
*/
|
|
15734
15968
|
async createSecret(name, value, options) {
|
|
15735
|
-
const request = new
|
|
15969
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15736
15970
|
request.setName(name);
|
|
15737
15971
|
request.setSecret(value);
|
|
15738
15972
|
if (options?.workflowId) {
|
|
@@ -15755,7 +15989,7 @@ var Client = class extends BaseClient {
|
|
|
15755
15989
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15756
15990
|
*/
|
|
15757
15991
|
async updateSecret(name, value, options) {
|
|
15758
|
-
const request = new
|
|
15992
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15759
15993
|
request.setName(name);
|
|
15760
15994
|
request.setSecret(value);
|
|
15761
15995
|
if (options?.workflowId) {
|
|
@@ -15782,7 +16016,7 @@ var Client = class extends BaseClient {
|
|
|
15782
16016
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15783
16017
|
*/
|
|
15784
16018
|
async getSecrets(options) {
|
|
15785
|
-
const request = new
|
|
16019
|
+
const request = new avs_pb22.ListSecretsReq();
|
|
15786
16020
|
if (options?.workflowId) {
|
|
15787
16021
|
request.setWorkflowId(options.workflowId);
|
|
15788
16022
|
}
|
|
@@ -15837,7 +16071,7 @@ var Client = class extends BaseClient {
|
|
|
15837
16071
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15838
16072
|
*/
|
|
15839
16073
|
async deleteSecret(name, options) {
|
|
15840
|
-
const request = new
|
|
16074
|
+
const request = new avs_pb22.DeleteSecretReq();
|
|
15841
16075
|
request.setName(name);
|
|
15842
16076
|
if (options?.workflowId) {
|
|
15843
16077
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15859,11 +16093,11 @@ var Client = class extends BaseClient {
|
|
|
15859
16093
|
*/
|
|
15860
16094
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
15861
16095
|
const triggerTypes = [
|
|
15862
|
-
|
|
15863
|
-
|
|
15864
|
-
|
|
15865
|
-
|
|
15866
|
-
|
|
16096
|
+
TriggerType13.Block,
|
|
16097
|
+
TriggerType13.FixedTime,
|
|
16098
|
+
TriggerType13.Cron,
|
|
16099
|
+
TriggerType13.Event,
|
|
16100
|
+
TriggerType13.Manual
|
|
15867
16101
|
];
|
|
15868
16102
|
if (triggerTypes.includes(nodeType)) {
|
|
15869
16103
|
return {
|
|
@@ -15872,7 +16106,7 @@ var Client = class extends BaseClient {
|
|
|
15872
16106
|
nodeId: ""
|
|
15873
16107
|
};
|
|
15874
16108
|
}
|
|
15875
|
-
const request = new
|
|
16109
|
+
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15876
16110
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
15877
16111
|
request.setNodeType(protobufNodeType);
|
|
15878
16112
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -15902,7 +16136,7 @@ var Client = class extends BaseClient {
|
|
|
15902
16136
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15903
16137
|
*/
|
|
15904
16138
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15905
|
-
const request = new
|
|
16139
|
+
const request = new avs_pb22.RunTriggerReq();
|
|
15906
16140
|
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15907
16141
|
request.setTriggerType(protobufTriggerType);
|
|
15908
16142
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -15917,6 +16151,37 @@ var Client = class extends BaseClient {
|
|
|
15917
16151
|
triggerId: result.getTriggerId()
|
|
15918
16152
|
};
|
|
15919
16153
|
}
|
|
16154
|
+
/**
|
|
16155
|
+
* Simulate a complete task execution including trigger and all workflow nodes
|
|
16156
|
+
* @param {SimulateWorkflowRequest} params - The parameters for simulating the task
|
|
16157
|
+
* @param {Record<string, any>} params.trigger - The trigger configuration
|
|
16158
|
+
* @param {Array<Record<string, any>>} params.nodes - The workflow nodes
|
|
16159
|
+
* @param {Array<Record<string, any>>} params.edges - The workflow edges
|
|
16160
|
+
* @param {Record<string, any>} params.inputVariables - Input variables for the simulation
|
|
16161
|
+
* @param {RequestOptions} options - Request options
|
|
16162
|
+
* @returns {Promise<Execution>} - The response from simulating the task
|
|
16163
|
+
*/
|
|
16164
|
+
async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
|
|
16165
|
+
const request = new avs_pb22.SimulateTaskReq();
|
|
16166
|
+
const triggerSdk = factory_default.create(trigger);
|
|
16167
|
+
request.setTrigger(triggerSdk.toRequest());
|
|
16168
|
+
const nodeMessages = nodes.map((node) => {
|
|
16169
|
+
const nodeSdk = factory_default2.create(node);
|
|
16170
|
+
return nodeSdk.toRequest();
|
|
16171
|
+
});
|
|
16172
|
+
request.setNodesList(nodeMessages);
|
|
16173
|
+
const edgeMessages = edges.map((edge) => {
|
|
16174
|
+
const edgeSdk = new edge_default(edge);
|
|
16175
|
+
return edgeSdk.toRequest();
|
|
16176
|
+
});
|
|
16177
|
+
request.setEdgesList(edgeMessages);
|
|
16178
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
16179
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
16180
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
16181
|
+
}
|
|
16182
|
+
const result = await this.sendGrpcRequest("simulateTask", request, options);
|
|
16183
|
+
return execution_default.fromResponse(result);
|
|
16184
|
+
}
|
|
15920
16185
|
};
|
|
15921
16186
|
export {
|
|
15922
16187
|
block_default as BlockTrigger,
|