@avaprotocol/sdk-js 2.6.11 → 2.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +203 -90
- package/dist/index.mjs +203 -90
- package/dist/models/node/contractRead.js +2 -2
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +6 -5
- package/dist/models/node/graphqlQuery.d.ts +21 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +13 -6
- package/dist/models/node/loop.js +1 -1
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +0 -1
- package/dist/models/step.d.ts +29 -0
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +56 -11
- package/dist/utils.d.ts +77 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +19 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @avaprotocol/sdk-js
|
|
2
2
|
|
|
3
|
+
## 2.6.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 98dfca0: Added executionContext to runNode response
|
|
8
|
+
- Updated dependencies [98dfca0]
|
|
9
|
+
- @avaprotocol/types@2.4.11
|
|
10
|
+
|
|
11
|
+
## 2.6.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 56d89ae: Updated ContractWrite protobuf conversion
|
|
16
|
+
- Updated dependencies [56d89ae]
|
|
17
|
+
- @avaprotocol/types@2.4.10
|
|
18
|
+
|
|
3
19
|
## 2.6.11
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts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EAAE,EAAE,uBAAuB,EACvE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,CAAC;IAuC1B;;;;;;OAMG;IACG,gBAAgB,CACpB,EAAE,OAAO,EAAE,EAAE,uBAAuB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,wBAAwB,CAAC;CAwBrC;AAED,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,WAAW,EACX,cAAc,EACd,MAAM,EACN,qBAAqB,GACtB,CAAC;AAGF,YAAY,EACV,aAAa,EACb,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -51,10 +51,6 @@ var require_avs_pb = __commonJS({
|
|
|
51
51
|
}
|
|
52
52
|
return Function("return this")();
|
|
53
53
|
}.call(null);
|
|
54
|
-
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
55
|
-
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
|
-
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
57
|
-
goog.object.extend(proto, google_protobuf_any_pb);
|
|
58
54
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
59
55
|
goog.object.extend(proto, google_protobuf_struct_pb5);
|
|
60
56
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
@@ -3723,8 +3719,7 @@ var require_avs_pb = __commonJS({
|
|
|
3723
3719
|
};
|
|
3724
3720
|
proto.aggregator.ContractWriteNode.Output.toObject = function(includeInstance, msg) {
|
|
3725
3721
|
var f, obj = {
|
|
3726
|
-
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3727
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3722
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3728
3723
|
};
|
|
3729
3724
|
if (includeInstance) {
|
|
3730
3725
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3749,11 +3744,6 @@ var require_avs_pb = __commonJS({
|
|
|
3749
3744
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3750
3745
|
msg.setData(value);
|
|
3751
3746
|
break;
|
|
3752
|
-
case 2:
|
|
3753
|
-
var value = new google_protobuf_struct_pb5.Value();
|
|
3754
|
-
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3755
|
-
msg.setMetadata(value);
|
|
3756
|
-
break;
|
|
3757
3747
|
default:
|
|
3758
3748
|
reader.skipField();
|
|
3759
3749
|
break;
|
|
@@ -3776,14 +3766,6 @@ var require_avs_pb = __commonJS({
|
|
|
3776
3766
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3777
3767
|
);
|
|
3778
3768
|
}
|
|
3779
|
-
f = message.getMetadata();
|
|
3780
|
-
if (f != null) {
|
|
3781
|
-
writer.writeMessage(
|
|
3782
|
-
2,
|
|
3783
|
-
f,
|
|
3784
|
-
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3785
|
-
);
|
|
3786
|
-
}
|
|
3787
3769
|
};
|
|
3788
3770
|
proto.aggregator.ContractWriteNode.Output.prototype.getData = function() {
|
|
3789
3771
|
return (
|
|
@@ -3800,21 +3782,6 @@ var require_avs_pb = __commonJS({
|
|
|
3800
3782
|
proto.aggregator.ContractWriteNode.Output.prototype.hasData = function() {
|
|
3801
3783
|
return jspb.Message.getField(this, 1) != null;
|
|
3802
3784
|
};
|
|
3803
|
-
proto.aggregator.ContractWriteNode.Output.prototype.getMetadata = function() {
|
|
3804
|
-
return (
|
|
3805
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3806
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
3807
|
-
);
|
|
3808
|
-
};
|
|
3809
|
-
proto.aggregator.ContractWriteNode.Output.prototype.setMetadata = function(value) {
|
|
3810
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3811
|
-
};
|
|
3812
|
-
proto.aggregator.ContractWriteNode.Output.prototype.clearMetadata = function() {
|
|
3813
|
-
return this.setMetadata(void 0);
|
|
3814
|
-
};
|
|
3815
|
-
proto.aggregator.ContractWriteNode.Output.prototype.hasMetadata = function() {
|
|
3816
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3817
|
-
};
|
|
3818
3785
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3819
3786
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
|
|
3820
3787
|
return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
|
|
@@ -4665,8 +4632,7 @@ var require_avs_pb = __commonJS({
|
|
|
4665
4632
|
};
|
|
4666
4633
|
proto.aggregator.ContractReadNode.Output.toObject = function(includeInstance, msg) {
|
|
4667
4634
|
var f, obj = {
|
|
4668
|
-
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4669
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4635
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4670
4636
|
};
|
|
4671
4637
|
if (includeInstance) {
|
|
4672
4638
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4691,11 +4657,6 @@ var require_avs_pb = __commonJS({
|
|
|
4691
4657
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4692
4658
|
msg.setData(value);
|
|
4693
4659
|
break;
|
|
4694
|
-
case 2:
|
|
4695
|
-
var value = new google_protobuf_struct_pb5.Value();
|
|
4696
|
-
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4697
|
-
msg.setMetadata(value);
|
|
4698
|
-
break;
|
|
4699
4660
|
default:
|
|
4700
4661
|
reader.skipField();
|
|
4701
4662
|
break;
|
|
@@ -4718,14 +4679,6 @@ var require_avs_pb = __commonJS({
|
|
|
4718
4679
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4719
4680
|
);
|
|
4720
4681
|
}
|
|
4721
|
-
f = message.getMetadata();
|
|
4722
|
-
if (f != null) {
|
|
4723
|
-
writer.writeMessage(
|
|
4724
|
-
2,
|
|
4725
|
-
f,
|
|
4726
|
-
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4727
|
-
);
|
|
4728
|
-
}
|
|
4729
4682
|
};
|
|
4730
4683
|
proto.aggregator.ContractReadNode.Output.prototype.getData = function() {
|
|
4731
4684
|
return (
|
|
@@ -4742,21 +4695,6 @@ var require_avs_pb = __commonJS({
|
|
|
4742
4695
|
proto.aggregator.ContractReadNode.Output.prototype.hasData = function() {
|
|
4743
4696
|
return jspb.Message.getField(this, 1) != null;
|
|
4744
4697
|
};
|
|
4745
|
-
proto.aggregator.ContractReadNode.Output.prototype.getMetadata = function() {
|
|
4746
|
-
return (
|
|
4747
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
4748
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
4749
|
-
);
|
|
4750
|
-
};
|
|
4751
|
-
proto.aggregator.ContractReadNode.Output.prototype.setMetadata = function(value) {
|
|
4752
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
4753
|
-
};
|
|
4754
|
-
proto.aggregator.ContractReadNode.Output.prototype.clearMetadata = function() {
|
|
4755
|
-
return this.setMetadata(void 0);
|
|
4756
|
-
};
|
|
4757
|
-
proto.aggregator.ContractReadNode.Output.prototype.hasMetadata = function() {
|
|
4758
|
-
return jspb.Message.getField(this, 2) != null;
|
|
4759
|
-
};
|
|
4760
4698
|
proto.aggregator.ContractReadNode.prototype.getConfig = function() {
|
|
4761
4699
|
return (
|
|
4762
4700
|
/** @type{?proto.aggregator.ContractReadNode.Config} */
|
|
@@ -7217,6 +7155,8 @@ var require_avs_pb = __commonJS({
|
|
|
7217
7155
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
7218
7156
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
7219
7157
|
config: (f = msg.getConfig()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7158
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7159
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7220
7160
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
7221
7161
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
7222
7162
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -7306,6 +7246,16 @@ var require_avs_pb = __commonJS({
|
|
|
7306
7246
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7307
7247
|
msg.setConfig(value);
|
|
7308
7248
|
break;
|
|
7249
|
+
case 25:
|
|
7250
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7251
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7252
|
+
msg.setMetadata(value);
|
|
7253
|
+
break;
|
|
7254
|
+
case 26:
|
|
7255
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7256
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7257
|
+
msg.setExecutionContext(value);
|
|
7258
|
+
break;
|
|
7309
7259
|
case 20:
|
|
7310
7260
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
7311
7261
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -7461,6 +7411,22 @@ var require_avs_pb = __commonJS({
|
|
|
7461
7411
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7462
7412
|
);
|
|
7463
7413
|
}
|
|
7414
|
+
f = message.getMetadata();
|
|
7415
|
+
if (f != null) {
|
|
7416
|
+
writer.writeMessage(
|
|
7417
|
+
25,
|
|
7418
|
+
f,
|
|
7419
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7420
|
+
);
|
|
7421
|
+
}
|
|
7422
|
+
f = message.getExecutionContext();
|
|
7423
|
+
if (f != null) {
|
|
7424
|
+
writer.writeMessage(
|
|
7425
|
+
26,
|
|
7426
|
+
f,
|
|
7427
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7428
|
+
);
|
|
7429
|
+
}
|
|
7464
7430
|
f = message.getBlockTrigger();
|
|
7465
7431
|
if (f != null) {
|
|
7466
7432
|
writer.writeMessage(
|
|
@@ -7672,6 +7638,36 @@ var require_avs_pb = __commonJS({
|
|
|
7672
7638
|
proto.aggregator.Execution.Step.prototype.hasConfig = function() {
|
|
7673
7639
|
return jspb.Message.getField(this, 19) != null;
|
|
7674
7640
|
};
|
|
7641
|
+
proto.aggregator.Execution.Step.prototype.getMetadata = function() {
|
|
7642
|
+
return (
|
|
7643
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7644
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 25)
|
|
7645
|
+
);
|
|
7646
|
+
};
|
|
7647
|
+
proto.aggregator.Execution.Step.prototype.setMetadata = function(value) {
|
|
7648
|
+
return jspb.Message.setWrapperField(this, 25, value);
|
|
7649
|
+
};
|
|
7650
|
+
proto.aggregator.Execution.Step.prototype.clearMetadata = function() {
|
|
7651
|
+
return this.setMetadata(void 0);
|
|
7652
|
+
};
|
|
7653
|
+
proto.aggregator.Execution.Step.prototype.hasMetadata = function() {
|
|
7654
|
+
return jspb.Message.getField(this, 25) != null;
|
|
7655
|
+
};
|
|
7656
|
+
proto.aggregator.Execution.Step.prototype.getExecutionContext = function() {
|
|
7657
|
+
return (
|
|
7658
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7659
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 26)
|
|
7660
|
+
);
|
|
7661
|
+
};
|
|
7662
|
+
proto.aggregator.Execution.Step.prototype.setExecutionContext = function(value) {
|
|
7663
|
+
return jspb.Message.setWrapperField(this, 26, value);
|
|
7664
|
+
};
|
|
7665
|
+
proto.aggregator.Execution.Step.prototype.clearExecutionContext = function() {
|
|
7666
|
+
return this.setExecutionContext(void 0);
|
|
7667
|
+
};
|
|
7668
|
+
proto.aggregator.Execution.Step.prototype.hasExecutionContext = function() {
|
|
7669
|
+
return jspb.Message.getField(this, 26) != null;
|
|
7670
|
+
};
|
|
7675
7671
|
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
7676
7672
|
return (
|
|
7677
7673
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -13641,6 +13637,7 @@ var require_avs_pb = __commonJS({
|
|
|
13641
13637
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13642
13638
|
nodeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13643
13639
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
13640
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
13644
13641
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
13645
13642
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
13646
13643
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -13695,6 +13692,11 @@ var require_avs_pb = __commonJS({
|
|
|
13695
13692
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
13696
13693
|
msg.setMetadata(value);
|
|
13697
13694
|
break;
|
|
13695
|
+
case 6:
|
|
13696
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
13697
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
13698
|
+
msg.setExecutionContext(value);
|
|
13699
|
+
break;
|
|
13698
13700
|
case 10:
|
|
13699
13701
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
13700
13702
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -13783,6 +13785,14 @@ var require_avs_pb = __commonJS({
|
|
|
13783
13785
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
13784
13786
|
);
|
|
13785
13787
|
}
|
|
13788
|
+
f = message.getExecutionContext();
|
|
13789
|
+
if (f != null) {
|
|
13790
|
+
writer.writeMessage(
|
|
13791
|
+
6,
|
|
13792
|
+
f,
|
|
13793
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
13794
|
+
);
|
|
13795
|
+
}
|
|
13786
13796
|
f = message.getEthTransfer();
|
|
13787
13797
|
if (f != null) {
|
|
13788
13798
|
writer.writeMessage(
|
|
@@ -13898,6 +13908,21 @@ var require_avs_pb = __commonJS({
|
|
|
13898
13908
|
proto.aggregator.RunNodeWithInputsResp.prototype.hasMetadata = function() {
|
|
13899
13909
|
return jspb.Message.getField(this, 5) != null;
|
|
13900
13910
|
};
|
|
13911
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.getExecutionContext = function() {
|
|
13912
|
+
return (
|
|
13913
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
13914
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 6)
|
|
13915
|
+
);
|
|
13916
|
+
};
|
|
13917
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.setExecutionContext = function(value) {
|
|
13918
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
13919
|
+
};
|
|
13920
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.clearExecutionContext = function() {
|
|
13921
|
+
return this.setExecutionContext(void 0);
|
|
13922
|
+
};
|
|
13923
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.hasExecutionContext = function() {
|
|
13924
|
+
return jspb.Message.getField(this, 6) != null;
|
|
13925
|
+
};
|
|
13901
13926
|
proto.aggregator.RunNodeWithInputsResp.prototype.getEthTransfer = function() {
|
|
13902
13927
|
return (
|
|
13903
13928
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -14174,6 +14199,7 @@ var require_avs_pb = __commonJS({
|
|
|
14174
14199
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14175
14200
|
triggerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14176
14201
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14202
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14177
14203
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
14178
14204
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
14179
14205
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -14224,6 +14250,11 @@ var require_avs_pb = __commonJS({
|
|
|
14224
14250
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14225
14251
|
msg.setMetadata(value);
|
|
14226
14252
|
break;
|
|
14253
|
+
case 5:
|
|
14254
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
14255
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14256
|
+
msg.setExecutionContext(value);
|
|
14257
|
+
break;
|
|
14227
14258
|
case 10:
|
|
14228
14259
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
14229
14260
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -14292,6 +14323,14 @@ var require_avs_pb = __commonJS({
|
|
|
14292
14323
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14293
14324
|
);
|
|
14294
14325
|
}
|
|
14326
|
+
f = message.getExecutionContext();
|
|
14327
|
+
if (f != null) {
|
|
14328
|
+
writer.writeMessage(
|
|
14329
|
+
5,
|
|
14330
|
+
f,
|
|
14331
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14332
|
+
);
|
|
14333
|
+
}
|
|
14295
14334
|
f = message.getBlockTrigger();
|
|
14296
14335
|
if (f != null) {
|
|
14297
14336
|
writer.writeMessage(
|
|
@@ -14375,6 +14414,21 @@ var require_avs_pb = __commonJS({
|
|
|
14375
14414
|
proto.aggregator.RunTriggerResp.prototype.hasMetadata = function() {
|
|
14376
14415
|
return jspb.Message.getField(this, 4) != null;
|
|
14377
14416
|
};
|
|
14417
|
+
proto.aggregator.RunTriggerResp.prototype.getExecutionContext = function() {
|
|
14418
|
+
return (
|
|
14419
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
14420
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
14421
|
+
);
|
|
14422
|
+
};
|
|
14423
|
+
proto.aggregator.RunTriggerResp.prototype.setExecutionContext = function(value) {
|
|
14424
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
14425
|
+
};
|
|
14426
|
+
proto.aggregator.RunTriggerResp.prototype.clearExecutionContext = function() {
|
|
14427
|
+
return this.setExecutionContext(void 0);
|
|
14428
|
+
};
|
|
14429
|
+
proto.aggregator.RunTriggerResp.prototype.hasExecutionContext = function() {
|
|
14430
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14431
|
+
};
|
|
14378
14432
|
proto.aggregator.RunTriggerResp.prototype.getBlockTrigger = function() {
|
|
14379
14433
|
return (
|
|
14380
14434
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -14839,8 +14893,6 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14839
14893
|
"use strict";
|
|
14840
14894
|
var grpc = require("@grpc/grpc-js");
|
|
14841
14895
|
var avs_pb23 = require_avs_pb();
|
|
14842
|
-
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
14843
|
-
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
14844
14896
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
14845
14897
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
14846
14898
|
if (!(arg instanceof avs_pb23.CancelTaskResp)) {
|
|
@@ -15892,6 +15944,19 @@ function convertJSValueToProtobuf(value) {
|
|
|
15892
15944
|
}
|
|
15893
15945
|
return protobufValue;
|
|
15894
15946
|
}
|
|
15947
|
+
function toCamelCaseKeys(input) {
|
|
15948
|
+
if (input === null || input === void 0) return input;
|
|
15949
|
+
if (Array.isArray(input)) {
|
|
15950
|
+
return input.map((item) => toCamelCaseKeys(item));
|
|
15951
|
+
}
|
|
15952
|
+
if (typeof input !== "object") return input;
|
|
15953
|
+
const result = {};
|
|
15954
|
+
for (const [key, value] of Object.entries(input)) {
|
|
15955
|
+
const camelKey = key.replace(/_([a-z])/g, (_4, c) => c.toUpperCase());
|
|
15956
|
+
result[camelKey] = toCamelCaseKeys(value);
|
|
15957
|
+
}
|
|
15958
|
+
return result;
|
|
15959
|
+
}
|
|
15895
15960
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
15896
15961
|
switch (protobufType) {
|
|
15897
15962
|
case "TRIGGER_TYPE_MANUAL":
|
|
@@ -16487,7 +16552,7 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16487
16552
|
return value;
|
|
16488
16553
|
});
|
|
16489
16554
|
config.setContractAbiList(abiValueList);
|
|
16490
|
-
const methodCalls = configData.methodCalls
|
|
16555
|
+
const methodCalls = configData.methodCalls;
|
|
16491
16556
|
methodCalls.forEach((methodCall) => {
|
|
16492
16557
|
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16493
16558
|
if (methodCall.callData) {
|
|
@@ -16625,9 +16690,9 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16625
16690
|
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
16626
16691
|
config.setUrl(configData.url);
|
|
16627
16692
|
config.setQuery(configData.query);
|
|
16628
|
-
if (configData.
|
|
16693
|
+
if (configData.variables && Object.keys(configData.variables).length > 0) {
|
|
16629
16694
|
const variablesMap = config.getVariablesMap();
|
|
16630
|
-
configData.
|
|
16695
|
+
Object.entries(configData.variables).forEach(([key, value]) => {
|
|
16631
16696
|
variablesMap.set(key, value);
|
|
16632
16697
|
});
|
|
16633
16698
|
}
|
|
@@ -16636,10 +16701,20 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16636
16701
|
}
|
|
16637
16702
|
static fromResponse(raw) {
|
|
16638
16703
|
const obj = raw.toObject();
|
|
16704
|
+
const config = raw.getGraphqlQuery().getConfig();
|
|
16705
|
+
const variablesMap = config.getVariablesMap();
|
|
16706
|
+
const variables = {};
|
|
16707
|
+
variablesMap.forEach((value, key) => {
|
|
16708
|
+
variables[key] = value;
|
|
16709
|
+
});
|
|
16639
16710
|
return new _GraphQLQueryNode({
|
|
16640
16711
|
...obj,
|
|
16641
16712
|
type: import_types11.NodeType.GraphQLQuery,
|
|
16642
|
-
data:
|
|
16713
|
+
data: {
|
|
16714
|
+
url: config.getUrl(),
|
|
16715
|
+
query: config.getQuery(),
|
|
16716
|
+
variables
|
|
16717
|
+
}
|
|
16643
16718
|
});
|
|
16644
16719
|
}
|
|
16645
16720
|
toRequest() {
|
|
@@ -16726,7 +16801,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
16726
16801
|
static fromOutputData(outputData) {
|
|
16727
16802
|
const restApiOutput = outputData.getRestApi();
|
|
16728
16803
|
if (!restApiOutput) {
|
|
16729
|
-
console.log("Debug RestAPI: No restApiOutput found");
|
|
16730
16804
|
return null;
|
|
16731
16805
|
}
|
|
16732
16806
|
const rawData = restApiOutput.getData();
|
|
@@ -16763,7 +16837,7 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16763
16837
|
return value;
|
|
16764
16838
|
});
|
|
16765
16839
|
config.setContractAbiList(abiValueList);
|
|
16766
|
-
const methodCalls = configData.methodCalls
|
|
16840
|
+
const methodCalls = configData.methodCalls;
|
|
16767
16841
|
methodCalls.forEach((methodCall) => {
|
|
16768
16842
|
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
16769
16843
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
@@ -17133,7 +17207,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17133
17207
|
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
17134
17208
|
url: gqlConfig.url,
|
|
17135
17209
|
query: gqlConfig.query,
|
|
17136
|
-
|
|
17210
|
+
variables: gqlConfig.variables
|
|
17137
17211
|
});
|
|
17138
17212
|
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
17139
17213
|
break;
|
|
@@ -17450,6 +17524,8 @@ var Step = class _Step {
|
|
|
17450
17524
|
this.output = props.output;
|
|
17451
17525
|
this.startAt = props.startAt;
|
|
17452
17526
|
this.endAt = props.endAt;
|
|
17527
|
+
this.metadata = props.metadata;
|
|
17528
|
+
this.executionContext = props.executionContext;
|
|
17453
17529
|
}
|
|
17454
17530
|
/**
|
|
17455
17531
|
* Convert Step instance to plain object (StepProps)
|
|
@@ -17467,21 +17543,35 @@ var Step = class _Step {
|
|
|
17467
17543
|
config: this.config,
|
|
17468
17544
|
output: this.output,
|
|
17469
17545
|
startAt: this.startAt,
|
|
17470
|
-
endAt: this.endAt
|
|
17546
|
+
endAt: this.endAt,
|
|
17547
|
+
metadata: this.metadata,
|
|
17548
|
+
executionContext: this.executionContext
|
|
17471
17549
|
};
|
|
17472
17550
|
}
|
|
17473
17551
|
static getOutput(step) {
|
|
17474
|
-
const
|
|
17475
|
-
if (!
|
|
17476
|
-
if (typeof
|
|
17552
|
+
const outputObj = this.extractOutputData(step);
|
|
17553
|
+
if (!outputObj) return null;
|
|
17554
|
+
if (typeof outputObj.getData === "function") {
|
|
17555
|
+
const val = outputObj.getData();
|
|
17556
|
+
if (!val) return null;
|
|
17477
17557
|
try {
|
|
17478
|
-
return convertProtobufValueToJs(
|
|
17558
|
+
return convertProtobufValueToJs(val);
|
|
17479
17559
|
} catch (error) {
|
|
17480
17560
|
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17481
|
-
return
|
|
17561
|
+
return val;
|
|
17562
|
+
}
|
|
17563
|
+
}
|
|
17564
|
+
const data = outputObj.data;
|
|
17565
|
+
if (data) {
|
|
17566
|
+
try {
|
|
17567
|
+
return typeof data.getKindCase === "function" ? convertProtobufValueToJs(data) : data;
|
|
17568
|
+
} catch (error) {
|
|
17569
|
+
console.warn(
|
|
17570
|
+
"Failed to convert plain object Value to JavaScript:",
|
|
17571
|
+
error
|
|
17572
|
+
);
|
|
17573
|
+
return data;
|
|
17482
17574
|
}
|
|
17483
|
-
} else if (outputData.data) {
|
|
17484
|
-
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17485
17575
|
}
|
|
17486
17576
|
return null;
|
|
17487
17577
|
}
|
|
@@ -17572,6 +17662,28 @@ var Step = class _Step {
|
|
|
17572
17662
|
const getInputsList = () => typeof step.getInputsList === "function" ? step.getInputsList() : step.inputsList || [];
|
|
17573
17663
|
const getStartAt = () => typeof step.getStartAt === "function" ? step.getStartAt() : step.startAt;
|
|
17574
17664
|
const getEndAt = () => typeof step.getEndAt === "function" ? step.getEndAt() : step.endAt;
|
|
17665
|
+
let stepMetadata = void 0;
|
|
17666
|
+
if (typeof step.getMetadata === "function" && step.getMetadata()) {
|
|
17667
|
+
try {
|
|
17668
|
+
stepMetadata = convertProtobufValueToJs(step.getMetadata());
|
|
17669
|
+
} catch (e) {
|
|
17670
|
+
stepMetadata = step.getMetadata();
|
|
17671
|
+
}
|
|
17672
|
+
} else if (step.metadata) {
|
|
17673
|
+
stepMetadata = step.metadata;
|
|
17674
|
+
}
|
|
17675
|
+
let executionContext = void 0;
|
|
17676
|
+
if (typeof step.getExecutionContext === "function" && step.getExecutionContext()) {
|
|
17677
|
+
try {
|
|
17678
|
+
executionContext = convertProtobufValueToJs(
|
|
17679
|
+
step.getExecutionContext()
|
|
17680
|
+
);
|
|
17681
|
+
} catch (e) {
|
|
17682
|
+
executionContext = step.getExecutionContext();
|
|
17683
|
+
}
|
|
17684
|
+
} else if (step.executionContext) {
|
|
17685
|
+
executionContext = step.executionContext;
|
|
17686
|
+
}
|
|
17575
17687
|
return new _Step({
|
|
17576
17688
|
id: getId(),
|
|
17577
17689
|
type: convertProtobufStepTypeToSdk(getType()),
|
|
@@ -17583,7 +17695,9 @@ var Step = class _Step {
|
|
|
17583
17695
|
config: configData,
|
|
17584
17696
|
output: _Step.getOutput(step),
|
|
17585
17697
|
startAt: getStartAt(),
|
|
17586
|
-
endAt: getEndAt()
|
|
17698
|
+
endAt: getEndAt(),
|
|
17699
|
+
metadata: stepMetadata,
|
|
17700
|
+
executionContext
|
|
17587
17701
|
});
|
|
17588
17702
|
}
|
|
17589
17703
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -18540,8 +18654,7 @@ var Client = class extends BaseClient {
|
|
|
18540
18654
|
return {
|
|
18541
18655
|
success: false,
|
|
18542
18656
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
18543
|
-
data: null
|
|
18544
|
-
nodeId: ""
|
|
18657
|
+
data: null
|
|
18545
18658
|
};
|
|
18546
18659
|
}
|
|
18547
18660
|
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
@@ -18560,10 +18673,10 @@ var Client = class extends BaseClient {
|
|
|
18560
18673
|
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
18561
18674
|
return {
|
|
18562
18675
|
success: result.getSuccess(),
|
|
18563
|
-
data: factory_default2.fromOutputData(result),
|
|
18676
|
+
data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
|
|
18564
18677
|
error: result.getError(),
|
|
18565
|
-
|
|
18566
|
-
|
|
18678
|
+
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
18679
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18567
18680
|
};
|
|
18568
18681
|
}
|
|
18569
18682
|
/**
|
|
@@ -18595,10 +18708,10 @@ var Client = class extends BaseClient {
|
|
|
18595
18708
|
}
|
|
18596
18709
|
return {
|
|
18597
18710
|
success: result.getSuccess(),
|
|
18598
|
-
data: factory_default.fromOutputData(result),
|
|
18711
|
+
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
18599
18712
|
error: result.getError(),
|
|
18600
|
-
|
|
18601
|
-
|
|
18713
|
+
metadata: toCamelCaseKeys(metadata),
|
|
18714
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18602
18715
|
};
|
|
18603
18716
|
}
|
|
18604
18717
|
/**
|