@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/dist/index.mjs
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)) {
|
|
@@ -15872,6 +15924,19 @@ function convertJSValueToProtobuf(value) {
|
|
|
15872
15924
|
}
|
|
15873
15925
|
return protobufValue;
|
|
15874
15926
|
}
|
|
15927
|
+
function toCamelCaseKeys(input) {
|
|
15928
|
+
if (input === null || input === void 0) return input;
|
|
15929
|
+
if (Array.isArray(input)) {
|
|
15930
|
+
return input.map((item) => toCamelCaseKeys(item));
|
|
15931
|
+
}
|
|
15932
|
+
if (typeof input !== "object") return input;
|
|
15933
|
+
const result = {};
|
|
15934
|
+
for (const [key, value] of Object.entries(input)) {
|
|
15935
|
+
const camelKey = key.replace(/_([a-z])/g, (_4, c) => c.toUpperCase());
|
|
15936
|
+
result[camelKey] = toCamelCaseKeys(value);
|
|
15937
|
+
}
|
|
15938
|
+
return result;
|
|
15939
|
+
}
|
|
15875
15940
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
15876
15941
|
switch (protobufType) {
|
|
15877
15942
|
case "TRIGGER_TYPE_MANUAL":
|
|
@@ -16475,7 +16540,7 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16475
16540
|
return value;
|
|
16476
16541
|
});
|
|
16477
16542
|
config.setContractAbiList(abiValueList);
|
|
16478
|
-
const methodCalls = configData.methodCalls
|
|
16543
|
+
const methodCalls = configData.methodCalls;
|
|
16479
16544
|
methodCalls.forEach((methodCall) => {
|
|
16480
16545
|
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16481
16546
|
if (methodCall.callData) {
|
|
@@ -16617,9 +16682,9 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16617
16682
|
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
16618
16683
|
config.setUrl(configData.url);
|
|
16619
16684
|
config.setQuery(configData.query);
|
|
16620
|
-
if (configData.
|
|
16685
|
+
if (configData.variables && Object.keys(configData.variables).length > 0) {
|
|
16621
16686
|
const variablesMap = config.getVariablesMap();
|
|
16622
|
-
configData.
|
|
16687
|
+
Object.entries(configData.variables).forEach(([key, value]) => {
|
|
16623
16688
|
variablesMap.set(key, value);
|
|
16624
16689
|
});
|
|
16625
16690
|
}
|
|
@@ -16628,10 +16693,20 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
16628
16693
|
}
|
|
16629
16694
|
static fromResponse(raw) {
|
|
16630
16695
|
const obj = raw.toObject();
|
|
16696
|
+
const config = raw.getGraphqlQuery().getConfig();
|
|
16697
|
+
const variablesMap = config.getVariablesMap();
|
|
16698
|
+
const variables = {};
|
|
16699
|
+
variablesMap.forEach((value, key) => {
|
|
16700
|
+
variables[key] = value;
|
|
16701
|
+
});
|
|
16631
16702
|
return new _GraphQLQueryNode({
|
|
16632
16703
|
...obj,
|
|
16633
16704
|
type: NodeType5.GraphQLQuery,
|
|
16634
|
-
data:
|
|
16705
|
+
data: {
|
|
16706
|
+
url: config.getUrl(),
|
|
16707
|
+
query: config.getQuery(),
|
|
16708
|
+
variables
|
|
16709
|
+
}
|
|
16635
16710
|
});
|
|
16636
16711
|
}
|
|
16637
16712
|
toRequest() {
|
|
@@ -16720,7 +16795,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
16720
16795
|
static fromOutputData(outputData) {
|
|
16721
16796
|
const restApiOutput = outputData.getRestApi();
|
|
16722
16797
|
if (!restApiOutput) {
|
|
16723
|
-
console.log("Debug RestAPI: No restApiOutput found");
|
|
16724
16798
|
return null;
|
|
16725
16799
|
}
|
|
16726
16800
|
const rawData = restApiOutput.getData();
|
|
@@ -16759,7 +16833,7 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16759
16833
|
return value;
|
|
16760
16834
|
});
|
|
16761
16835
|
config.setContractAbiList(abiValueList);
|
|
16762
|
-
const methodCalls = configData.methodCalls
|
|
16836
|
+
const methodCalls = configData.methodCalls;
|
|
16763
16837
|
methodCalls.forEach((methodCall) => {
|
|
16764
16838
|
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
16765
16839
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
@@ -17138,7 +17212,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17138
17212
|
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
17139
17213
|
url: gqlConfig.url,
|
|
17140
17214
|
query: gqlConfig.query,
|
|
17141
|
-
|
|
17215
|
+
variables: gqlConfig.variables
|
|
17142
17216
|
});
|
|
17143
17217
|
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
17144
17218
|
break;
|
|
@@ -17457,6 +17531,8 @@ var Step = class _Step {
|
|
|
17457
17531
|
this.output = props.output;
|
|
17458
17532
|
this.startAt = props.startAt;
|
|
17459
17533
|
this.endAt = props.endAt;
|
|
17534
|
+
this.metadata = props.metadata;
|
|
17535
|
+
this.executionContext = props.executionContext;
|
|
17460
17536
|
}
|
|
17461
17537
|
/**
|
|
17462
17538
|
* Convert Step instance to plain object (StepProps)
|
|
@@ -17474,21 +17550,35 @@ var Step = class _Step {
|
|
|
17474
17550
|
config: this.config,
|
|
17475
17551
|
output: this.output,
|
|
17476
17552
|
startAt: this.startAt,
|
|
17477
|
-
endAt: this.endAt
|
|
17553
|
+
endAt: this.endAt,
|
|
17554
|
+
metadata: this.metadata,
|
|
17555
|
+
executionContext: this.executionContext
|
|
17478
17556
|
};
|
|
17479
17557
|
}
|
|
17480
17558
|
static getOutput(step) {
|
|
17481
|
-
const
|
|
17482
|
-
if (!
|
|
17483
|
-
if (typeof
|
|
17559
|
+
const outputObj = this.extractOutputData(step);
|
|
17560
|
+
if (!outputObj) return null;
|
|
17561
|
+
if (typeof outputObj.getData === "function") {
|
|
17562
|
+
const val = outputObj.getData();
|
|
17563
|
+
if (!val) return null;
|
|
17484
17564
|
try {
|
|
17485
|
-
return convertProtobufValueToJs(
|
|
17565
|
+
return convertProtobufValueToJs(val);
|
|
17486
17566
|
} catch (error) {
|
|
17487
17567
|
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17488
|
-
return
|
|
17568
|
+
return val;
|
|
17569
|
+
}
|
|
17570
|
+
}
|
|
17571
|
+
const data = outputObj.data;
|
|
17572
|
+
if (data) {
|
|
17573
|
+
try {
|
|
17574
|
+
return typeof data.getKindCase === "function" ? convertProtobufValueToJs(data) : data;
|
|
17575
|
+
} catch (error) {
|
|
17576
|
+
console.warn(
|
|
17577
|
+
"Failed to convert plain object Value to JavaScript:",
|
|
17578
|
+
error
|
|
17579
|
+
);
|
|
17580
|
+
return data;
|
|
17489
17581
|
}
|
|
17490
|
-
} else if (outputData.data) {
|
|
17491
|
-
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17492
17582
|
}
|
|
17493
17583
|
return null;
|
|
17494
17584
|
}
|
|
@@ -17579,6 +17669,28 @@ var Step = class _Step {
|
|
|
17579
17669
|
const getInputsList = () => typeof step.getInputsList === "function" ? step.getInputsList() : step.inputsList || [];
|
|
17580
17670
|
const getStartAt = () => typeof step.getStartAt === "function" ? step.getStartAt() : step.startAt;
|
|
17581
17671
|
const getEndAt = () => typeof step.getEndAt === "function" ? step.getEndAt() : step.endAt;
|
|
17672
|
+
let stepMetadata = void 0;
|
|
17673
|
+
if (typeof step.getMetadata === "function" && step.getMetadata()) {
|
|
17674
|
+
try {
|
|
17675
|
+
stepMetadata = convertProtobufValueToJs(step.getMetadata());
|
|
17676
|
+
} catch (e) {
|
|
17677
|
+
stepMetadata = step.getMetadata();
|
|
17678
|
+
}
|
|
17679
|
+
} else if (step.metadata) {
|
|
17680
|
+
stepMetadata = step.metadata;
|
|
17681
|
+
}
|
|
17682
|
+
let executionContext = void 0;
|
|
17683
|
+
if (typeof step.getExecutionContext === "function" && step.getExecutionContext()) {
|
|
17684
|
+
try {
|
|
17685
|
+
executionContext = convertProtobufValueToJs(
|
|
17686
|
+
step.getExecutionContext()
|
|
17687
|
+
);
|
|
17688
|
+
} catch (e) {
|
|
17689
|
+
executionContext = step.getExecutionContext();
|
|
17690
|
+
}
|
|
17691
|
+
} else if (step.executionContext) {
|
|
17692
|
+
executionContext = step.executionContext;
|
|
17693
|
+
}
|
|
17582
17694
|
return new _Step({
|
|
17583
17695
|
id: getId(),
|
|
17584
17696
|
type: convertProtobufStepTypeToSdk(getType()),
|
|
@@ -17590,7 +17702,9 @@ var Step = class _Step {
|
|
|
17590
17702
|
config: configData,
|
|
17591
17703
|
output: _Step.getOutput(step),
|
|
17592
17704
|
startAt: getStartAt(),
|
|
17593
|
-
endAt: getEndAt()
|
|
17705
|
+
endAt: getEndAt(),
|
|
17706
|
+
metadata: stepMetadata,
|
|
17707
|
+
executionContext
|
|
17594
17708
|
});
|
|
17595
17709
|
}
|
|
17596
17710
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -18558,8 +18672,7 @@ var Client = class extends BaseClient {
|
|
|
18558
18672
|
return {
|
|
18559
18673
|
success: false,
|
|
18560
18674
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
18561
|
-
data: null
|
|
18562
|
-
nodeId: ""
|
|
18675
|
+
data: null
|
|
18563
18676
|
};
|
|
18564
18677
|
}
|
|
18565
18678
|
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
@@ -18578,10 +18691,10 @@ var Client = class extends BaseClient {
|
|
|
18578
18691
|
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
18579
18692
|
return {
|
|
18580
18693
|
success: result.getSuccess(),
|
|
18581
|
-
data: factory_default2.fromOutputData(result),
|
|
18694
|
+
data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
|
|
18582
18695
|
error: result.getError(),
|
|
18583
|
-
|
|
18584
|
-
|
|
18696
|
+
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
18697
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18585
18698
|
};
|
|
18586
18699
|
}
|
|
18587
18700
|
/**
|
|
@@ -18613,10 +18726,10 @@ var Client = class extends BaseClient {
|
|
|
18613
18726
|
}
|
|
18614
18727
|
return {
|
|
18615
18728
|
success: result.getSuccess(),
|
|
18616
|
-
data: factory_default.fromOutputData(result),
|
|
18729
|
+
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
18617
18730
|
error: result.getError(),
|
|
18618
|
-
|
|
18619
|
-
|
|
18731
|
+
metadata: toCamelCaseKeys(metadata),
|
|
18732
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18620
18733
|
};
|
|
18621
18734
|
}
|
|
18622
18735
|
/**
|
|
@@ -24,8 +24,8 @@ class ContractReadNode extends Node {
|
|
|
24
24
|
return value;
|
|
25
25
|
});
|
|
26
26
|
config.setContractAbiList(abiValueList);
|
|
27
|
-
// Handle method calls array
|
|
28
|
-
const methodCalls = configData.methodCalls
|
|
27
|
+
// Handle method calls array (now required)
|
|
28
|
+
const methodCalls = configData.methodCalls;
|
|
29
29
|
methodCalls.forEach((methodCall) => {
|
|
30
30
|
const methodCallMsg = new avs_pb.ContractReadNode.MethodCall();
|
|
31
31
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractWrite.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractWrite.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAEL,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAK5B,cAAM,iBAAkB,SAAQ,IAAI;gBACtB,KAAK,EAAE,sBAAsB;IAIzC;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,qBAAqB,GAAG,MAAM,CAAC,iBAAiB;IAuCtF,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,iBAAiB;IA8B5D,SAAS,IAAI,MAAM,CAAC,QAAQ;IAe5B,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,qBAAqB,GAAG,GAAG;
|
|
1
|
+
{"version":3,"file":"contractWrite.d.ts","sourceRoot":"","sources":["../../../src/models/node/contractWrite.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAEL,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAK5B,cAAM,iBAAkB,SAAQ,IAAI;gBACtB,KAAK,EAAE,sBAAsB;IAIzC;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,qBAAqB,GAAG,MAAM,CAAC,iBAAiB;IAuCtF,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,iBAAiB;IA8B5D,SAAS,IAAI,MAAM,CAAC,QAAQ;IAe5B,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,qBAAqB,GAAG,GAAG;CAYrE;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -25,8 +25,8 @@ class ContractWriteNode extends Node {
|
|
|
25
25
|
return value;
|
|
26
26
|
});
|
|
27
27
|
config.setContractAbiList(abiValueList);
|
|
28
|
-
// Handle method calls array
|
|
29
|
-
const methodCalls = configData.methodCalls
|
|
28
|
+
// Handle method calls array (now required)
|
|
29
|
+
const methodCalls = configData.methodCalls;
|
|
30
30
|
methodCalls.forEach((methodCall) => {
|
|
31
31
|
const methodCallMsg = new avs_pb.ContractWriteNode.MethodCall();
|
|
32
32
|
// Set callData only if provided (now optional)
|
|
@@ -81,10 +81,11 @@ class ContractWriteNode extends Node {
|
|
|
81
81
|
const contractWriteOutput = outputData.getContractWrite();
|
|
82
82
|
if (!contractWriteOutput)
|
|
83
83
|
return null;
|
|
84
|
-
//
|
|
85
|
-
//
|
|
84
|
+
// ContractWrite decoded events are stored in data field (flattened object format)
|
|
85
|
+
// This contains parsed receipt logs/events, similar to ContractRead format
|
|
86
86
|
const dataValue = contractWriteOutput.getData();
|
|
87
|
-
// Convert protobuf Value to JavaScript object (
|
|
87
|
+
// Convert protobuf Value to JavaScript object (decoded events object)
|
|
88
|
+
// Return empty object if no events were decoded from transaction receipts
|
|
88
89
|
return dataValue ? convertProtobufValueToJs(dataValue) : {};
|
|
89
90
|
}
|
|
90
91
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Node from "./interface";
|
|
2
|
+
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
3
|
+
import { GraphQLQueryNodeProps } from "@avaprotocol/types";
|
|
4
|
+
declare class GraphQLQueryNode extends Node {
|
|
5
|
+
constructor(props: GraphQLQueryNodeProps);
|
|
6
|
+
/**
|
|
7
|
+
* Create a protobuf GraphQLQueryNode from config data
|
|
8
|
+
* @param configData - The configuration data for the GraphQL query node
|
|
9
|
+
* @returns Configured avs_pb.GraphQLQueryNode
|
|
10
|
+
*/
|
|
11
|
+
static createProtobufNode(configData: {
|
|
12
|
+
url: string;
|
|
13
|
+
query: string;
|
|
14
|
+
variables?: Record<string, string>;
|
|
15
|
+
}): avs_pb.GraphQLQueryNode;
|
|
16
|
+
static fromResponse(raw: avs_pb.TaskNode): GraphQLQueryNode;
|
|
17
|
+
toRequest(): avs_pb.TaskNode;
|
|
18
|
+
static fromOutputData(outputData: avs_pb.RunNodeWithInputsResp): Record<string, unknown> | null;
|
|
19
|
+
}
|
|
20
|
+
export default GraphQLQueryNode;
|
|
21
|
+
//# sourceMappingURL=graphqlQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlQuery.d.ts","sourceRoot":"","sources":["../../../src/models/node/graphqlQuery.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAGL,qBAAqB,EAEtB,MAAM,oBAAoB,CAAC;AAK5B,cAAM,gBAAiB,SAAQ,IAAI;gBACrB,KAAK,EAAE,qBAAqB;IAQxC;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE;QACpC,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,
|
|
1
|
+
{"version":3,"file":"graphqlQuery.d.ts","sourceRoot":"","sources":["../../../src/models/node/graphqlQuery.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAGL,qBAAqB,EAEtB,MAAM,oBAAoB,CAAC;AAK5B,cAAM,gBAAiB,SAAQ,IAAI;gBACrB,KAAK,EAAE,qBAAqB;IAQxC;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE;QACpC,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC,GAAG,MAAM,CAAC,gBAAgB;IAkB3B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,GAAG,gBAAgB;IAuB3D,SAAS,IAAI,MAAM,CAAC,QAAQ;IAe5B,MAAM,CAAC,cAAc,CACnB,UAAU,EAAE,MAAM,CAAC,qBAAqB,GACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;CAclC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -21,9 +21,9 @@ class GraphQLQueryNode extends Node {
|
|
|
21
21
|
const config = new avs_pb.GraphQLQueryNode.Config();
|
|
22
22
|
config.setUrl(configData.url);
|
|
23
23
|
config.setQuery(configData.query);
|
|
24
|
-
if (configData.
|
|
24
|
+
if (configData.variables && Object.keys(configData.variables).length > 0) {
|
|
25
25
|
const variablesMap = config.getVariablesMap();
|
|
26
|
-
configData.
|
|
26
|
+
Object.entries(configData.variables).forEach(([key, value]) => {
|
|
27
27
|
variablesMap.set(key, value);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -33,13 +33,20 @@ class GraphQLQueryNode extends Node {
|
|
|
33
33
|
static fromResponse(raw) {
|
|
34
34
|
// Convert the raw object to GraphQLQueryNodeProps, which should keep name and id
|
|
35
35
|
const obj = raw.toObject();
|
|
36
|
+
const config = raw.getGraphqlQuery().getConfig();
|
|
37
|
+
const variablesMap = config.getVariablesMap();
|
|
38
|
+
const variables = {};
|
|
39
|
+
variablesMap.forEach((value, key) => {
|
|
40
|
+
variables[key] = value;
|
|
41
|
+
});
|
|
36
42
|
return new GraphQLQueryNode({
|
|
37
43
|
...obj,
|
|
38
44
|
type: NodeType.GraphQLQuery,
|
|
39
|
-
data:
|
|
40
|
-
.
|
|
41
|
-
.
|
|
42
|
-
|
|
45
|
+
data: {
|
|
46
|
+
url: config.getUrl(),
|
|
47
|
+
query: config.getQuery(),
|
|
48
|
+
variables: variables,
|
|
49
|
+
},
|
|
43
50
|
});
|
|
44
51
|
}
|
|
45
52
|
toRequest() {
|
package/dist/models/node/loop.js
CHANGED
|
@@ -166,7 +166,7 @@ class LoopNode extends Node {
|
|
|
166
166
|
const graphqlQuery = GraphQLQueryNode.createProtobufNode({
|
|
167
167
|
url: gqlConfig.url,
|
|
168
168
|
query: gqlConfig.query,
|
|
169
|
-
|
|
169
|
+
variables: gqlConfig.variables,
|
|
170
170
|
});
|
|
171
171
|
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
172
172
|
break;
|