@avaprotocol/sdk-js 2.4.1 → 2.4.4
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 +24 -0
- package/dist/index.d.ts +20 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1412 -243
- package/dist/index.mjs +1414 -244
- package/dist/models/node/contractRead.d.ts +14 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +27 -18
- package/dist/models/node/contractWrite.d.ts +14 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +25 -16
- package/dist/models/node/customCode.d.ts +10 -1
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +19 -9
- package/dist/models/node/ethTransfer.d.ts +9 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +14 -5
- package/dist/models/node/factory.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.d.ts +10 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +20 -12
- package/dist/models/node/loop.d.ts +5 -1
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +155 -99
- package/dist/models/node/restApi.d.ts +11 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +21 -13
- package/dist/utils.d.ts +0 -14
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +0 -62
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ var require_avs_pb = __commonJS({
|
|
|
64
64
|
goog.exportSymbol("proto.aggregator.BranchNode.Condition", null, global);
|
|
65
65
|
goog.exportSymbol("proto.aggregator.BranchNode.Config", null, global);
|
|
66
66
|
goog.exportSymbol("proto.aggregator.BranchNode.Output", null, global);
|
|
67
|
+
goog.exportSymbol("proto.aggregator.CancelTaskResp", null, global);
|
|
67
68
|
goog.exportSymbol("proto.aggregator.ContractReadNode", null, global);
|
|
68
69
|
goog.exportSymbol("proto.aggregator.ContractReadNode.Config", null, global);
|
|
69
70
|
goog.exportSymbol("proto.aggregator.ContractReadNode.MethodCall", null, global);
|
|
@@ -80,6 +81,7 @@ var require_avs_pb = __commonJS({
|
|
|
80
81
|
goog.exportSymbol("proto.aggregator.ContractWriteNode.ReturnData", null, global);
|
|
81
82
|
goog.exportSymbol("proto.aggregator.ContractWriteNode.TransactionData", null, global);
|
|
82
83
|
goog.exportSymbol("proto.aggregator.CreateOrUpdateSecretReq", null, global);
|
|
84
|
+
goog.exportSymbol("proto.aggregator.CreateSecretResp", null, global);
|
|
83
85
|
goog.exportSymbol("proto.aggregator.CreateTaskReq", null, global);
|
|
84
86
|
goog.exportSymbol("proto.aggregator.CreateTaskResp", null, global);
|
|
85
87
|
goog.exportSymbol("proto.aggregator.CronTrigger", null, global);
|
|
@@ -89,6 +91,8 @@ var require_avs_pb = __commonJS({
|
|
|
89
91
|
goog.exportSymbol("proto.aggregator.CustomCodeNode.Config", null, global);
|
|
90
92
|
goog.exportSymbol("proto.aggregator.CustomCodeNode.Output", null, global);
|
|
91
93
|
goog.exportSymbol("proto.aggregator.DeleteSecretReq", null, global);
|
|
94
|
+
goog.exportSymbol("proto.aggregator.DeleteSecretResp", null, global);
|
|
95
|
+
goog.exportSymbol("proto.aggregator.DeleteTaskResp", null, global);
|
|
92
96
|
goog.exportSymbol("proto.aggregator.ETHTransferNode", null, global);
|
|
93
97
|
goog.exportSymbol("proto.aggregator.ETHTransferNode.Config", null, global);
|
|
94
98
|
goog.exportSymbol("proto.aggregator.ETHTransferNode.Output", null, global);
|
|
@@ -103,6 +107,7 @@ var require_avs_pb = __commonJS({
|
|
|
103
107
|
goog.exportSymbol("proto.aggregator.Execution", null, global);
|
|
104
108
|
goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
|
|
105
109
|
goog.exportSymbol("proto.aggregator.Execution.Step.OutputDataCase", null, global);
|
|
110
|
+
goog.exportSymbol("proto.aggregator.ExecutionMode", null, global);
|
|
106
111
|
goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
|
|
107
112
|
goog.exportSymbol("proto.aggregator.ExecutionStatus", null, global);
|
|
108
113
|
goog.exportSymbol("proto.aggregator.ExecutionStatusResp", null, global);
|
|
@@ -175,6 +180,7 @@ var require_avs_pb = __commonJS({
|
|
|
175
180
|
goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
|
|
176
181
|
goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
|
|
177
182
|
goog.exportSymbol("proto.aggregator.TriggerType", null, global);
|
|
183
|
+
goog.exportSymbol("proto.aggregator.UpdateSecretResp", null, global);
|
|
178
184
|
proto.aggregator.TokenMetadata = function(opt_data) {
|
|
179
185
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
180
186
|
};
|
|
@@ -812,6 +818,13 @@ var require_avs_pb = __commonJS({
|
|
|
812
818
|
if (goog.DEBUG && !COMPILED) {
|
|
813
819
|
proto.aggregator.DeleteSecretReq.displayName = "proto.aggregator.DeleteSecretReq";
|
|
814
820
|
}
|
|
821
|
+
proto.aggregator.DeleteSecretResp = function(opt_data) {
|
|
822
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
823
|
+
};
|
|
824
|
+
goog.inherits(proto.aggregator.DeleteSecretResp, jspb.Message);
|
|
825
|
+
if (goog.DEBUG && !COMPILED) {
|
|
826
|
+
proto.aggregator.DeleteSecretResp.displayName = "proto.aggregator.DeleteSecretResp";
|
|
827
|
+
}
|
|
815
828
|
proto.aggregator.GetSignatureFormatReq = function(opt_data) {
|
|
816
829
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
817
830
|
};
|
|
@@ -826,6 +839,34 @@ var require_avs_pb = __commonJS({
|
|
|
826
839
|
if (goog.DEBUG && !COMPILED) {
|
|
827
840
|
proto.aggregator.GetSignatureFormatResp.displayName = "proto.aggregator.GetSignatureFormatResp";
|
|
828
841
|
}
|
|
842
|
+
proto.aggregator.CreateSecretResp = function(opt_data) {
|
|
843
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
844
|
+
};
|
|
845
|
+
goog.inherits(proto.aggregator.CreateSecretResp, jspb.Message);
|
|
846
|
+
if (goog.DEBUG && !COMPILED) {
|
|
847
|
+
proto.aggregator.CreateSecretResp.displayName = "proto.aggregator.CreateSecretResp";
|
|
848
|
+
}
|
|
849
|
+
proto.aggregator.UpdateSecretResp = function(opt_data) {
|
|
850
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
851
|
+
};
|
|
852
|
+
goog.inherits(proto.aggregator.UpdateSecretResp, jspb.Message);
|
|
853
|
+
if (goog.DEBUG && !COMPILED) {
|
|
854
|
+
proto.aggregator.UpdateSecretResp.displayName = "proto.aggregator.UpdateSecretResp";
|
|
855
|
+
}
|
|
856
|
+
proto.aggregator.DeleteTaskResp = function(opt_data) {
|
|
857
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
858
|
+
};
|
|
859
|
+
goog.inherits(proto.aggregator.DeleteTaskResp, jspb.Message);
|
|
860
|
+
if (goog.DEBUG && !COMPILED) {
|
|
861
|
+
proto.aggregator.DeleteTaskResp.displayName = "proto.aggregator.DeleteTaskResp";
|
|
862
|
+
}
|
|
863
|
+
proto.aggregator.CancelTaskResp = function(opt_data) {
|
|
864
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
865
|
+
};
|
|
866
|
+
goog.inherits(proto.aggregator.CancelTaskResp, jspb.Message);
|
|
867
|
+
if (goog.DEBUG && !COMPILED) {
|
|
868
|
+
proto.aggregator.CancelTaskResp.displayName = "proto.aggregator.CancelTaskResp";
|
|
869
|
+
}
|
|
829
870
|
proto.aggregator.GetWorkflowCountReq = function(opt_data) {
|
|
830
871
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.GetWorkflowCountReq.repeatedFields_, null);
|
|
831
872
|
};
|
|
@@ -7372,7 +7413,8 @@ var require_avs_pb = __commonJS({
|
|
|
7372
7413
|
var f, obj = {
|
|
7373
7414
|
sourceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7374
7415
|
iterVal: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7375
|
-
iterKey: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
7416
|
+
iterKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7417
|
+
executionMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
7376
7418
|
};
|
|
7377
7419
|
if (includeInstance) {
|
|
7378
7420
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7413,6 +7455,13 @@ var require_avs_pb = __commonJS({
|
|
|
7413
7455
|
);
|
|
7414
7456
|
msg.setIterKey(value);
|
|
7415
7457
|
break;
|
|
7458
|
+
case 4:
|
|
7459
|
+
var value = (
|
|
7460
|
+
/** @type {!proto.aggregator.ExecutionMode} */
|
|
7461
|
+
reader.readEnum()
|
|
7462
|
+
);
|
|
7463
|
+
msg.setExecutionMode(value);
|
|
7464
|
+
break;
|
|
7416
7465
|
default:
|
|
7417
7466
|
reader.skipField();
|
|
7418
7467
|
break;
|
|
@@ -7448,6 +7497,13 @@ var require_avs_pb = __commonJS({
|
|
|
7448
7497
|
f
|
|
7449
7498
|
);
|
|
7450
7499
|
}
|
|
7500
|
+
f = message.getExecutionMode();
|
|
7501
|
+
if (f !== 0) {
|
|
7502
|
+
writer.writeEnum(
|
|
7503
|
+
4,
|
|
7504
|
+
f
|
|
7505
|
+
);
|
|
7506
|
+
}
|
|
7451
7507
|
};
|
|
7452
7508
|
proto.aggregator.LoopNode.Config.prototype.getSourceId = function() {
|
|
7453
7509
|
return (
|
|
@@ -7476,6 +7532,15 @@ var require_avs_pb = __commonJS({
|
|
|
7476
7532
|
proto.aggregator.LoopNode.Config.prototype.setIterKey = function(value) {
|
|
7477
7533
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7478
7534
|
};
|
|
7535
|
+
proto.aggregator.LoopNode.Config.prototype.getExecutionMode = function() {
|
|
7536
|
+
return (
|
|
7537
|
+
/** @type {!proto.aggregator.ExecutionMode} */
|
|
7538
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
7539
|
+
);
|
|
7540
|
+
};
|
|
7541
|
+
proto.aggregator.LoopNode.Config.prototype.setExecutionMode = function(value) {
|
|
7542
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
7543
|
+
};
|
|
7479
7544
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7480
7545
|
proto.aggregator.LoopNode.Output.prototype.toObject = function(opt_includeInstance) {
|
|
7481
7546
|
return proto.aggregator.LoopNode.Output.toObject(opt_includeInstance, this);
|
|
@@ -12914,6 +12979,190 @@ var require_avs_pb = __commonJS({
|
|
|
12914
12979
|
proto.aggregator.DeleteSecretReq.prototype.setOrgId = function(value) {
|
|
12915
12980
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12916
12981
|
};
|
|
12982
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12983
|
+
proto.aggregator.DeleteSecretResp.prototype.toObject = function(opt_includeInstance) {
|
|
12984
|
+
return proto.aggregator.DeleteSecretResp.toObject(opt_includeInstance, this);
|
|
12985
|
+
};
|
|
12986
|
+
proto.aggregator.DeleteSecretResp.toObject = function(includeInstance, msg) {
|
|
12987
|
+
var f, obj = {
|
|
12988
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
12989
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12990
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
12991
|
+
deletedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
12992
|
+
secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
12993
|
+
scope: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
12994
|
+
};
|
|
12995
|
+
if (includeInstance) {
|
|
12996
|
+
obj.$jspbMessageInstance = msg;
|
|
12997
|
+
}
|
|
12998
|
+
return obj;
|
|
12999
|
+
};
|
|
13000
|
+
}
|
|
13001
|
+
proto.aggregator.DeleteSecretResp.deserializeBinary = function(bytes) {
|
|
13002
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13003
|
+
var msg = new proto.aggregator.DeleteSecretResp();
|
|
13004
|
+
return proto.aggregator.DeleteSecretResp.deserializeBinaryFromReader(msg, reader);
|
|
13005
|
+
};
|
|
13006
|
+
proto.aggregator.DeleteSecretResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
13007
|
+
while (reader.nextField()) {
|
|
13008
|
+
if (reader.isEndGroup()) {
|
|
13009
|
+
break;
|
|
13010
|
+
}
|
|
13011
|
+
var field = reader.getFieldNumber();
|
|
13012
|
+
switch (field) {
|
|
13013
|
+
case 1:
|
|
13014
|
+
var value = (
|
|
13015
|
+
/** @type {boolean} */
|
|
13016
|
+
reader.readBool()
|
|
13017
|
+
);
|
|
13018
|
+
msg.setSuccess(value);
|
|
13019
|
+
break;
|
|
13020
|
+
case 2:
|
|
13021
|
+
var value = (
|
|
13022
|
+
/** @type {string} */
|
|
13023
|
+
reader.readString()
|
|
13024
|
+
);
|
|
13025
|
+
msg.setStatus(value);
|
|
13026
|
+
break;
|
|
13027
|
+
case 3:
|
|
13028
|
+
var value = (
|
|
13029
|
+
/** @type {string} */
|
|
13030
|
+
reader.readString()
|
|
13031
|
+
);
|
|
13032
|
+
msg.setMessage(value);
|
|
13033
|
+
break;
|
|
13034
|
+
case 4:
|
|
13035
|
+
var value = (
|
|
13036
|
+
/** @type {number} */
|
|
13037
|
+
reader.readInt64()
|
|
13038
|
+
);
|
|
13039
|
+
msg.setDeletedAt(value);
|
|
13040
|
+
break;
|
|
13041
|
+
case 5:
|
|
13042
|
+
var value = (
|
|
13043
|
+
/** @type {string} */
|
|
13044
|
+
reader.readString()
|
|
13045
|
+
);
|
|
13046
|
+
msg.setSecretName(value);
|
|
13047
|
+
break;
|
|
13048
|
+
case 6:
|
|
13049
|
+
var value = (
|
|
13050
|
+
/** @type {string} */
|
|
13051
|
+
reader.readString()
|
|
13052
|
+
);
|
|
13053
|
+
msg.setScope(value);
|
|
13054
|
+
break;
|
|
13055
|
+
default:
|
|
13056
|
+
reader.skipField();
|
|
13057
|
+
break;
|
|
13058
|
+
}
|
|
13059
|
+
}
|
|
13060
|
+
return msg;
|
|
13061
|
+
};
|
|
13062
|
+
proto.aggregator.DeleteSecretResp.prototype.serializeBinary = function() {
|
|
13063
|
+
var writer = new jspb.BinaryWriter();
|
|
13064
|
+
proto.aggregator.DeleteSecretResp.serializeBinaryToWriter(this, writer);
|
|
13065
|
+
return writer.getResultBuffer();
|
|
13066
|
+
};
|
|
13067
|
+
proto.aggregator.DeleteSecretResp.serializeBinaryToWriter = function(message, writer) {
|
|
13068
|
+
var f = void 0;
|
|
13069
|
+
f = message.getSuccess();
|
|
13070
|
+
if (f) {
|
|
13071
|
+
writer.writeBool(
|
|
13072
|
+
1,
|
|
13073
|
+
f
|
|
13074
|
+
);
|
|
13075
|
+
}
|
|
13076
|
+
f = message.getStatus();
|
|
13077
|
+
if (f.length > 0) {
|
|
13078
|
+
writer.writeString(
|
|
13079
|
+
2,
|
|
13080
|
+
f
|
|
13081
|
+
);
|
|
13082
|
+
}
|
|
13083
|
+
f = message.getMessage();
|
|
13084
|
+
if (f.length > 0) {
|
|
13085
|
+
writer.writeString(
|
|
13086
|
+
3,
|
|
13087
|
+
f
|
|
13088
|
+
);
|
|
13089
|
+
}
|
|
13090
|
+
f = message.getDeletedAt();
|
|
13091
|
+
if (f !== 0) {
|
|
13092
|
+
writer.writeInt64(
|
|
13093
|
+
4,
|
|
13094
|
+
f
|
|
13095
|
+
);
|
|
13096
|
+
}
|
|
13097
|
+
f = message.getSecretName();
|
|
13098
|
+
if (f.length > 0) {
|
|
13099
|
+
writer.writeString(
|
|
13100
|
+
5,
|
|
13101
|
+
f
|
|
13102
|
+
);
|
|
13103
|
+
}
|
|
13104
|
+
f = message.getScope();
|
|
13105
|
+
if (f.length > 0) {
|
|
13106
|
+
writer.writeString(
|
|
13107
|
+
6,
|
|
13108
|
+
f
|
|
13109
|
+
);
|
|
13110
|
+
}
|
|
13111
|
+
};
|
|
13112
|
+
proto.aggregator.DeleteSecretResp.prototype.getSuccess = function() {
|
|
13113
|
+
return (
|
|
13114
|
+
/** @type {boolean} */
|
|
13115
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
13116
|
+
);
|
|
13117
|
+
};
|
|
13118
|
+
proto.aggregator.DeleteSecretResp.prototype.setSuccess = function(value) {
|
|
13119
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
13120
|
+
};
|
|
13121
|
+
proto.aggregator.DeleteSecretResp.prototype.getStatus = function() {
|
|
13122
|
+
return (
|
|
13123
|
+
/** @type {string} */
|
|
13124
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13125
|
+
);
|
|
13126
|
+
};
|
|
13127
|
+
proto.aggregator.DeleteSecretResp.prototype.setStatus = function(value) {
|
|
13128
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13129
|
+
};
|
|
13130
|
+
proto.aggregator.DeleteSecretResp.prototype.getMessage = function() {
|
|
13131
|
+
return (
|
|
13132
|
+
/** @type {string} */
|
|
13133
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13134
|
+
);
|
|
13135
|
+
};
|
|
13136
|
+
proto.aggregator.DeleteSecretResp.prototype.setMessage = function(value) {
|
|
13137
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13138
|
+
};
|
|
13139
|
+
proto.aggregator.DeleteSecretResp.prototype.getDeletedAt = function() {
|
|
13140
|
+
return (
|
|
13141
|
+
/** @type {number} */
|
|
13142
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
13143
|
+
);
|
|
13144
|
+
};
|
|
13145
|
+
proto.aggregator.DeleteSecretResp.prototype.setDeletedAt = function(value) {
|
|
13146
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
13147
|
+
};
|
|
13148
|
+
proto.aggregator.DeleteSecretResp.prototype.getSecretName = function() {
|
|
13149
|
+
return (
|
|
13150
|
+
/** @type {string} */
|
|
13151
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
13152
|
+
);
|
|
13153
|
+
};
|
|
13154
|
+
proto.aggregator.DeleteSecretResp.prototype.setSecretName = function(value) {
|
|
13155
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
13156
|
+
};
|
|
13157
|
+
proto.aggregator.DeleteSecretResp.prototype.getScope = function() {
|
|
13158
|
+
return (
|
|
13159
|
+
/** @type {string} */
|
|
13160
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
13161
|
+
);
|
|
13162
|
+
};
|
|
13163
|
+
proto.aggregator.DeleteSecretResp.prototype.setScope = function(value) {
|
|
13164
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
13165
|
+
};
|
|
12917
13166
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12918
13167
|
proto.aggregator.GetSignatureFormatReq.prototype.toObject = function(opt_includeInstance) {
|
|
12919
13168
|
return proto.aggregator.GetSignatureFormatReq.toObject(opt_includeInstance, this);
|
|
@@ -13042,14 +13291,18 @@ var require_avs_pb = __commonJS({
|
|
|
13042
13291
|
proto.aggregator.GetSignatureFormatResp.prototype.setMessage = function(value) {
|
|
13043
13292
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13044
13293
|
};
|
|
13045
|
-
proto.aggregator.GetWorkflowCountReq.repeatedFields_ = [1];
|
|
13046
13294
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13047
|
-
proto.aggregator.
|
|
13048
|
-
return proto.aggregator.
|
|
13295
|
+
proto.aggregator.CreateSecretResp.prototype.toObject = function(opt_includeInstance) {
|
|
13296
|
+
return proto.aggregator.CreateSecretResp.toObject(opt_includeInstance, this);
|
|
13049
13297
|
};
|
|
13050
|
-
proto.aggregator.
|
|
13298
|
+
proto.aggregator.CreateSecretResp.toObject = function(includeInstance, msg) {
|
|
13051
13299
|
var f, obj = {
|
|
13052
|
-
|
|
13300
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13301
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13302
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13303
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13304
|
+
secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13305
|
+
scope: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
13053
13306
|
};
|
|
13054
13307
|
if (includeInstance) {
|
|
13055
13308
|
obj.$jspbMessageInstance = msg;
|
|
@@ -13057,12 +13310,12 @@ var require_avs_pb = __commonJS({
|
|
|
13057
13310
|
return obj;
|
|
13058
13311
|
};
|
|
13059
13312
|
}
|
|
13060
|
-
proto.aggregator.
|
|
13313
|
+
proto.aggregator.CreateSecretResp.deserializeBinary = function(bytes) {
|
|
13061
13314
|
var reader = new jspb.BinaryReader(bytes);
|
|
13062
|
-
var msg = new proto.aggregator.
|
|
13063
|
-
return proto.aggregator.
|
|
13315
|
+
var msg = new proto.aggregator.CreateSecretResp();
|
|
13316
|
+
return proto.aggregator.CreateSecretResp.deserializeBinaryFromReader(msg, reader);
|
|
13064
13317
|
};
|
|
13065
|
-
proto.aggregator.
|
|
13318
|
+
proto.aggregator.CreateSecretResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
13066
13319
|
while (reader.nextField()) {
|
|
13067
13320
|
if (reader.isEndGroup()) {
|
|
13068
13321
|
break;
|
|
@@ -13070,11 +13323,46 @@ var require_avs_pb = __commonJS({
|
|
|
13070
13323
|
var field = reader.getFieldNumber();
|
|
13071
13324
|
switch (field) {
|
|
13072
13325
|
case 1:
|
|
13326
|
+
var value = (
|
|
13327
|
+
/** @type {boolean} */
|
|
13328
|
+
reader.readBool()
|
|
13329
|
+
);
|
|
13330
|
+
msg.setSuccess(value);
|
|
13331
|
+
break;
|
|
13332
|
+
case 2:
|
|
13073
13333
|
var value = (
|
|
13074
13334
|
/** @type {string} */
|
|
13075
13335
|
reader.readString()
|
|
13076
13336
|
);
|
|
13077
|
-
msg.
|
|
13337
|
+
msg.setStatus(value);
|
|
13338
|
+
break;
|
|
13339
|
+
case 3:
|
|
13340
|
+
var value = (
|
|
13341
|
+
/** @type {string} */
|
|
13342
|
+
reader.readString()
|
|
13343
|
+
);
|
|
13344
|
+
msg.setMessage(value);
|
|
13345
|
+
break;
|
|
13346
|
+
case 4:
|
|
13347
|
+
var value = (
|
|
13348
|
+
/** @type {number} */
|
|
13349
|
+
reader.readInt64()
|
|
13350
|
+
);
|
|
13351
|
+
msg.setCreatedAt(value);
|
|
13352
|
+
break;
|
|
13353
|
+
case 5:
|
|
13354
|
+
var value = (
|
|
13355
|
+
/** @type {string} */
|
|
13356
|
+
reader.readString()
|
|
13357
|
+
);
|
|
13358
|
+
msg.setSecretName(value);
|
|
13359
|
+
break;
|
|
13360
|
+
case 6:
|
|
13361
|
+
var value = (
|
|
13362
|
+
/** @type {string} */
|
|
13363
|
+
reader.readString()
|
|
13364
|
+
);
|
|
13365
|
+
msg.setScope(value);
|
|
13078
13366
|
break;
|
|
13079
13367
|
default:
|
|
13080
13368
|
reader.skipField();
|
|
@@ -13083,28 +13371,725 @@ var require_avs_pb = __commonJS({
|
|
|
13083
13371
|
}
|
|
13084
13372
|
return msg;
|
|
13085
13373
|
};
|
|
13086
|
-
proto.aggregator.
|
|
13374
|
+
proto.aggregator.CreateSecretResp.prototype.serializeBinary = function() {
|
|
13087
13375
|
var writer = new jspb.BinaryWriter();
|
|
13088
|
-
proto.aggregator.
|
|
13376
|
+
proto.aggregator.CreateSecretResp.serializeBinaryToWriter(this, writer);
|
|
13089
13377
|
return writer.getResultBuffer();
|
|
13090
13378
|
};
|
|
13091
|
-
proto.aggregator.
|
|
13379
|
+
proto.aggregator.CreateSecretResp.serializeBinaryToWriter = function(message, writer) {
|
|
13092
13380
|
var f = void 0;
|
|
13093
|
-
f = message.
|
|
13094
|
-
if (f
|
|
13095
|
-
writer.
|
|
13381
|
+
f = message.getSuccess();
|
|
13382
|
+
if (f) {
|
|
13383
|
+
writer.writeBool(
|
|
13096
13384
|
1,
|
|
13097
13385
|
f
|
|
13098
13386
|
);
|
|
13099
13387
|
}
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13388
|
+
f = message.getStatus();
|
|
13389
|
+
if (f.length > 0) {
|
|
13390
|
+
writer.writeString(
|
|
13391
|
+
2,
|
|
13392
|
+
f
|
|
13393
|
+
);
|
|
13394
|
+
}
|
|
13395
|
+
f = message.getMessage();
|
|
13396
|
+
if (f.length > 0) {
|
|
13397
|
+
writer.writeString(
|
|
13398
|
+
3,
|
|
13399
|
+
f
|
|
13400
|
+
);
|
|
13401
|
+
}
|
|
13402
|
+
f = message.getCreatedAt();
|
|
13403
|
+
if (f !== 0) {
|
|
13404
|
+
writer.writeInt64(
|
|
13405
|
+
4,
|
|
13406
|
+
f
|
|
13407
|
+
);
|
|
13408
|
+
}
|
|
13409
|
+
f = message.getSecretName();
|
|
13410
|
+
if (f.length > 0) {
|
|
13411
|
+
writer.writeString(
|
|
13412
|
+
5,
|
|
13413
|
+
f
|
|
13414
|
+
);
|
|
13415
|
+
}
|
|
13416
|
+
f = message.getScope();
|
|
13417
|
+
if (f.length > 0) {
|
|
13418
|
+
writer.writeString(
|
|
13419
|
+
6,
|
|
13420
|
+
f
|
|
13421
|
+
);
|
|
13422
|
+
}
|
|
13423
|
+
};
|
|
13424
|
+
proto.aggregator.CreateSecretResp.prototype.getSuccess = function() {
|
|
13425
|
+
return (
|
|
13426
|
+
/** @type {boolean} */
|
|
13427
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
13428
|
+
);
|
|
13429
|
+
};
|
|
13430
|
+
proto.aggregator.CreateSecretResp.prototype.setSuccess = function(value) {
|
|
13431
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
13432
|
+
};
|
|
13433
|
+
proto.aggregator.CreateSecretResp.prototype.getStatus = function() {
|
|
13434
|
+
return (
|
|
13435
|
+
/** @type {string} */
|
|
13436
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13437
|
+
);
|
|
13438
|
+
};
|
|
13439
|
+
proto.aggregator.CreateSecretResp.prototype.setStatus = function(value) {
|
|
13440
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13441
|
+
};
|
|
13442
|
+
proto.aggregator.CreateSecretResp.prototype.getMessage = function() {
|
|
13443
|
+
return (
|
|
13444
|
+
/** @type {string} */
|
|
13445
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13446
|
+
);
|
|
13447
|
+
};
|
|
13448
|
+
proto.aggregator.CreateSecretResp.prototype.setMessage = function(value) {
|
|
13449
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13450
|
+
};
|
|
13451
|
+
proto.aggregator.CreateSecretResp.prototype.getCreatedAt = function() {
|
|
13452
|
+
return (
|
|
13453
|
+
/** @type {number} */
|
|
13454
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
13455
|
+
);
|
|
13456
|
+
};
|
|
13457
|
+
proto.aggregator.CreateSecretResp.prototype.setCreatedAt = function(value) {
|
|
13458
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
13459
|
+
};
|
|
13460
|
+
proto.aggregator.CreateSecretResp.prototype.getSecretName = function() {
|
|
13461
|
+
return (
|
|
13462
|
+
/** @type {string} */
|
|
13463
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
13464
|
+
);
|
|
13465
|
+
};
|
|
13466
|
+
proto.aggregator.CreateSecretResp.prototype.setSecretName = function(value) {
|
|
13467
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
13468
|
+
};
|
|
13469
|
+
proto.aggregator.CreateSecretResp.prototype.getScope = function() {
|
|
13470
|
+
return (
|
|
13471
|
+
/** @type {string} */
|
|
13472
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
13473
|
+
);
|
|
13474
|
+
};
|
|
13475
|
+
proto.aggregator.CreateSecretResp.prototype.setScope = function(value) {
|
|
13476
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
13477
|
+
};
|
|
13478
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13479
|
+
proto.aggregator.UpdateSecretResp.prototype.toObject = function(opt_includeInstance) {
|
|
13480
|
+
return proto.aggregator.UpdateSecretResp.toObject(opt_includeInstance, this);
|
|
13481
|
+
};
|
|
13482
|
+
proto.aggregator.UpdateSecretResp.toObject = function(includeInstance, msg) {
|
|
13483
|
+
var f, obj = {
|
|
13484
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13485
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13486
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13487
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13488
|
+
secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13489
|
+
scope: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
13490
|
+
};
|
|
13491
|
+
if (includeInstance) {
|
|
13492
|
+
obj.$jspbMessageInstance = msg;
|
|
13493
|
+
}
|
|
13494
|
+
return obj;
|
|
13495
|
+
};
|
|
13496
|
+
}
|
|
13497
|
+
proto.aggregator.UpdateSecretResp.deserializeBinary = function(bytes) {
|
|
13498
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13499
|
+
var msg = new proto.aggregator.UpdateSecretResp();
|
|
13500
|
+
return proto.aggregator.UpdateSecretResp.deserializeBinaryFromReader(msg, reader);
|
|
13501
|
+
};
|
|
13502
|
+
proto.aggregator.UpdateSecretResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
13503
|
+
while (reader.nextField()) {
|
|
13504
|
+
if (reader.isEndGroup()) {
|
|
13505
|
+
break;
|
|
13506
|
+
}
|
|
13507
|
+
var field = reader.getFieldNumber();
|
|
13508
|
+
switch (field) {
|
|
13509
|
+
case 1:
|
|
13510
|
+
var value = (
|
|
13511
|
+
/** @type {boolean} */
|
|
13512
|
+
reader.readBool()
|
|
13513
|
+
);
|
|
13514
|
+
msg.setSuccess(value);
|
|
13515
|
+
break;
|
|
13516
|
+
case 2:
|
|
13517
|
+
var value = (
|
|
13518
|
+
/** @type {string} */
|
|
13519
|
+
reader.readString()
|
|
13520
|
+
);
|
|
13521
|
+
msg.setStatus(value);
|
|
13522
|
+
break;
|
|
13523
|
+
case 3:
|
|
13524
|
+
var value = (
|
|
13525
|
+
/** @type {string} */
|
|
13526
|
+
reader.readString()
|
|
13527
|
+
);
|
|
13528
|
+
msg.setMessage(value);
|
|
13529
|
+
break;
|
|
13530
|
+
case 4:
|
|
13531
|
+
var value = (
|
|
13532
|
+
/** @type {number} */
|
|
13533
|
+
reader.readInt64()
|
|
13534
|
+
);
|
|
13535
|
+
msg.setUpdatedAt(value);
|
|
13536
|
+
break;
|
|
13537
|
+
case 5:
|
|
13538
|
+
var value = (
|
|
13539
|
+
/** @type {string} */
|
|
13540
|
+
reader.readString()
|
|
13541
|
+
);
|
|
13542
|
+
msg.setSecretName(value);
|
|
13543
|
+
break;
|
|
13544
|
+
case 6:
|
|
13545
|
+
var value = (
|
|
13546
|
+
/** @type {string} */
|
|
13547
|
+
reader.readString()
|
|
13548
|
+
);
|
|
13549
|
+
msg.setScope(value);
|
|
13550
|
+
break;
|
|
13551
|
+
default:
|
|
13552
|
+
reader.skipField();
|
|
13553
|
+
break;
|
|
13554
|
+
}
|
|
13555
|
+
}
|
|
13556
|
+
return msg;
|
|
13557
|
+
};
|
|
13558
|
+
proto.aggregator.UpdateSecretResp.prototype.serializeBinary = function() {
|
|
13559
|
+
var writer = new jspb.BinaryWriter();
|
|
13560
|
+
proto.aggregator.UpdateSecretResp.serializeBinaryToWriter(this, writer);
|
|
13561
|
+
return writer.getResultBuffer();
|
|
13562
|
+
};
|
|
13563
|
+
proto.aggregator.UpdateSecretResp.serializeBinaryToWriter = function(message, writer) {
|
|
13564
|
+
var f = void 0;
|
|
13565
|
+
f = message.getSuccess();
|
|
13566
|
+
if (f) {
|
|
13567
|
+
writer.writeBool(
|
|
13568
|
+
1,
|
|
13569
|
+
f
|
|
13570
|
+
);
|
|
13571
|
+
}
|
|
13572
|
+
f = message.getStatus();
|
|
13573
|
+
if (f.length > 0) {
|
|
13574
|
+
writer.writeString(
|
|
13575
|
+
2,
|
|
13576
|
+
f
|
|
13577
|
+
);
|
|
13578
|
+
}
|
|
13579
|
+
f = message.getMessage();
|
|
13580
|
+
if (f.length > 0) {
|
|
13581
|
+
writer.writeString(
|
|
13582
|
+
3,
|
|
13583
|
+
f
|
|
13584
|
+
);
|
|
13585
|
+
}
|
|
13586
|
+
f = message.getUpdatedAt();
|
|
13587
|
+
if (f !== 0) {
|
|
13588
|
+
writer.writeInt64(
|
|
13589
|
+
4,
|
|
13590
|
+
f
|
|
13591
|
+
);
|
|
13592
|
+
}
|
|
13593
|
+
f = message.getSecretName();
|
|
13594
|
+
if (f.length > 0) {
|
|
13595
|
+
writer.writeString(
|
|
13596
|
+
5,
|
|
13597
|
+
f
|
|
13598
|
+
);
|
|
13599
|
+
}
|
|
13600
|
+
f = message.getScope();
|
|
13601
|
+
if (f.length > 0) {
|
|
13602
|
+
writer.writeString(
|
|
13603
|
+
6,
|
|
13604
|
+
f
|
|
13605
|
+
);
|
|
13606
|
+
}
|
|
13607
|
+
};
|
|
13608
|
+
proto.aggregator.UpdateSecretResp.prototype.getSuccess = function() {
|
|
13609
|
+
return (
|
|
13610
|
+
/** @type {boolean} */
|
|
13611
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
13612
|
+
);
|
|
13613
|
+
};
|
|
13614
|
+
proto.aggregator.UpdateSecretResp.prototype.setSuccess = function(value) {
|
|
13615
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
13616
|
+
};
|
|
13617
|
+
proto.aggregator.UpdateSecretResp.prototype.getStatus = function() {
|
|
13618
|
+
return (
|
|
13619
|
+
/** @type {string} */
|
|
13620
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13621
|
+
);
|
|
13622
|
+
};
|
|
13623
|
+
proto.aggregator.UpdateSecretResp.prototype.setStatus = function(value) {
|
|
13624
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13625
|
+
};
|
|
13626
|
+
proto.aggregator.UpdateSecretResp.prototype.getMessage = function() {
|
|
13627
|
+
return (
|
|
13628
|
+
/** @type {string} */
|
|
13629
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13630
|
+
);
|
|
13631
|
+
};
|
|
13632
|
+
proto.aggregator.UpdateSecretResp.prototype.setMessage = function(value) {
|
|
13633
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13634
|
+
};
|
|
13635
|
+
proto.aggregator.UpdateSecretResp.prototype.getUpdatedAt = function() {
|
|
13636
|
+
return (
|
|
13637
|
+
/** @type {number} */
|
|
13638
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
13639
|
+
);
|
|
13640
|
+
};
|
|
13641
|
+
proto.aggregator.UpdateSecretResp.prototype.setUpdatedAt = function(value) {
|
|
13642
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
13643
|
+
};
|
|
13644
|
+
proto.aggregator.UpdateSecretResp.prototype.getSecretName = function() {
|
|
13645
|
+
return (
|
|
13646
|
+
/** @type {string} */
|
|
13647
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
13648
|
+
);
|
|
13649
|
+
};
|
|
13650
|
+
proto.aggregator.UpdateSecretResp.prototype.setSecretName = function(value) {
|
|
13651
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
13652
|
+
};
|
|
13653
|
+
proto.aggregator.UpdateSecretResp.prototype.getScope = function() {
|
|
13654
|
+
return (
|
|
13655
|
+
/** @type {string} */
|
|
13656
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
13657
|
+
);
|
|
13658
|
+
};
|
|
13659
|
+
proto.aggregator.UpdateSecretResp.prototype.setScope = function(value) {
|
|
13660
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
13661
|
+
};
|
|
13662
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13663
|
+
proto.aggregator.DeleteTaskResp.prototype.toObject = function(opt_includeInstance) {
|
|
13664
|
+
return proto.aggregator.DeleteTaskResp.toObject(opt_includeInstance, this);
|
|
13665
|
+
};
|
|
13666
|
+
proto.aggregator.DeleteTaskResp.toObject = function(includeInstance, msg) {
|
|
13667
|
+
var f, obj = {
|
|
13668
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13669
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13670
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13671
|
+
deletedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13672
|
+
id: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13673
|
+
previousStatus: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
13674
|
+
};
|
|
13675
|
+
if (includeInstance) {
|
|
13676
|
+
obj.$jspbMessageInstance = msg;
|
|
13677
|
+
}
|
|
13678
|
+
return obj;
|
|
13679
|
+
};
|
|
13680
|
+
}
|
|
13681
|
+
proto.aggregator.DeleteTaskResp.deserializeBinary = function(bytes) {
|
|
13682
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13683
|
+
var msg = new proto.aggregator.DeleteTaskResp();
|
|
13684
|
+
return proto.aggregator.DeleteTaskResp.deserializeBinaryFromReader(msg, reader);
|
|
13685
|
+
};
|
|
13686
|
+
proto.aggregator.DeleteTaskResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
13687
|
+
while (reader.nextField()) {
|
|
13688
|
+
if (reader.isEndGroup()) {
|
|
13689
|
+
break;
|
|
13690
|
+
}
|
|
13691
|
+
var field = reader.getFieldNumber();
|
|
13692
|
+
switch (field) {
|
|
13693
|
+
case 1:
|
|
13694
|
+
var value = (
|
|
13695
|
+
/** @type {boolean} */
|
|
13696
|
+
reader.readBool()
|
|
13697
|
+
);
|
|
13698
|
+
msg.setSuccess(value);
|
|
13699
|
+
break;
|
|
13700
|
+
case 2:
|
|
13701
|
+
var value = (
|
|
13702
|
+
/** @type {string} */
|
|
13703
|
+
reader.readString()
|
|
13704
|
+
);
|
|
13705
|
+
msg.setStatus(value);
|
|
13706
|
+
break;
|
|
13707
|
+
case 3:
|
|
13708
|
+
var value = (
|
|
13709
|
+
/** @type {string} */
|
|
13710
|
+
reader.readString()
|
|
13711
|
+
);
|
|
13712
|
+
msg.setMessage(value);
|
|
13713
|
+
break;
|
|
13714
|
+
case 4:
|
|
13715
|
+
var value = (
|
|
13716
|
+
/** @type {number} */
|
|
13717
|
+
reader.readInt64()
|
|
13718
|
+
);
|
|
13719
|
+
msg.setDeletedAt(value);
|
|
13720
|
+
break;
|
|
13721
|
+
case 5:
|
|
13722
|
+
var value = (
|
|
13723
|
+
/** @type {string} */
|
|
13724
|
+
reader.readString()
|
|
13725
|
+
);
|
|
13726
|
+
msg.setId(value);
|
|
13727
|
+
break;
|
|
13728
|
+
case 6:
|
|
13729
|
+
var value = (
|
|
13730
|
+
/** @type {string} */
|
|
13731
|
+
reader.readString()
|
|
13732
|
+
);
|
|
13733
|
+
msg.setPreviousStatus(value);
|
|
13734
|
+
break;
|
|
13735
|
+
default:
|
|
13736
|
+
reader.skipField();
|
|
13737
|
+
break;
|
|
13738
|
+
}
|
|
13739
|
+
}
|
|
13740
|
+
return msg;
|
|
13741
|
+
};
|
|
13742
|
+
proto.aggregator.DeleteTaskResp.prototype.serializeBinary = function() {
|
|
13743
|
+
var writer = new jspb.BinaryWriter();
|
|
13744
|
+
proto.aggregator.DeleteTaskResp.serializeBinaryToWriter(this, writer);
|
|
13745
|
+
return writer.getResultBuffer();
|
|
13746
|
+
};
|
|
13747
|
+
proto.aggregator.DeleteTaskResp.serializeBinaryToWriter = function(message, writer) {
|
|
13748
|
+
var f = void 0;
|
|
13749
|
+
f = message.getSuccess();
|
|
13750
|
+
if (f) {
|
|
13751
|
+
writer.writeBool(
|
|
13752
|
+
1,
|
|
13753
|
+
f
|
|
13754
|
+
);
|
|
13755
|
+
}
|
|
13756
|
+
f = message.getStatus();
|
|
13757
|
+
if (f.length > 0) {
|
|
13758
|
+
writer.writeString(
|
|
13759
|
+
2,
|
|
13760
|
+
f
|
|
13761
|
+
);
|
|
13762
|
+
}
|
|
13763
|
+
f = message.getMessage();
|
|
13764
|
+
if (f.length > 0) {
|
|
13765
|
+
writer.writeString(
|
|
13766
|
+
3,
|
|
13767
|
+
f
|
|
13768
|
+
);
|
|
13769
|
+
}
|
|
13770
|
+
f = message.getDeletedAt();
|
|
13771
|
+
if (f !== 0) {
|
|
13772
|
+
writer.writeInt64(
|
|
13773
|
+
4,
|
|
13774
|
+
f
|
|
13775
|
+
);
|
|
13776
|
+
}
|
|
13777
|
+
f = message.getId();
|
|
13778
|
+
if (f.length > 0) {
|
|
13779
|
+
writer.writeString(
|
|
13780
|
+
5,
|
|
13781
|
+
f
|
|
13782
|
+
);
|
|
13783
|
+
}
|
|
13784
|
+
f = message.getPreviousStatus();
|
|
13785
|
+
if (f.length > 0) {
|
|
13786
|
+
writer.writeString(
|
|
13787
|
+
6,
|
|
13788
|
+
f
|
|
13789
|
+
);
|
|
13790
|
+
}
|
|
13791
|
+
};
|
|
13792
|
+
proto.aggregator.DeleteTaskResp.prototype.getSuccess = function() {
|
|
13793
|
+
return (
|
|
13794
|
+
/** @type {boolean} */
|
|
13795
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
13796
|
+
);
|
|
13797
|
+
};
|
|
13798
|
+
proto.aggregator.DeleteTaskResp.prototype.setSuccess = function(value) {
|
|
13799
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
13800
|
+
};
|
|
13801
|
+
proto.aggregator.DeleteTaskResp.prototype.getStatus = function() {
|
|
13802
|
+
return (
|
|
13803
|
+
/** @type {string} */
|
|
13804
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13805
|
+
);
|
|
13806
|
+
};
|
|
13807
|
+
proto.aggregator.DeleteTaskResp.prototype.setStatus = function(value) {
|
|
13808
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13809
|
+
};
|
|
13810
|
+
proto.aggregator.DeleteTaskResp.prototype.getMessage = function() {
|
|
13811
|
+
return (
|
|
13812
|
+
/** @type {string} */
|
|
13813
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13814
|
+
);
|
|
13815
|
+
};
|
|
13816
|
+
proto.aggregator.DeleteTaskResp.prototype.setMessage = function(value) {
|
|
13817
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13818
|
+
};
|
|
13819
|
+
proto.aggregator.DeleteTaskResp.prototype.getDeletedAt = function() {
|
|
13820
|
+
return (
|
|
13821
|
+
/** @type {number} */
|
|
13822
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
13823
|
+
);
|
|
13824
|
+
};
|
|
13825
|
+
proto.aggregator.DeleteTaskResp.prototype.setDeletedAt = function(value) {
|
|
13826
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
13827
|
+
};
|
|
13828
|
+
proto.aggregator.DeleteTaskResp.prototype.getId = function() {
|
|
13829
|
+
return (
|
|
13830
|
+
/** @type {string} */
|
|
13831
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
13832
|
+
);
|
|
13833
|
+
};
|
|
13834
|
+
proto.aggregator.DeleteTaskResp.prototype.setId = function(value) {
|
|
13835
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
13836
|
+
};
|
|
13837
|
+
proto.aggregator.DeleteTaskResp.prototype.getPreviousStatus = function() {
|
|
13838
|
+
return (
|
|
13839
|
+
/** @type {string} */
|
|
13840
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
13841
|
+
);
|
|
13842
|
+
};
|
|
13843
|
+
proto.aggregator.DeleteTaskResp.prototype.setPreviousStatus = function(value) {
|
|
13844
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
13845
|
+
};
|
|
13846
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13847
|
+
proto.aggregator.CancelTaskResp.prototype.toObject = function(opt_includeInstance) {
|
|
13848
|
+
return proto.aggregator.CancelTaskResp.toObject(opt_includeInstance, this);
|
|
13849
|
+
};
|
|
13850
|
+
proto.aggregator.CancelTaskResp.toObject = function(includeInstance, msg) {
|
|
13851
|
+
var f, obj = {
|
|
13852
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13853
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13854
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13855
|
+
cancelledAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13856
|
+
id: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13857
|
+
previousStatus: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
13858
|
+
};
|
|
13859
|
+
if (includeInstance) {
|
|
13860
|
+
obj.$jspbMessageInstance = msg;
|
|
13861
|
+
}
|
|
13862
|
+
return obj;
|
|
13863
|
+
};
|
|
13864
|
+
}
|
|
13865
|
+
proto.aggregator.CancelTaskResp.deserializeBinary = function(bytes) {
|
|
13866
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13867
|
+
var msg = new proto.aggregator.CancelTaskResp();
|
|
13868
|
+
return proto.aggregator.CancelTaskResp.deserializeBinaryFromReader(msg, reader);
|
|
13869
|
+
};
|
|
13870
|
+
proto.aggregator.CancelTaskResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
13871
|
+
while (reader.nextField()) {
|
|
13872
|
+
if (reader.isEndGroup()) {
|
|
13873
|
+
break;
|
|
13874
|
+
}
|
|
13875
|
+
var field = reader.getFieldNumber();
|
|
13876
|
+
switch (field) {
|
|
13877
|
+
case 1:
|
|
13878
|
+
var value = (
|
|
13879
|
+
/** @type {boolean} */
|
|
13880
|
+
reader.readBool()
|
|
13881
|
+
);
|
|
13882
|
+
msg.setSuccess(value);
|
|
13883
|
+
break;
|
|
13884
|
+
case 2:
|
|
13885
|
+
var value = (
|
|
13886
|
+
/** @type {string} */
|
|
13887
|
+
reader.readString()
|
|
13888
|
+
);
|
|
13889
|
+
msg.setStatus(value);
|
|
13890
|
+
break;
|
|
13891
|
+
case 3:
|
|
13892
|
+
var value = (
|
|
13893
|
+
/** @type {string} */
|
|
13894
|
+
reader.readString()
|
|
13895
|
+
);
|
|
13896
|
+
msg.setMessage(value);
|
|
13897
|
+
break;
|
|
13898
|
+
case 4:
|
|
13899
|
+
var value = (
|
|
13900
|
+
/** @type {number} */
|
|
13901
|
+
reader.readInt64()
|
|
13902
|
+
);
|
|
13903
|
+
msg.setCancelledAt(value);
|
|
13904
|
+
break;
|
|
13905
|
+
case 5:
|
|
13906
|
+
var value = (
|
|
13907
|
+
/** @type {string} */
|
|
13908
|
+
reader.readString()
|
|
13909
|
+
);
|
|
13910
|
+
msg.setId(value);
|
|
13911
|
+
break;
|
|
13912
|
+
case 6:
|
|
13913
|
+
var value = (
|
|
13914
|
+
/** @type {string} */
|
|
13915
|
+
reader.readString()
|
|
13916
|
+
);
|
|
13917
|
+
msg.setPreviousStatus(value);
|
|
13918
|
+
break;
|
|
13919
|
+
default:
|
|
13920
|
+
reader.skipField();
|
|
13921
|
+
break;
|
|
13922
|
+
}
|
|
13923
|
+
}
|
|
13924
|
+
return msg;
|
|
13925
|
+
};
|
|
13926
|
+
proto.aggregator.CancelTaskResp.prototype.serializeBinary = function() {
|
|
13927
|
+
var writer = new jspb.BinaryWriter();
|
|
13928
|
+
proto.aggregator.CancelTaskResp.serializeBinaryToWriter(this, writer);
|
|
13929
|
+
return writer.getResultBuffer();
|
|
13930
|
+
};
|
|
13931
|
+
proto.aggregator.CancelTaskResp.serializeBinaryToWriter = function(message, writer) {
|
|
13932
|
+
var f = void 0;
|
|
13933
|
+
f = message.getSuccess();
|
|
13934
|
+
if (f) {
|
|
13935
|
+
writer.writeBool(
|
|
13936
|
+
1,
|
|
13937
|
+
f
|
|
13938
|
+
);
|
|
13939
|
+
}
|
|
13940
|
+
f = message.getStatus();
|
|
13941
|
+
if (f.length > 0) {
|
|
13942
|
+
writer.writeString(
|
|
13943
|
+
2,
|
|
13944
|
+
f
|
|
13945
|
+
);
|
|
13946
|
+
}
|
|
13947
|
+
f = message.getMessage();
|
|
13948
|
+
if (f.length > 0) {
|
|
13949
|
+
writer.writeString(
|
|
13950
|
+
3,
|
|
13951
|
+
f
|
|
13952
|
+
);
|
|
13953
|
+
}
|
|
13954
|
+
f = message.getCancelledAt();
|
|
13955
|
+
if (f !== 0) {
|
|
13956
|
+
writer.writeInt64(
|
|
13957
|
+
4,
|
|
13958
|
+
f
|
|
13959
|
+
);
|
|
13960
|
+
}
|
|
13961
|
+
f = message.getId();
|
|
13962
|
+
if (f.length > 0) {
|
|
13963
|
+
writer.writeString(
|
|
13964
|
+
5,
|
|
13965
|
+
f
|
|
13966
|
+
);
|
|
13967
|
+
}
|
|
13968
|
+
f = message.getPreviousStatus();
|
|
13969
|
+
if (f.length > 0) {
|
|
13970
|
+
writer.writeString(
|
|
13971
|
+
6,
|
|
13972
|
+
f
|
|
13973
|
+
);
|
|
13974
|
+
}
|
|
13975
|
+
};
|
|
13976
|
+
proto.aggregator.CancelTaskResp.prototype.getSuccess = function() {
|
|
13977
|
+
return (
|
|
13978
|
+
/** @type {boolean} */
|
|
13979
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
13980
|
+
);
|
|
13981
|
+
};
|
|
13982
|
+
proto.aggregator.CancelTaskResp.prototype.setSuccess = function(value) {
|
|
13983
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
13984
|
+
};
|
|
13985
|
+
proto.aggregator.CancelTaskResp.prototype.getStatus = function() {
|
|
13986
|
+
return (
|
|
13987
|
+
/** @type {string} */
|
|
13988
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
13989
|
+
);
|
|
13990
|
+
};
|
|
13991
|
+
proto.aggregator.CancelTaskResp.prototype.setStatus = function(value) {
|
|
13992
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13993
|
+
};
|
|
13994
|
+
proto.aggregator.CancelTaskResp.prototype.getMessage = function() {
|
|
13995
|
+
return (
|
|
13996
|
+
/** @type {string} */
|
|
13997
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
13998
|
+
);
|
|
13999
|
+
};
|
|
14000
|
+
proto.aggregator.CancelTaskResp.prototype.setMessage = function(value) {
|
|
14001
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
14002
|
+
};
|
|
14003
|
+
proto.aggregator.CancelTaskResp.prototype.getCancelledAt = function() {
|
|
14004
|
+
return (
|
|
14005
|
+
/** @type {number} */
|
|
14006
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
14007
|
+
);
|
|
14008
|
+
};
|
|
14009
|
+
proto.aggregator.CancelTaskResp.prototype.setCancelledAt = function(value) {
|
|
14010
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
14011
|
+
};
|
|
14012
|
+
proto.aggregator.CancelTaskResp.prototype.getId = function() {
|
|
14013
|
+
return (
|
|
14014
|
+
/** @type {string} */
|
|
14015
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
14016
|
+
);
|
|
14017
|
+
};
|
|
14018
|
+
proto.aggregator.CancelTaskResp.prototype.setId = function(value) {
|
|
14019
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
14020
|
+
};
|
|
14021
|
+
proto.aggregator.CancelTaskResp.prototype.getPreviousStatus = function() {
|
|
14022
|
+
return (
|
|
14023
|
+
/** @type {string} */
|
|
14024
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
14025
|
+
);
|
|
14026
|
+
};
|
|
14027
|
+
proto.aggregator.CancelTaskResp.prototype.setPreviousStatus = function(value) {
|
|
14028
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
14029
|
+
};
|
|
14030
|
+
proto.aggregator.GetWorkflowCountReq.repeatedFields_ = [1];
|
|
14031
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14032
|
+
proto.aggregator.GetWorkflowCountReq.prototype.toObject = function(opt_includeInstance) {
|
|
14033
|
+
return proto.aggregator.GetWorkflowCountReq.toObject(opt_includeInstance, this);
|
|
14034
|
+
};
|
|
14035
|
+
proto.aggregator.GetWorkflowCountReq.toObject = function(includeInstance, msg) {
|
|
14036
|
+
var f, obj = {
|
|
14037
|
+
addressesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f
|
|
14038
|
+
};
|
|
14039
|
+
if (includeInstance) {
|
|
14040
|
+
obj.$jspbMessageInstance = msg;
|
|
14041
|
+
}
|
|
14042
|
+
return obj;
|
|
14043
|
+
};
|
|
14044
|
+
}
|
|
14045
|
+
proto.aggregator.GetWorkflowCountReq.deserializeBinary = function(bytes) {
|
|
14046
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14047
|
+
var msg = new proto.aggregator.GetWorkflowCountReq();
|
|
14048
|
+
return proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader(msg, reader);
|
|
14049
|
+
};
|
|
14050
|
+
proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
14051
|
+
while (reader.nextField()) {
|
|
14052
|
+
if (reader.isEndGroup()) {
|
|
14053
|
+
break;
|
|
14054
|
+
}
|
|
14055
|
+
var field = reader.getFieldNumber();
|
|
14056
|
+
switch (field) {
|
|
14057
|
+
case 1:
|
|
14058
|
+
var value = (
|
|
14059
|
+
/** @type {string} */
|
|
14060
|
+
reader.readString()
|
|
14061
|
+
);
|
|
14062
|
+
msg.addAddresses(value);
|
|
14063
|
+
break;
|
|
14064
|
+
default:
|
|
14065
|
+
reader.skipField();
|
|
14066
|
+
break;
|
|
14067
|
+
}
|
|
14068
|
+
}
|
|
14069
|
+
return msg;
|
|
14070
|
+
};
|
|
14071
|
+
proto.aggregator.GetWorkflowCountReq.prototype.serializeBinary = function() {
|
|
14072
|
+
var writer = new jspb.BinaryWriter();
|
|
14073
|
+
proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter(this, writer);
|
|
14074
|
+
return writer.getResultBuffer();
|
|
14075
|
+
};
|
|
14076
|
+
proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter = function(message, writer) {
|
|
14077
|
+
var f = void 0;
|
|
14078
|
+
f = message.getAddressesList();
|
|
14079
|
+
if (f.length > 0) {
|
|
14080
|
+
writer.writeRepeatedString(
|
|
14081
|
+
1,
|
|
14082
|
+
f
|
|
14083
|
+
);
|
|
14084
|
+
}
|
|
14085
|
+
};
|
|
14086
|
+
proto.aggregator.GetWorkflowCountReq.prototype.getAddressesList = function() {
|
|
14087
|
+
return (
|
|
14088
|
+
/** @type {!Array<string>} */
|
|
14089
|
+
jspb.Message.getRepeatedField(this, 1)
|
|
14090
|
+
);
|
|
14091
|
+
};
|
|
14092
|
+
proto.aggregator.GetWorkflowCountReq.prototype.setAddressesList = function(value) {
|
|
13108
14093
|
return jspb.Message.setField(this, 1, value || []);
|
|
13109
14094
|
};
|
|
13110
14095
|
proto.aggregator.GetWorkflowCountReq.prototype.addAddresses = function(value, opt_index) {
|
|
@@ -14815,6 +15800,10 @@ var require_avs_pb = __commonJS({
|
|
|
14815
15800
|
NODE_TYPE_FILTER: 8,
|
|
14816
15801
|
NODE_TYPE_LOOP: 9
|
|
14817
15802
|
};
|
|
15803
|
+
proto.aggregator.ExecutionMode = {
|
|
15804
|
+
EXECUTION_MODE_SEQUENTIAL: 0,
|
|
15805
|
+
EXECUTION_MODE_PARALLEL: 1
|
|
15806
|
+
};
|
|
14818
15807
|
proto.aggregator.Lang = {
|
|
14819
15808
|
JAVASCRIPT: 0
|
|
14820
15809
|
};
|
|
@@ -14885,6 +15874,15 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14885
15874
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
14886
15875
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
14887
15876
|
var google_protobuf_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
15877
|
+
function serialize_aggregator_CancelTaskResp(arg) {
|
|
15878
|
+
if (!(arg instanceof avs_pb23.CancelTaskResp)) {
|
|
15879
|
+
throw new Error("Expected argument of type aggregator.CancelTaskResp");
|
|
15880
|
+
}
|
|
15881
|
+
return Buffer.from(arg.serializeBinary());
|
|
15882
|
+
}
|
|
15883
|
+
function deserialize_aggregator_CancelTaskResp(buffer_arg) {
|
|
15884
|
+
return avs_pb23.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15885
|
+
}
|
|
14888
15886
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
14889
15887
|
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
14890
15888
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
@@ -14894,6 +15892,15 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14894
15892
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
14895
15893
|
return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
14896
15894
|
}
|
|
15895
|
+
function serialize_aggregator_CreateSecretResp(arg) {
|
|
15896
|
+
if (!(arg instanceof avs_pb23.CreateSecretResp)) {
|
|
15897
|
+
throw new Error("Expected argument of type aggregator.CreateSecretResp");
|
|
15898
|
+
}
|
|
15899
|
+
return Buffer.from(arg.serializeBinary());
|
|
15900
|
+
}
|
|
15901
|
+
function deserialize_aggregator_CreateSecretResp(buffer_arg) {
|
|
15902
|
+
return avs_pb23.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15903
|
+
}
|
|
14897
15904
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
14898
15905
|
if (!(arg instanceof avs_pb23.CreateTaskReq)) {
|
|
14899
15906
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
@@ -14921,6 +15928,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14921
15928
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
14922
15929
|
return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
14923
15930
|
}
|
|
15931
|
+
function serialize_aggregator_DeleteSecretResp(arg) {
|
|
15932
|
+
if (!(arg instanceof avs_pb23.DeleteSecretResp)) {
|
|
15933
|
+
throw new Error("Expected argument of type aggregator.DeleteSecretResp");
|
|
15934
|
+
}
|
|
15935
|
+
return Buffer.from(arg.serializeBinary());
|
|
15936
|
+
}
|
|
15937
|
+
function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
|
|
15938
|
+
return avs_pb23.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15939
|
+
}
|
|
15940
|
+
function serialize_aggregator_DeleteTaskResp(arg) {
|
|
15941
|
+
if (!(arg instanceof avs_pb23.DeleteTaskResp)) {
|
|
15942
|
+
throw new Error("Expected argument of type aggregator.DeleteTaskResp");
|
|
15943
|
+
}
|
|
15944
|
+
return Buffer.from(arg.serializeBinary());
|
|
15945
|
+
}
|
|
15946
|
+
function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
|
|
15947
|
+
return avs_pb23.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15948
|
+
}
|
|
14924
15949
|
function serialize_aggregator_Execution(arg) {
|
|
14925
15950
|
if (!(arg instanceof avs_pb23.Execution)) {
|
|
14926
15951
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
@@ -15254,14 +16279,14 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15254
16279
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
15255
16280
|
return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15256
16281
|
}
|
|
15257
|
-
function
|
|
15258
|
-
if (!(arg instanceof
|
|
15259
|
-
throw new Error("Expected argument of type
|
|
16282
|
+
function serialize_aggregator_UpdateSecretResp(arg) {
|
|
16283
|
+
if (!(arg instanceof avs_pb23.UpdateSecretResp)) {
|
|
16284
|
+
throw new Error("Expected argument of type aggregator.UpdateSecretResp");
|
|
15260
16285
|
}
|
|
15261
16286
|
return Buffer.from(arg.serializeBinary());
|
|
15262
16287
|
}
|
|
15263
|
-
function
|
|
15264
|
-
return
|
|
16288
|
+
function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
|
|
16289
|
+
return avs_pb23.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15265
16290
|
}
|
|
15266
16291
|
var AggregatorService = exports2.AggregatorService = {
|
|
15267
16292
|
// Exchange for an Auth Key to authenticate in subsequent request
|
|
@@ -15405,22 +16430,22 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15405
16430
|
requestStream: false,
|
|
15406
16431
|
responseStream: false,
|
|
15407
16432
|
requestType: avs_pb23.IdReq,
|
|
15408
|
-
responseType:
|
|
16433
|
+
responseType: avs_pb23.CancelTaskResp,
|
|
15409
16434
|
requestSerialize: serialize_aggregator_IdReq,
|
|
15410
16435
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
15411
|
-
responseSerialize:
|
|
15412
|
-
responseDeserialize:
|
|
16436
|
+
responseSerialize: serialize_aggregator_CancelTaskResp,
|
|
16437
|
+
responseDeserialize: deserialize_aggregator_CancelTaskResp
|
|
15413
16438
|
},
|
|
15414
16439
|
deleteTask: {
|
|
15415
16440
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
15416
16441
|
requestStream: false,
|
|
15417
16442
|
responseStream: false,
|
|
15418
16443
|
requestType: avs_pb23.IdReq,
|
|
15419
|
-
responseType:
|
|
16444
|
+
responseType: avs_pb23.DeleteTaskResp,
|
|
15420
16445
|
requestSerialize: serialize_aggregator_IdReq,
|
|
15421
16446
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
15422
|
-
responseSerialize:
|
|
15423
|
-
responseDeserialize:
|
|
16447
|
+
responseSerialize: serialize_aggregator_DeleteTaskResp,
|
|
16448
|
+
responseDeserialize: deserialize_aggregator_DeleteTaskResp
|
|
15424
16449
|
},
|
|
15425
16450
|
triggerTask: {
|
|
15426
16451
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
@@ -15441,22 +16466,22 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15441
16466
|
requestStream: false,
|
|
15442
16467
|
responseStream: false,
|
|
15443
16468
|
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
15444
|
-
responseType:
|
|
16469
|
+
responseType: avs_pb23.CreateSecretResp,
|
|
15445
16470
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
15446
16471
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
15447
|
-
responseSerialize:
|
|
15448
|
-
responseDeserialize:
|
|
16472
|
+
responseSerialize: serialize_aggregator_CreateSecretResp,
|
|
16473
|
+
responseDeserialize: deserialize_aggregator_CreateSecretResp
|
|
15449
16474
|
},
|
|
15450
16475
|
deleteSecret: {
|
|
15451
16476
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
15452
16477
|
requestStream: false,
|
|
15453
16478
|
responseStream: false,
|
|
15454
16479
|
requestType: avs_pb23.DeleteSecretReq,
|
|
15455
|
-
responseType:
|
|
16480
|
+
responseType: avs_pb23.DeleteSecretResp,
|
|
15456
16481
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
15457
16482
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
15458
|
-
responseSerialize:
|
|
15459
|
-
responseDeserialize:
|
|
16483
|
+
responseSerialize: serialize_aggregator_DeleteSecretResp,
|
|
16484
|
+
responseDeserialize: deserialize_aggregator_DeleteSecretResp
|
|
15460
16485
|
},
|
|
15461
16486
|
// Return all secrets belong to this user. Currently we don't support any fine tune or filter yet.
|
|
15462
16487
|
// Only secret names and config data are returned. The secret value aren't returned.
|
|
@@ -15478,11 +16503,11 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15478
16503
|
requestStream: false,
|
|
15479
16504
|
responseStream: false,
|
|
15480
16505
|
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
15481
|
-
responseType:
|
|
16506
|
+
responseType: avs_pb23.UpdateSecretResp,
|
|
15482
16507
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
15483
16508
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
15484
|
-
responseSerialize:
|
|
15485
|
-
responseDeserialize:
|
|
16509
|
+
responseSerialize: serialize_aggregator_UpdateSecretResp,
|
|
16510
|
+
responseDeserialize: deserialize_aggregator_UpdateSecretResp
|
|
15486
16511
|
},
|
|
15487
16512
|
// The spec of these 2 RPCs are based on the following issue:
|
|
15488
16513
|
// Reference: https://github.com/AvaProtocol/EigenLayer-AVS/issues/150
|
|
@@ -16451,6 +17476,29 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16451
17476
|
constructor(props) {
|
|
16452
17477
|
super({ ...props, type: import_types9.NodeType.ContractWrite, data: props.data });
|
|
16453
17478
|
}
|
|
17479
|
+
/**
|
|
17480
|
+
* Create a protobuf ContractWriteNode from config data
|
|
17481
|
+
* @param configData - The configuration data for the contract write node
|
|
17482
|
+
* @returns Configured avs_pb.ContractWriteNode
|
|
17483
|
+
*/
|
|
17484
|
+
static createProtobufNode(configData) {
|
|
17485
|
+
const node = new avs_pb9.ContractWriteNode();
|
|
17486
|
+
const config = new avs_pb9.ContractWriteNode.Config();
|
|
17487
|
+
config.setContractAddress(configData.contractAddress);
|
|
17488
|
+
config.setCallData(configData.callData);
|
|
17489
|
+
config.setContractAbi(configData.contractAbi);
|
|
17490
|
+
const methodCalls = configData.methodCalls || [];
|
|
17491
|
+
methodCalls.forEach((methodCall) => {
|
|
17492
|
+
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
17493
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
17494
|
+
if (methodCall.methodName) {
|
|
17495
|
+
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17496
|
+
}
|
|
17497
|
+
config.addMethodCalls(methodCallMsg);
|
|
17498
|
+
});
|
|
17499
|
+
node.setConfig(config);
|
|
17500
|
+
return node;
|
|
17501
|
+
}
|
|
16454
17502
|
static fromResponse(raw) {
|
|
16455
17503
|
const obj = raw.toObject();
|
|
16456
17504
|
const protobufData = raw.getContractWrite().getConfig().toObject();
|
|
@@ -16478,25 +17526,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16478
17526
|
const request = new avs_pb9.TaskNode();
|
|
16479
17527
|
request.setId(this.id);
|
|
16480
17528
|
request.setName(this.name);
|
|
16481
|
-
const node =
|
|
16482
|
-
|
|
16483
|
-
config.setContractAddress(
|
|
16484
|
-
this.data.contractAddress
|
|
16485
|
-
);
|
|
16486
|
-
config.setCallData(this.data.callData);
|
|
16487
|
-
config.setContractAbi(this.data.contractAbi);
|
|
16488
|
-
const methodCalls = this.data.methodCalls || [];
|
|
16489
|
-
methodCalls.forEach(
|
|
16490
|
-
(methodCall) => {
|
|
16491
|
-
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16492
|
-
methodCallMsg.setCallData(methodCall.callData);
|
|
16493
|
-
if (methodCall.methodName) {
|
|
16494
|
-
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16495
|
-
}
|
|
16496
|
-
config.addMethodCalls(methodCallMsg);
|
|
16497
|
-
}
|
|
17529
|
+
const node = _ContractWriteNode.createProtobufNode(
|
|
17530
|
+
this.data
|
|
16498
17531
|
);
|
|
16499
|
-
node.setConfig(config);
|
|
16500
17532
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16501
17533
|
if (inputValue) {
|
|
16502
17534
|
request.setInput(inputValue);
|
|
@@ -16522,6 +17554,19 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
16522
17554
|
constructor(props) {
|
|
16523
17555
|
super({ ...props, type: import_types10.NodeType.CustomCode, data: props.data });
|
|
16524
17556
|
}
|
|
17557
|
+
/**
|
|
17558
|
+
* Create a protobuf CustomCodeNode from config data
|
|
17559
|
+
* @param configData - The configuration data for the custom code node
|
|
17560
|
+
* @returns Configured avs_pb.CustomCodeNode
|
|
17561
|
+
*/
|
|
17562
|
+
static createProtobufNode(configData) {
|
|
17563
|
+
const node = new avs_pb10.CustomCodeNode();
|
|
17564
|
+
const config = new avs_pb10.CustomCodeNode.Config();
|
|
17565
|
+
config.setLang(configData.lang);
|
|
17566
|
+
config.setSource(configData.source);
|
|
17567
|
+
node.setConfig(config);
|
|
17568
|
+
return node;
|
|
17569
|
+
}
|
|
16525
17570
|
static fromResponse(raw) {
|
|
16526
17571
|
const obj = raw.toObject();
|
|
16527
17572
|
const rawConfig = raw.getCustomCode().getConfig().toObject();
|
|
@@ -16544,11 +17589,9 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
16544
17589
|
const request = new avs_pb10.TaskNode();
|
|
16545
17590
|
request.setId(this.id);
|
|
16546
17591
|
request.setName(this.name);
|
|
16547
|
-
const node =
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
config.setSource(this.data.source);
|
|
16551
|
-
node.setConfig(config);
|
|
17592
|
+
const node = _CustomCodeNode.createProtobufNode(
|
|
17593
|
+
this.data
|
|
17594
|
+
);
|
|
16552
17595
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16553
17596
|
if (inputValue) {
|
|
16554
17597
|
request.setInput(inputValue);
|
|
@@ -16581,6 +17624,25 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16581
17624
|
data: props.data
|
|
16582
17625
|
});
|
|
16583
17626
|
}
|
|
17627
|
+
/**
|
|
17628
|
+
* Create a protobuf GraphQLQueryNode from config data
|
|
17629
|
+
* @param configData - The configuration data for the GraphQL query node
|
|
17630
|
+
* @returns Configured avs_pb.GraphQLQueryNode
|
|
17631
|
+
*/
|
|
17632
|
+
static createProtobufNode(configData) {
|
|
17633
|
+
const node = new avs_pb11.GraphQLQueryNode();
|
|
17634
|
+
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
17635
|
+
config.setUrl(configData.url);
|
|
17636
|
+
config.setQuery(configData.query);
|
|
17637
|
+
if (configData.variablesMap && configData.variablesMap.length > 0) {
|
|
17638
|
+
const variablesMap = config.getVariablesMap();
|
|
17639
|
+
configData.variablesMap.forEach(([key, value]) => {
|
|
17640
|
+
variablesMap.set(key, value);
|
|
17641
|
+
});
|
|
17642
|
+
}
|
|
17643
|
+
node.setConfig(config);
|
|
17644
|
+
return node;
|
|
17645
|
+
}
|
|
16584
17646
|
static fromResponse(raw) {
|
|
16585
17647
|
const obj = raw.toObject();
|
|
16586
17648
|
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
@@ -16595,17 +17657,9 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16595
17657
|
const request = new avs_pb11.TaskNode();
|
|
16596
17658
|
request.setId(this.id);
|
|
16597
17659
|
request.setName(this.name);
|
|
16598
|
-
const node =
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
config.setQuery(this.data.query);
|
|
16602
|
-
if (this.data.variablesMap && this.data.variablesMap.length > 0) {
|
|
16603
|
-
const variablesMap = config.getVariablesMap();
|
|
16604
|
-
this.data.variablesMap.forEach(([key, value]) => {
|
|
16605
|
-
variablesMap.set(key, value);
|
|
16606
|
-
});
|
|
16607
|
-
}
|
|
16608
|
-
node.setConfig(config);
|
|
17660
|
+
const node = _GraphQLQueryNode.createProtobufNode(
|
|
17661
|
+
this.data
|
|
17662
|
+
);
|
|
16609
17663
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16610
17664
|
if (inputValue) {
|
|
16611
17665
|
node.setInput(inputValue);
|
|
@@ -16627,6 +17681,26 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
16627
17681
|
constructor(props) {
|
|
16628
17682
|
super({ ...props, type: import_types12.NodeType.RestAPI, data: props.data });
|
|
16629
17683
|
}
|
|
17684
|
+
/**
|
|
17685
|
+
* Create a protobuf RestAPINode from config data
|
|
17686
|
+
* @param configData - The configuration data for the REST API node
|
|
17687
|
+
* @returns Configured avs_pb.RestAPINode
|
|
17688
|
+
*/
|
|
17689
|
+
static createProtobufNode(configData) {
|
|
17690
|
+
const node = new avs_pb12.RestAPINode();
|
|
17691
|
+
const config = new avs_pb12.RestAPINode.Config();
|
|
17692
|
+
config.setUrl(configData.url);
|
|
17693
|
+
config.setMethod(configData.method);
|
|
17694
|
+
config.setBody(configData.body || "");
|
|
17695
|
+
if (configData.headersMap && configData.headersMap.length > 0) {
|
|
17696
|
+
const headersMap = config.getHeadersMap();
|
|
17697
|
+
configData.headersMap.forEach(([key, value]) => {
|
|
17698
|
+
headersMap.set(key, value);
|
|
17699
|
+
});
|
|
17700
|
+
}
|
|
17701
|
+
node.setConfig(config);
|
|
17702
|
+
return node;
|
|
17703
|
+
}
|
|
16630
17704
|
static fromResponse(raw) {
|
|
16631
17705
|
const obj = raw.toObject();
|
|
16632
17706
|
let input = void 0;
|
|
@@ -16645,20 +17719,9 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
16645
17719
|
const request = new avs_pb12.TaskNode();
|
|
16646
17720
|
request.setId(this.id);
|
|
16647
17721
|
request.setName(this.name);
|
|
16648
|
-
const nodeData =
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
config.setMethod(this.data.method);
|
|
16652
|
-
config.setBody(this.data.body || "");
|
|
16653
|
-
if (this.data.headersMap && this.data.headersMap.length > 0) {
|
|
16654
|
-
const headersMap = config.getHeadersMap();
|
|
16655
|
-
this.data.headersMap.forEach(
|
|
16656
|
-
([key, value]) => {
|
|
16657
|
-
headersMap.set(key, value);
|
|
16658
|
-
}
|
|
16659
|
-
);
|
|
16660
|
-
}
|
|
16661
|
-
nodeData.setConfig(config);
|
|
17722
|
+
const nodeData = _RestAPINode.createProtobufNode(
|
|
17723
|
+
this.data
|
|
17724
|
+
);
|
|
16662
17725
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16663
17726
|
if (inputValue) {
|
|
16664
17727
|
request.setInput(inputValue);
|
|
@@ -16688,6 +17751,31 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16688
17751
|
constructor(props) {
|
|
16689
17752
|
super({ ...props, type: import_types13.NodeType.ContractRead, data: props.data });
|
|
16690
17753
|
}
|
|
17754
|
+
/**
|
|
17755
|
+
* Create a protobuf ContractReadNode from config data
|
|
17756
|
+
* @param configData - The configuration data for the contract read node
|
|
17757
|
+
* @returns Configured avs_pb.ContractReadNode
|
|
17758
|
+
*/
|
|
17759
|
+
static createProtobufNode(configData) {
|
|
17760
|
+
const node = new avs_pb13.ContractReadNode();
|
|
17761
|
+
const config = new avs_pb13.ContractReadNode.Config();
|
|
17762
|
+
config.setContractAddress(configData.contractAddress);
|
|
17763
|
+
config.setContractAbi(configData.contractAbi);
|
|
17764
|
+
const methodCalls = configData.methodCalls || [];
|
|
17765
|
+
methodCalls.forEach((methodCall) => {
|
|
17766
|
+
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
17767
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
17768
|
+
if (methodCall.methodName) {
|
|
17769
|
+
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17770
|
+
}
|
|
17771
|
+
if (methodCall.applyToFields) {
|
|
17772
|
+
methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
|
|
17773
|
+
}
|
|
17774
|
+
config.addMethodCalls(methodCallMsg);
|
|
17775
|
+
});
|
|
17776
|
+
node.setConfig(config);
|
|
17777
|
+
return node;
|
|
17778
|
+
}
|
|
16691
17779
|
static fromResponse(raw) {
|
|
16692
17780
|
const obj = raw.toObject();
|
|
16693
17781
|
const protobufData = raw.getContractRead().getConfig().toObject();
|
|
@@ -16715,27 +17803,9 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16715
17803
|
const request = new avs_pb13.TaskNode();
|
|
16716
17804
|
request.setId(this.id);
|
|
16717
17805
|
request.setName(this.name);
|
|
16718
|
-
const node =
|
|
16719
|
-
|
|
16720
|
-
config.setContractAddress(
|
|
16721
|
-
this.data.contractAddress
|
|
16722
|
-
);
|
|
16723
|
-
config.setContractAbi(this.data.contractAbi);
|
|
16724
|
-
const methodCalls = this.data.methodCalls || [];
|
|
16725
|
-
methodCalls.forEach(
|
|
16726
|
-
(methodCall) => {
|
|
16727
|
-
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
16728
|
-
methodCallMsg.setCallData(methodCall.callData);
|
|
16729
|
-
if (methodCall.methodName) {
|
|
16730
|
-
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16731
|
-
}
|
|
16732
|
-
if (methodCall.applyToFields) {
|
|
16733
|
-
methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
|
|
16734
|
-
}
|
|
16735
|
-
config.addMethodCalls(methodCallMsg);
|
|
16736
|
-
}
|
|
17806
|
+
const node = _ContractReadNode.createProtobufNode(
|
|
17807
|
+
this.data
|
|
16737
17808
|
);
|
|
16738
|
-
node.setConfig(config);
|
|
16739
17809
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16740
17810
|
if (inputValue) {
|
|
16741
17811
|
request.setInput(inputValue);
|
|
@@ -16773,6 +17843,19 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
16773
17843
|
constructor(props) {
|
|
16774
17844
|
super({ ...props, type: import_types14.NodeType.ETHTransfer, data: props.data });
|
|
16775
17845
|
}
|
|
17846
|
+
/**
|
|
17847
|
+
* Create a protobuf ETHTransferNode from config data
|
|
17848
|
+
* @param configData - The configuration data for the ETH transfer node
|
|
17849
|
+
* @returns Configured avs_pb.ETHTransferNode
|
|
17850
|
+
*/
|
|
17851
|
+
static createProtobufNode(configData) {
|
|
17852
|
+
const node = new avs_pb14.ETHTransferNode();
|
|
17853
|
+
const config = new avs_pb14.ETHTransferNode.Config();
|
|
17854
|
+
config.setDestination(configData.destination);
|
|
17855
|
+
config.setAmount(configData.amount);
|
|
17856
|
+
node.setConfig(config);
|
|
17857
|
+
return node;
|
|
17858
|
+
}
|
|
16776
17859
|
static fromResponse(raw) {
|
|
16777
17860
|
const obj = raw.toObject();
|
|
16778
17861
|
const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
|
|
@@ -16787,11 +17870,9 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
16787
17870
|
const request = new avs_pb14.TaskNode();
|
|
16788
17871
|
request.setId(this.id);
|
|
16789
17872
|
request.setName(this.name);
|
|
16790
|
-
const node =
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
config.setAmount(this.data.amount);
|
|
16794
|
-
node.setConfig(config);
|
|
17873
|
+
const node = _ETHTransferNode.createProtobufNode(
|
|
17874
|
+
this.data
|
|
17875
|
+
);
|
|
16795
17876
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16796
17877
|
if (inputValue) {
|
|
16797
17878
|
node.setInput(inputValue);
|
|
@@ -16922,13 +18003,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16922
18003
|
const loopNodeData = loopNode.toObject();
|
|
16923
18004
|
const data = {
|
|
16924
18005
|
...configData,
|
|
16925
|
-
//
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
graphqlDataQuery: loopNodeData.graphqlDataQuery
|
|
18006
|
+
// Extract runner data from the oneof runner field
|
|
18007
|
+
runner: this.extractRunnerFromProtobuf(loopNodeData),
|
|
18008
|
+
// Map execution mode from protobuf enum to ExecutionMode enum
|
|
18009
|
+
executionMode: this.mapExecutionModeFromProtobuf(
|
|
18010
|
+
configData?.executionMode
|
|
18011
|
+
)
|
|
16932
18012
|
};
|
|
16933
18013
|
let input = void 0;
|
|
16934
18014
|
if (raw.hasInput()) {
|
|
@@ -16941,6 +18021,54 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16941
18021
|
input
|
|
16942
18022
|
});
|
|
16943
18023
|
}
|
|
18024
|
+
static extractRunnerFromProtobuf(loopNodeData) {
|
|
18025
|
+
if (loopNodeData.restApi) {
|
|
18026
|
+
return { type: "restApi", data: loopNodeData.restApi };
|
|
18027
|
+
} else if (loopNodeData.customCode) {
|
|
18028
|
+
return { type: "customCode", data: loopNodeData.customCode };
|
|
18029
|
+
} else if (loopNodeData.ethTransfer) {
|
|
18030
|
+
return { type: "ethTransfer", data: loopNodeData.ethTransfer };
|
|
18031
|
+
} else if (loopNodeData.contractRead) {
|
|
18032
|
+
return { type: "contractRead", data: loopNodeData.contractRead };
|
|
18033
|
+
} else if (loopNodeData.contractWrite) {
|
|
18034
|
+
return { type: "contractWrite", data: loopNodeData.contractWrite };
|
|
18035
|
+
} else if (loopNodeData.graphqlDataQuery) {
|
|
18036
|
+
return { type: "graphqlDataQuery", data: loopNodeData.graphqlDataQuery };
|
|
18037
|
+
}
|
|
18038
|
+
return null;
|
|
18039
|
+
}
|
|
18040
|
+
static mapExecutionModeFromProtobuf(executionMode) {
|
|
18041
|
+
switch (executionMode) {
|
|
18042
|
+
case 0:
|
|
18043
|
+
return import_types17.ExecutionMode.Sequential;
|
|
18044
|
+
case 1:
|
|
18045
|
+
return import_types17.ExecutionMode.Parallel;
|
|
18046
|
+
default:
|
|
18047
|
+
return import_types17.ExecutionMode.Sequential;
|
|
18048
|
+
}
|
|
18049
|
+
}
|
|
18050
|
+
mapExecutionModeToProtobuf(executionMode) {
|
|
18051
|
+
if (!executionMode) {
|
|
18052
|
+
return 0;
|
|
18053
|
+
}
|
|
18054
|
+
if (typeof executionMode === "string") {
|
|
18055
|
+
switch (executionMode.toLowerCase()) {
|
|
18056
|
+
case "parallel":
|
|
18057
|
+
return 1;
|
|
18058
|
+
case "sequential":
|
|
18059
|
+
default:
|
|
18060
|
+
return 0;
|
|
18061
|
+
}
|
|
18062
|
+
} else {
|
|
18063
|
+
switch (executionMode) {
|
|
18064
|
+
case import_types17.ExecutionMode.Parallel:
|
|
18065
|
+
return 1;
|
|
18066
|
+
case import_types17.ExecutionMode.Sequential:
|
|
18067
|
+
default:
|
|
18068
|
+
return 0;
|
|
18069
|
+
}
|
|
18070
|
+
}
|
|
18071
|
+
}
|
|
16944
18072
|
toRequest() {
|
|
16945
18073
|
const node = new avs_pb17.TaskNode();
|
|
16946
18074
|
const loopNode = new avs_pb17.LoopNode();
|
|
@@ -16951,113 +18079,103 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16951
18079
|
config.setSourceId(data.sourceId || "");
|
|
16952
18080
|
config.setIterVal(data.iterVal || "");
|
|
16953
18081
|
config.setIterKey(data.iterKey || "");
|
|
18082
|
+
const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
|
|
18083
|
+
config.setExecutionMode(executionMode);
|
|
16954
18084
|
loopNode.setConfig(config);
|
|
16955
18085
|
const inputValue = convertInputToProtobuf(this.input);
|
|
16956
18086
|
if (inputValue) {
|
|
16957
18087
|
node.setInput(inputValue);
|
|
16958
18088
|
}
|
|
16959
|
-
if (data.
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
|
|
16968
|
-
}
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
const
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
(methodCall) => {
|
|
16980
|
-
const methodCallMsg = new avs_pb17.ContractWriteNode.MethodCall();
|
|
16981
|
-
methodCallMsg.setCallData(methodCall.callData);
|
|
16982
|
-
if (methodCall.methodName) {
|
|
16983
|
-
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16984
|
-
}
|
|
16985
|
-
config2.addMethodCalls(methodCallMsg);
|
|
16986
|
-
}
|
|
16987
|
-
);
|
|
16988
|
-
contractWrite.setConfig(config2);
|
|
16989
|
-
}
|
|
16990
|
-
loopNode.setContractWrite(contractWrite);
|
|
16991
|
-
} else if (data.contractRead) {
|
|
16992
|
-
const contractRead = new avs_pb17.ContractReadNode();
|
|
16993
|
-
if (data.contractRead.config) {
|
|
16994
|
-
const config2 = new avs_pb17.ContractReadNode.Config();
|
|
16995
|
-
config2.setContractAddress(
|
|
16996
|
-
data.contractRead.config.contractAddress
|
|
16997
|
-
);
|
|
16998
|
-
config2.setContractAbi(data.contractRead.config.contractAbi);
|
|
16999
|
-
const methodCalls = data.contractRead.config.methodCallsList || [];
|
|
17000
|
-
methodCalls.forEach(
|
|
17001
|
-
(methodCall) => {
|
|
17002
|
-
const methodCallMsg = new avs_pb17.ContractReadNode.MethodCall();
|
|
17003
|
-
methodCallMsg.setCallData(methodCall.callData);
|
|
17004
|
-
if (methodCall.methodName) {
|
|
17005
|
-
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17006
|
-
}
|
|
17007
|
-
if (methodCall.applyToFields) {
|
|
17008
|
-
methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
|
|
17009
|
-
}
|
|
17010
|
-
config2.addMethodCalls(methodCallMsg);
|
|
17011
|
-
}
|
|
17012
|
-
);
|
|
17013
|
-
contractRead.setConfig(config2);
|
|
17014
|
-
}
|
|
17015
|
-
loopNode.setContractRead(contractRead);
|
|
17016
|
-
} else if (data.graphqlDataQuery) {
|
|
17017
|
-
const graphqlQuery = new avs_pb17.GraphQLQueryNode();
|
|
17018
|
-
if (data.graphqlDataQuery.config) {
|
|
17019
|
-
const config2 = new avs_pb17.GraphQLQueryNode.Config();
|
|
17020
|
-
config2.setUrl(data.graphqlDataQuery.config.url);
|
|
17021
|
-
config2.setQuery(data.graphqlDataQuery.config.query);
|
|
17022
|
-
if (data.graphqlDataQuery.config.variablesMap && data.graphqlDataQuery.config.variablesMap.length > 0) {
|
|
17023
|
-
data.graphqlDataQuery.config.variablesMap.forEach(
|
|
17024
|
-
([key, value]) => {
|
|
17025
|
-
config2.getVariablesMap().set(key, value);
|
|
17026
|
-
}
|
|
17027
|
-
);
|
|
18089
|
+
if (data.runner) {
|
|
18090
|
+
this.setRunnerOnProtobuf(loopNode, data.runner);
|
|
18091
|
+
}
|
|
18092
|
+
node.setLoop(loopNode);
|
|
18093
|
+
return node;
|
|
18094
|
+
}
|
|
18095
|
+
setRunnerOnProtobuf(loopNode, runner) {
|
|
18096
|
+
if (!runner || !runner.type || !runner.data) {
|
|
18097
|
+
return;
|
|
18098
|
+
}
|
|
18099
|
+
switch (runner.type) {
|
|
18100
|
+
case "ethTransfer": {
|
|
18101
|
+
const ethTransferData = runner.data;
|
|
18102
|
+
if (ethTransferData.config) {
|
|
18103
|
+
const ethConfig = ethTransferData.config;
|
|
18104
|
+
const ethTransfer = ethTransfer_default.createProtobufNode({
|
|
18105
|
+
destination: ethConfig.destination,
|
|
18106
|
+
amount: ethConfig.amount
|
|
18107
|
+
});
|
|
18108
|
+
loopNode.setEthTransfer(ethTransfer);
|
|
17028
18109
|
}
|
|
17029
|
-
|
|
17030
|
-
}
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
18110
|
+
break;
|
|
18111
|
+
}
|
|
18112
|
+
case "contractWrite": {
|
|
18113
|
+
const contractWriteData = runner.data;
|
|
18114
|
+
if (contractWriteData.config) {
|
|
18115
|
+
const writeConfig = contractWriteData.config;
|
|
18116
|
+
const contractWrite = contractWrite_default.createProtobufNode({
|
|
18117
|
+
contractAddress: writeConfig.contractAddress,
|
|
18118
|
+
callData: writeConfig.callData,
|
|
18119
|
+
contractAbi: writeConfig.contractAbi,
|
|
18120
|
+
methodCalls: writeConfig.methodCallsList || []
|
|
18121
|
+
});
|
|
18122
|
+
loopNode.setContractWrite(contractWrite);
|
|
18123
|
+
}
|
|
18124
|
+
break;
|
|
18125
|
+
}
|
|
18126
|
+
case "contractRead": {
|
|
18127
|
+
const contractReadData = runner.data;
|
|
18128
|
+
if (contractReadData.config) {
|
|
18129
|
+
const readConfig = contractReadData.config;
|
|
18130
|
+
const contractRead = contractRead_default.createProtobufNode({
|
|
18131
|
+
contractAddress: readConfig.contractAddress,
|
|
18132
|
+
contractAbi: readConfig.contractAbi,
|
|
18133
|
+
methodCalls: readConfig.methodCallsList || []
|
|
18134
|
+
});
|
|
18135
|
+
loopNode.setContractRead(contractRead);
|
|
18136
|
+
}
|
|
18137
|
+
break;
|
|
18138
|
+
}
|
|
18139
|
+
case "graphqlDataQuery": {
|
|
18140
|
+
const graphqlData = runner.data;
|
|
18141
|
+
if (graphqlData.config) {
|
|
18142
|
+
const gqlConfig = graphqlData.config;
|
|
18143
|
+
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
18144
|
+
url: gqlConfig.url,
|
|
18145
|
+
query: gqlConfig.query,
|
|
18146
|
+
variablesMap: gqlConfig.variablesMap
|
|
18147
|
+
});
|
|
18148
|
+
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18149
|
+
}
|
|
18150
|
+
break;
|
|
18151
|
+
}
|
|
18152
|
+
case "restApi": {
|
|
18153
|
+
const restApiData = runner.data;
|
|
18154
|
+
if (restApiData.config) {
|
|
18155
|
+
const apiConfig = restApiData.config;
|
|
18156
|
+
const restApi = restApi_default.createProtobufNode({
|
|
18157
|
+
url: apiConfig.url,
|
|
18158
|
+
method: apiConfig.method,
|
|
18159
|
+
body: apiConfig.body || "",
|
|
18160
|
+
headersMap: apiConfig.headersMap
|
|
18161
|
+
});
|
|
18162
|
+
loopNode.setRestApi(restApi);
|
|
17045
18163
|
}
|
|
17046
|
-
|
|
18164
|
+
break;
|
|
17047
18165
|
}
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
|
|
17054
|
-
|
|
17055
|
-
|
|
18166
|
+
case "customCode": {
|
|
18167
|
+
const customCodeData = runner.data;
|
|
18168
|
+
if (customCodeData.config) {
|
|
18169
|
+
const codeConfig = customCodeData.config;
|
|
18170
|
+
const customCode = customCode_default.createProtobufNode({
|
|
18171
|
+
lang: codeConfig.lang,
|
|
18172
|
+
source: codeConfig.source
|
|
18173
|
+
});
|
|
18174
|
+
loopNode.setCustomCode(customCode);
|
|
18175
|
+
}
|
|
18176
|
+
break;
|
|
17056
18177
|
}
|
|
17057
|
-
loopNode.setCustomCode(customCode);
|
|
17058
18178
|
}
|
|
17059
|
-
node.setLoop(loopNode);
|
|
17060
|
-
return node;
|
|
17061
18179
|
}
|
|
17062
18180
|
static fromOutputData(outputData) {
|
|
17063
18181
|
const customCodeOutput = outputData.getCustomCode();
|
|
@@ -17074,7 +18192,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17074
18192
|
if (loopObj.data && typeof loopObj.data === "string") {
|
|
17075
18193
|
try {
|
|
17076
18194
|
return JSON.parse(loopObj.data);
|
|
17077
|
-
} catch
|
|
18195
|
+
} catch {
|
|
17078
18196
|
return loopObj.data;
|
|
17079
18197
|
}
|
|
17080
18198
|
}
|
|
@@ -18174,6 +19292,30 @@ var Client = class extends BaseClient {
|
|
|
18174
19292
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
18175
19293
|
return result.getTotal();
|
|
18176
19294
|
}
|
|
19295
|
+
/**
|
|
19296
|
+
* Get execution statistics for a specified time period
|
|
19297
|
+
* @param {GetExecutionStatsOptions} options - Request options
|
|
19298
|
+
* @param {string[]} [options.workflowIds] - Optional array of workflow IDs
|
|
19299
|
+
* @param {number} [options.days] - Number of days to look back (default: 7)
|
|
19300
|
+
* @param {string} [options.authKey] - The auth key for the request
|
|
19301
|
+
* @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
|
|
19302
|
+
*/
|
|
19303
|
+
async getExecutionStats(options) {
|
|
19304
|
+
const request = new avs_pb22.GetExecutionStatsReq();
|
|
19305
|
+
if (options?.workflowIds && options.workflowIds.length > 0) {
|
|
19306
|
+
request.setWorkflowIdsList(options.workflowIds);
|
|
19307
|
+
}
|
|
19308
|
+
if (options?.days) {
|
|
19309
|
+
request.setDays(options.days);
|
|
19310
|
+
}
|
|
19311
|
+
const result = await this.sendGrpcRequest("getExecutionStats", request, options);
|
|
19312
|
+
return {
|
|
19313
|
+
total: result.getTotal(),
|
|
19314
|
+
succeeded: result.getSucceeded(),
|
|
19315
|
+
failed: result.getFailed(),
|
|
19316
|
+
avgExecutionTime: result.getAvgExecutionTime()
|
|
19317
|
+
};
|
|
19318
|
+
}
|
|
18177
19319
|
/**
|
|
18178
19320
|
* Get the status of an execution
|
|
18179
19321
|
* @param {string} workflowId - The workflow id (taskId)
|
|
@@ -18283,33 +19425,39 @@ var Client = class extends BaseClient {
|
|
|
18283
19425
|
* Cancel a workflow
|
|
18284
19426
|
* @param {string} id - The workflow id
|
|
18285
19427
|
* @param {RequestOptions} options - Request options
|
|
18286
|
-
* @returns {Promise<
|
|
19428
|
+
* @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
|
|
18287
19429
|
*/
|
|
18288
19430
|
async cancelWorkflow(id, options) {
|
|
18289
19431
|
const request = new avs_pb22.IdReq();
|
|
18290
19432
|
request.setId(id);
|
|
18291
|
-
const result = await this.sendGrpcRequest(
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
19433
|
+
const result = await this.sendGrpcRequest("cancelTask", request, options);
|
|
19434
|
+
return {
|
|
19435
|
+
success: result.getSuccess(),
|
|
19436
|
+
status: result.getStatus(),
|
|
19437
|
+
message: result.getMessage(),
|
|
19438
|
+
cancelledAt: result.getCancelledAt() || void 0,
|
|
19439
|
+
id: result.getId(),
|
|
19440
|
+
previousStatus: result.getPreviousStatus()
|
|
19441
|
+
};
|
|
18297
19442
|
}
|
|
18298
19443
|
/**
|
|
18299
19444
|
* Delete a workflow
|
|
18300
19445
|
* @param {string} id - The workflow id
|
|
18301
19446
|
* @param {RequestOptions} options - Request options
|
|
18302
|
-
* @returns {Promise<
|
|
19447
|
+
* @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
|
|
18303
19448
|
*/
|
|
18304
19449
|
async deleteWorkflow(id, options) {
|
|
18305
19450
|
const request = new avs_pb22.IdReq();
|
|
18306
19451
|
request.setId(id);
|
|
18307
|
-
const result = await this.sendGrpcRequest(
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
19452
|
+
const result = await this.sendGrpcRequest("deleteTask", request, options);
|
|
19453
|
+
return {
|
|
19454
|
+
success: result.getSuccess(),
|
|
19455
|
+
status: result.getStatus(),
|
|
19456
|
+
message: result.getMessage(),
|
|
19457
|
+
deletedAt: result.getDeletedAt() || void 0,
|
|
19458
|
+
id: result.getId(),
|
|
19459
|
+
previousStatus: result.getPreviousStatus()
|
|
19460
|
+
};
|
|
18313
19461
|
}
|
|
18314
19462
|
/**
|
|
18315
19463
|
* Create a new secret
|
|
@@ -18319,7 +19467,7 @@ var Client = class extends BaseClient {
|
|
|
18319
19467
|
* @param {string} [options.workflowId] - The workflow ID to associate the secret with
|
|
18320
19468
|
* @param {string} [options.orgId] - The organization ID to associate the secret with
|
|
18321
19469
|
* @param {string} [options.authKey] - The auth key for the request
|
|
18322
|
-
* @returns {Promise<
|
|
19470
|
+
* @returns {Promise<CreateSecretResponse>} - Structured response with creation details
|
|
18323
19471
|
*/
|
|
18324
19472
|
async createSecret(name, value, options) {
|
|
18325
19473
|
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
@@ -18332,7 +19480,14 @@ var Client = class extends BaseClient {
|
|
|
18332
19480
|
request.setOrgId(options.orgId);
|
|
18333
19481
|
}
|
|
18334
19482
|
const result = await this.sendGrpcRequest("createSecret", request, options);
|
|
18335
|
-
return
|
|
19483
|
+
return {
|
|
19484
|
+
success: result.getSuccess(),
|
|
19485
|
+
status: result.getStatus(),
|
|
19486
|
+
message: result.getMessage(),
|
|
19487
|
+
createdAt: result.getCreatedAt() || void 0,
|
|
19488
|
+
secretName: result.getSecretName(),
|
|
19489
|
+
scope: result.getScope()
|
|
19490
|
+
};
|
|
18336
19491
|
}
|
|
18337
19492
|
/**
|
|
18338
19493
|
* Update a secret
|
|
@@ -18342,7 +19497,7 @@ var Client = class extends BaseClient {
|
|
|
18342
19497
|
* @param {string} [options.workflowId] - The workflow ID to associate the secret with
|
|
18343
19498
|
* @param {string} [options.orgId] - The organization ID to associate the secret with
|
|
18344
19499
|
* @param {string} [options.authKey] - The auth key for the request
|
|
18345
|
-
* @returns {Promise<
|
|
19500
|
+
* @returns {Promise<UpdateSecretResponse>} - Structured response with update details
|
|
18346
19501
|
*/
|
|
18347
19502
|
async updateSecret(name, value, options) {
|
|
18348
19503
|
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
@@ -18355,7 +19510,14 @@ var Client = class extends BaseClient {
|
|
|
18355
19510
|
request.setOrgId(options.orgId);
|
|
18356
19511
|
}
|
|
18357
19512
|
const result = await this.sendGrpcRequest("updateSecret", request, options);
|
|
18358
|
-
return
|
|
19513
|
+
return {
|
|
19514
|
+
success: result.getSuccess(),
|
|
19515
|
+
status: result.getStatus(),
|
|
19516
|
+
message: result.getMessage(),
|
|
19517
|
+
updatedAt: result.getUpdatedAt() || void 0,
|
|
19518
|
+
secretName: result.getSecretName(),
|
|
19519
|
+
scope: result.getScope()
|
|
19520
|
+
};
|
|
18359
19521
|
}
|
|
18360
19522
|
/**
|
|
18361
19523
|
* Get the list of secrets
|
|
@@ -18424,7 +19586,7 @@ var Client = class extends BaseClient {
|
|
|
18424
19586
|
* @param {string} [options.workflowId] - The workflow ID to associate the secret with
|
|
18425
19587
|
* @param {string} [options.orgId] - The organization ID to associate the secret with
|
|
18426
19588
|
* @param {string} [options.authKey] - The auth key for the request
|
|
18427
|
-
* @returns {Promise<
|
|
19589
|
+
* @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
|
|
18428
19590
|
*/
|
|
18429
19591
|
async deleteSecret(name, options) {
|
|
18430
19592
|
const request = new avs_pb22.DeleteSecretReq();
|
|
@@ -18436,7 +19598,14 @@ var Client = class extends BaseClient {
|
|
|
18436
19598
|
request.setOrgId(options.orgId);
|
|
18437
19599
|
}
|
|
18438
19600
|
const result = await this.sendGrpcRequest("deleteSecret", request, options);
|
|
18439
|
-
return
|
|
19601
|
+
return {
|
|
19602
|
+
success: result.getSuccess(),
|
|
19603
|
+
status: result.getStatus(),
|
|
19604
|
+
message: result.getMessage(),
|
|
19605
|
+
deletedAt: result.getDeletedAt() || void 0,
|
|
19606
|
+
secretName: result.getSecretName(),
|
|
19607
|
+
scope: result.getScope()
|
|
19608
|
+
};
|
|
18440
19609
|
}
|
|
18441
19610
|
/**
|
|
18442
19611
|
* Run a node with inputs for testing purposes
|