@avaprotocol/sdk-js 2.10.0 → 2.10.2
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 +6 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +171 -140
- package/dist/index.mjs +213 -184
- package/dist/models/node/balance.d.ts.map +1 -1
- package/dist/models/node/balance.js +1 -0
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +1 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +1 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +1 -0
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +1 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +1 -0
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +1 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +1 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +1 -0
- package/dist/models/node/restApi.d.ts +1 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +17 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @avaprotocol/sdk-js
|
|
2
2
|
|
|
3
|
+
## 2.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9167174: fix: updated runNodeImmediate and runTrigger request inputs to be consistent with simulateWorkflow"
|
|
8
|
+
- Updated dependencies [9167174]
|
|
9
|
+
- @avaprotocol/types@2.8.2
|
|
10
|
+
|
|
11
|
+
## 2.10.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- b85409c: fix: add options field support to RestAPINode
|
|
16
|
+
- Updated dependencies [b85409c]
|
|
17
|
+
- @avaprotocol/types@2.8.1
|
|
18
|
+
|
|
3
19
|
## 2.10.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -316,23 +316,21 @@ declare class Client extends BaseClient {
|
|
|
316
316
|
/**
|
|
317
317
|
* Run a node with inputs for testing purposes
|
|
318
318
|
* @param {RunNodeWithInputsRequest} params - The parameters for running the node
|
|
319
|
-
* @param {
|
|
320
|
-
* @param {Record<string, any>} params.
|
|
321
|
-
* @param {Record<string, any>} params.inputVariables - Variables to pass to the node
|
|
319
|
+
* @param {NodeProps} params.node - Complete node definition (id, name, type, data)
|
|
320
|
+
* @param {Record<string, any>} params.inputVariables - Variables to pass to the node (settings, data from previous nodes, etc.)
|
|
322
321
|
* @param {RequestOptions} options - Request options
|
|
323
322
|
* @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
|
|
324
323
|
*/
|
|
325
|
-
runNodeWithInputs({
|
|
324
|
+
runNodeWithInputs({ node, inputVariables }: RunNodeWithInputsRequest, options?: RequestOptions): Promise<RunNodeWithInputsResponse>;
|
|
326
325
|
/**
|
|
327
326
|
* Run a trigger for testing purposes
|
|
328
327
|
* @param {RunTriggerRequest} params - The parameters for running the trigger
|
|
329
|
-
* @param {
|
|
330
|
-
* @param {Record<string, any>} params.
|
|
331
|
-
* @param {Record<string, any>} params.inputVariables - Optional input variables for template resolution
|
|
328
|
+
* @param {TriggerProps} params.trigger - Complete trigger definition (id, name, type, data)
|
|
329
|
+
* @param {Record<string, any>} params.triggerInput - Optional input variables for template resolution
|
|
332
330
|
* @param {RequestOptions} options - Request options
|
|
333
331
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
334
332
|
*/
|
|
335
|
-
runTrigger({
|
|
333
|
+
runTrigger({ trigger, triggerInput }: RunTriggerRequest, options?: RequestOptions): Promise<RunTriggerResponse>;
|
|
336
334
|
/**
|
|
337
335
|
* Simulate a complete task execution including trigger and all workflow nodes
|
|
338
336
|
* @param {SimulateWorkflowRequest} params - The parameters for simulating the task
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAU,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAOL,SAAS,EAGT,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,aAAa,EAIlB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,eAAe,EACf,KAAK,uBAAuB,E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,SAAS,EACT,IAAI,EACJ,WAAW,EACX,cAAc,EACd,MAAM,EACN,SAAS,EACT,qBAAqB,GACtB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3467,7 +3467,9 @@ var require_avs_pb = __commonJS({
|
|
|
3467
3467
|
proto.aggregator.ContractWriteNode.MethodCall.toObject,
|
|
3468
3468
|
includeInstance
|
|
3469
3469
|
),
|
|
3470
|
-
isSimulated: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
3470
|
+
isSimulated: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
3471
|
+
value: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3472
|
+
gasLimit: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3471
3473
|
};
|
|
3472
3474
|
if (includeInstance) {
|
|
3473
3475
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3518,6 +3520,20 @@ var require_avs_pb = __commonJS({
|
|
|
3518
3520
|
);
|
|
3519
3521
|
msg.setIsSimulated(value);
|
|
3520
3522
|
break;
|
|
3523
|
+
case 6:
|
|
3524
|
+
var value = (
|
|
3525
|
+
/** @type {string} */
|
|
3526
|
+
reader.readString()
|
|
3527
|
+
);
|
|
3528
|
+
msg.setValue(value);
|
|
3529
|
+
break;
|
|
3530
|
+
case 7:
|
|
3531
|
+
var value = (
|
|
3532
|
+
/** @type {string} */
|
|
3533
|
+
reader.readString()
|
|
3534
|
+
);
|
|
3535
|
+
msg.setGasLimit(value);
|
|
3536
|
+
break;
|
|
3521
3537
|
default:
|
|
3522
3538
|
reader.skipField();
|
|
3523
3539
|
break;
|
|
@@ -3570,6 +3586,22 @@ var require_avs_pb = __commonJS({
|
|
|
3570
3586
|
f
|
|
3571
3587
|
);
|
|
3572
3588
|
}
|
|
3589
|
+
f = /** @type {string} */
|
|
3590
|
+
jspb.Message.getField(message, 6);
|
|
3591
|
+
if (f != null) {
|
|
3592
|
+
writer.writeString(
|
|
3593
|
+
6,
|
|
3594
|
+
f
|
|
3595
|
+
);
|
|
3596
|
+
}
|
|
3597
|
+
f = /** @type {string} */
|
|
3598
|
+
jspb.Message.getField(message, 7);
|
|
3599
|
+
if (f != null) {
|
|
3600
|
+
writer.writeString(
|
|
3601
|
+
7,
|
|
3602
|
+
f
|
|
3603
|
+
);
|
|
3604
|
+
}
|
|
3573
3605
|
};
|
|
3574
3606
|
proto.aggregator.ContractWriteNode.Config.prototype.getContractAddress = function() {
|
|
3575
3607
|
return (
|
|
@@ -3634,6 +3666,36 @@ var require_avs_pb = __commonJS({
|
|
|
3634
3666
|
proto.aggregator.ContractWriteNode.Config.prototype.hasIsSimulated = function() {
|
|
3635
3667
|
return jspb.Message.getField(this, 5) != null;
|
|
3636
3668
|
};
|
|
3669
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getValue = function() {
|
|
3670
|
+
return (
|
|
3671
|
+
/** @type {string} */
|
|
3672
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
3673
|
+
);
|
|
3674
|
+
};
|
|
3675
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setValue = function(value) {
|
|
3676
|
+
return jspb.Message.setField(this, 6, value);
|
|
3677
|
+
};
|
|
3678
|
+
proto.aggregator.ContractWriteNode.Config.prototype.clearValue = function() {
|
|
3679
|
+
return jspb.Message.setField(this, 6, void 0);
|
|
3680
|
+
};
|
|
3681
|
+
proto.aggregator.ContractWriteNode.Config.prototype.hasValue = function() {
|
|
3682
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3683
|
+
};
|
|
3684
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getGasLimit = function() {
|
|
3685
|
+
return (
|
|
3686
|
+
/** @type {string} */
|
|
3687
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
3688
|
+
);
|
|
3689
|
+
};
|
|
3690
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setGasLimit = function(value) {
|
|
3691
|
+
return jspb.Message.setField(this, 7, value);
|
|
3692
|
+
};
|
|
3693
|
+
proto.aggregator.ContractWriteNode.Config.prototype.clearGasLimit = function() {
|
|
3694
|
+
return jspb.Message.setField(this, 7, void 0);
|
|
3695
|
+
};
|
|
3696
|
+
proto.aggregator.ContractWriteNode.Config.prototype.hasGasLimit = function() {
|
|
3697
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3698
|
+
};
|
|
3637
3699
|
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3, 4];
|
|
3638
3700
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3639
3701
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5102,7 +5164,8 @@ var require_avs_pb = __commonJS({
|
|
|
5102
5164
|
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5103
5165
|
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
5104
5166
|
body: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5105
|
-
method: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
5167
|
+
method: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
5168
|
+
options: (f = msg.getOptions()) && google_protobuf_struct_pb4.Value.toObject(includeInstance, f)
|
|
5106
5169
|
};
|
|
5107
5170
|
if (includeInstance) {
|
|
5108
5171
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5149,6 +5212,11 @@ var require_avs_pb = __commonJS({
|
|
|
5149
5212
|
);
|
|
5150
5213
|
msg.setMethod(value);
|
|
5151
5214
|
break;
|
|
5215
|
+
case 5:
|
|
5216
|
+
var value = new google_protobuf_struct_pb4.Value();
|
|
5217
|
+
reader.readMessage(value, google_protobuf_struct_pb4.Value.deserializeBinaryFromReader);
|
|
5218
|
+
msg.setOptions(value);
|
|
5219
|
+
break;
|
|
5152
5220
|
default:
|
|
5153
5221
|
reader.skipField();
|
|
5154
5222
|
break;
|
|
@@ -5188,6 +5256,14 @@ var require_avs_pb = __commonJS({
|
|
|
5188
5256
|
f
|
|
5189
5257
|
);
|
|
5190
5258
|
}
|
|
5259
|
+
f = message.getOptions();
|
|
5260
|
+
if (f != null) {
|
|
5261
|
+
writer.writeMessage(
|
|
5262
|
+
5,
|
|
5263
|
+
f,
|
|
5264
|
+
google_protobuf_struct_pb4.Value.serializeBinaryToWriter
|
|
5265
|
+
);
|
|
5266
|
+
}
|
|
5191
5267
|
};
|
|
5192
5268
|
proto.aggregator.RestAPINode.Config.prototype.getUrl = function() {
|
|
5193
5269
|
return (
|
|
@@ -5231,6 +5307,21 @@ var require_avs_pb = __commonJS({
|
|
|
5231
5307
|
proto.aggregator.RestAPINode.Config.prototype.setMethod = function(value) {
|
|
5232
5308
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
5233
5309
|
};
|
|
5310
|
+
proto.aggregator.RestAPINode.Config.prototype.getOptions = function() {
|
|
5311
|
+
return (
|
|
5312
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5313
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb4.Value, 5)
|
|
5314
|
+
);
|
|
5315
|
+
};
|
|
5316
|
+
proto.aggregator.RestAPINode.Config.prototype.setOptions = function(value) {
|
|
5317
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
5318
|
+
};
|
|
5319
|
+
proto.aggregator.RestAPINode.Config.prototype.clearOptions = function() {
|
|
5320
|
+
return this.setOptions(void 0);
|
|
5321
|
+
};
|
|
5322
|
+
proto.aggregator.RestAPINode.Config.prototype.hasOptions = function() {
|
|
5323
|
+
return jspb.Message.getField(this, 5) != null;
|
|
5324
|
+
};
|
|
5234
5325
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5235
5326
|
proto.aggregator.RestAPINode.Output.prototype.toObject = function(opt_includeInstance) {
|
|
5236
5327
|
return proto.aggregator.RestAPINode.Output.toObject(opt_includeInstance, this);
|
|
@@ -14571,8 +14662,7 @@ var require_avs_pb = __commonJS({
|
|
|
14571
14662
|
};
|
|
14572
14663
|
proto.aggregator.RunNodeWithInputsReq.toObject = function(includeInstance, msg) {
|
|
14573
14664
|
var f, obj = {
|
|
14574
|
-
|
|
14575
|
-
nodeConfigMap: (f = msg.getNodeConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
14665
|
+
node: (f = msg.getNode()) && proto.aggregator.TaskNode.toObject(includeInstance, f),
|
|
14576
14666
|
inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
14577
14667
|
};
|
|
14578
14668
|
if (includeInstance) {
|
|
@@ -14594,17 +14684,9 @@ var require_avs_pb = __commonJS({
|
|
|
14594
14684
|
var field = reader.getFieldNumber();
|
|
14595
14685
|
switch (field) {
|
|
14596
14686
|
case 1:
|
|
14597
|
-
var value = (
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
);
|
|
14601
|
-
msg.setNodeType(value);
|
|
14602
|
-
break;
|
|
14603
|
-
case 2:
|
|
14604
|
-
var value = msg.getNodeConfigMap();
|
|
14605
|
-
reader.readMessage(value, function(message, reader2) {
|
|
14606
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
14607
|
-
});
|
|
14687
|
+
var value = new proto.aggregator.TaskNode();
|
|
14688
|
+
reader.readMessage(value, proto.aggregator.TaskNode.deserializeBinaryFromReader);
|
|
14689
|
+
msg.setNode(value);
|
|
14608
14690
|
break;
|
|
14609
14691
|
case 3:
|
|
14610
14692
|
var value = msg.getInputVariablesMap();
|
|
@@ -14626,45 +14708,33 @@ var require_avs_pb = __commonJS({
|
|
|
14626
14708
|
};
|
|
14627
14709
|
proto.aggregator.RunNodeWithInputsReq.serializeBinaryToWriter = function(message, writer) {
|
|
14628
14710
|
var f = void 0;
|
|
14629
|
-
f = message.
|
|
14630
|
-
if (f
|
|
14631
|
-
writer.
|
|
14711
|
+
f = message.getNode();
|
|
14712
|
+
if (f != null) {
|
|
14713
|
+
writer.writeMessage(
|
|
14632
14714
|
1,
|
|
14633
|
-
f
|
|
14715
|
+
f,
|
|
14716
|
+
proto.aggregator.TaskNode.serializeBinaryToWriter
|
|
14634
14717
|
);
|
|
14635
14718
|
}
|
|
14636
|
-
f = message.getNodeConfigMap(true);
|
|
14637
|
-
if (f && f.getLength() > 0) {
|
|
14638
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
14639
|
-
}
|
|
14640
14719
|
f = message.getInputVariablesMap(true);
|
|
14641
14720
|
if (f && f.getLength() > 0) {
|
|
14642
14721
|
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
14643
14722
|
}
|
|
14644
14723
|
};
|
|
14645
|
-
proto.aggregator.RunNodeWithInputsReq.prototype.
|
|
14724
|
+
proto.aggregator.RunNodeWithInputsReq.prototype.getNode = function() {
|
|
14646
14725
|
return (
|
|
14647
|
-
/** @type
|
|
14648
|
-
jspb.Message.
|
|
14726
|
+
/** @type{?proto.aggregator.TaskNode} */
|
|
14727
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskNode, 1)
|
|
14649
14728
|
);
|
|
14650
14729
|
};
|
|
14651
|
-
proto.aggregator.RunNodeWithInputsReq.prototype.
|
|
14652
|
-
return jspb.Message.
|
|
14730
|
+
proto.aggregator.RunNodeWithInputsReq.prototype.setNode = function(value) {
|
|
14731
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
14653
14732
|
};
|
|
14654
|
-
proto.aggregator.RunNodeWithInputsReq.prototype.
|
|
14655
|
-
return (
|
|
14656
|
-
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
14657
|
-
jspb.Message.getMapField(
|
|
14658
|
-
this,
|
|
14659
|
-
2,
|
|
14660
|
-
opt_noLazyCreate,
|
|
14661
|
-
proto.google.protobuf.Value
|
|
14662
|
-
)
|
|
14663
|
-
);
|
|
14733
|
+
proto.aggregator.RunNodeWithInputsReq.prototype.clearNode = function() {
|
|
14734
|
+
return this.setNode(void 0);
|
|
14664
14735
|
};
|
|
14665
|
-
proto.aggregator.RunNodeWithInputsReq.prototype.
|
|
14666
|
-
|
|
14667
|
-
return this;
|
|
14736
|
+
proto.aggregator.RunNodeWithInputsReq.prototype.hasNode = function() {
|
|
14737
|
+
return jspb.Message.getField(this, 1) != null;
|
|
14668
14738
|
};
|
|
14669
14739
|
proto.aggregator.RunNodeWithInputsReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
|
|
14670
14740
|
return (
|
|
@@ -15167,8 +15237,7 @@ var require_avs_pb = __commonJS({
|
|
|
15167
15237
|
};
|
|
15168
15238
|
proto.aggregator.RunTriggerReq.toObject = function(includeInstance, msg) {
|
|
15169
15239
|
var f, obj = {
|
|
15170
|
-
|
|
15171
|
-
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
15240
|
+
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f),
|
|
15172
15241
|
triggerInputMap: (f = msg.getTriggerInputMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
15173
15242
|
};
|
|
15174
15243
|
if (includeInstance) {
|
|
@@ -15190,17 +15259,9 @@ var require_avs_pb = __commonJS({
|
|
|
15190
15259
|
var field = reader.getFieldNumber();
|
|
15191
15260
|
switch (field) {
|
|
15192
15261
|
case 1:
|
|
15193
|
-
var value = (
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
);
|
|
15197
|
-
msg.setTriggerType(value);
|
|
15198
|
-
break;
|
|
15199
|
-
case 2:
|
|
15200
|
-
var value = msg.getTriggerConfigMap();
|
|
15201
|
-
reader.readMessage(value, function(message, reader2) {
|
|
15202
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
15203
|
-
});
|
|
15262
|
+
var value = new proto.aggregator.TaskTrigger();
|
|
15263
|
+
reader.readMessage(value, proto.aggregator.TaskTrigger.deserializeBinaryFromReader);
|
|
15264
|
+
msg.setTrigger(value);
|
|
15204
15265
|
break;
|
|
15205
15266
|
case 3:
|
|
15206
15267
|
var value = msg.getTriggerInputMap();
|
|
@@ -15222,45 +15283,33 @@ var require_avs_pb = __commonJS({
|
|
|
15222
15283
|
};
|
|
15223
15284
|
proto.aggregator.RunTriggerReq.serializeBinaryToWriter = function(message, writer) {
|
|
15224
15285
|
var f = void 0;
|
|
15225
|
-
f = message.
|
|
15226
|
-
if (f
|
|
15227
|
-
writer.
|
|
15286
|
+
f = message.getTrigger();
|
|
15287
|
+
if (f != null) {
|
|
15288
|
+
writer.writeMessage(
|
|
15228
15289
|
1,
|
|
15229
|
-
f
|
|
15290
|
+
f,
|
|
15291
|
+
proto.aggregator.TaskTrigger.serializeBinaryToWriter
|
|
15230
15292
|
);
|
|
15231
15293
|
}
|
|
15232
|
-
f = message.getTriggerConfigMap(true);
|
|
15233
|
-
if (f && f.getLength() > 0) {
|
|
15234
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
15235
|
-
}
|
|
15236
15294
|
f = message.getTriggerInputMap(true);
|
|
15237
15295
|
if (f && f.getLength() > 0) {
|
|
15238
15296
|
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
15239
15297
|
}
|
|
15240
15298
|
};
|
|
15241
|
-
proto.aggregator.RunTriggerReq.prototype.
|
|
15299
|
+
proto.aggregator.RunTriggerReq.prototype.getTrigger = function() {
|
|
15242
15300
|
return (
|
|
15243
|
-
/** @type
|
|
15244
|
-
jspb.Message.
|
|
15301
|
+
/** @type{?proto.aggregator.TaskTrigger} */
|
|
15302
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskTrigger, 1)
|
|
15245
15303
|
);
|
|
15246
15304
|
};
|
|
15247
|
-
proto.aggregator.RunTriggerReq.prototype.
|
|
15248
|
-
return jspb.Message.
|
|
15305
|
+
proto.aggregator.RunTriggerReq.prototype.setTrigger = function(value) {
|
|
15306
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
15249
15307
|
};
|
|
15250
|
-
proto.aggregator.RunTriggerReq.prototype.
|
|
15251
|
-
return (
|
|
15252
|
-
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
15253
|
-
jspb.Message.getMapField(
|
|
15254
|
-
this,
|
|
15255
|
-
2,
|
|
15256
|
-
opt_noLazyCreate,
|
|
15257
|
-
proto.google.protobuf.Value
|
|
15258
|
-
)
|
|
15259
|
-
);
|
|
15308
|
+
proto.aggregator.RunTriggerReq.prototype.clearTrigger = function() {
|
|
15309
|
+
return this.setTrigger(void 0);
|
|
15260
15310
|
};
|
|
15261
|
-
proto.aggregator.RunTriggerReq.prototype.
|
|
15262
|
-
|
|
15263
|
-
return this;
|
|
15311
|
+
proto.aggregator.RunTriggerReq.prototype.hasTrigger = function() {
|
|
15312
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15264
15313
|
};
|
|
15265
15314
|
proto.aggregator.RunTriggerReq.prototype.getTriggerInputMap = function(opt_noLazyCreate) {
|
|
15266
15315
|
return (
|
|
@@ -19592,6 +19641,7 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
19592
19641
|
const request = new avs_pb9.TaskNode();
|
|
19593
19642
|
request.setId(this.id);
|
|
19594
19643
|
request.setName(this.name);
|
|
19644
|
+
request.setType(avs_pb9.NodeType.NODE_TYPE_CONTRACT_WRITE);
|
|
19595
19645
|
const node = _ContractWriteNode.createProtobufNode(
|
|
19596
19646
|
this.data
|
|
19597
19647
|
);
|
|
@@ -19652,6 +19702,7 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
19652
19702
|
const request = new avs_pb10.TaskNode();
|
|
19653
19703
|
request.setId(this.id);
|
|
19654
19704
|
request.setName(this.name);
|
|
19705
|
+
request.setType(avs_pb10.NodeType.NODE_TYPE_CUSTOM_CODE);
|
|
19655
19706
|
const node = _CustomCodeNode.createProtobufNode(
|
|
19656
19707
|
this.data
|
|
19657
19708
|
);
|
|
@@ -19724,6 +19775,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
19724
19775
|
const request = new avs_pb11.TaskNode();
|
|
19725
19776
|
request.setId(this.id);
|
|
19726
19777
|
request.setName(this.name);
|
|
19778
|
+
request.setType(avs_pb11.NodeType.NODE_TYPE_GRAPHQL_QUERY);
|
|
19727
19779
|
const node = _GraphQLQueryNode.createProtobufNode(
|
|
19728
19780
|
this.data
|
|
19729
19781
|
);
|
|
@@ -19768,25 +19820,36 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
19768
19820
|
headersMap.set(key, value);
|
|
19769
19821
|
});
|
|
19770
19822
|
}
|
|
19823
|
+
if (configData.options) {
|
|
19824
|
+
config.setOptions(convertJSValueToProtobuf(configData.options));
|
|
19825
|
+
}
|
|
19771
19826
|
node.setConfig(config);
|
|
19772
19827
|
return node;
|
|
19773
19828
|
}
|
|
19774
19829
|
static fromResponse(raw) {
|
|
19775
19830
|
const obj = raw.toObject();
|
|
19831
|
+
const config = raw.getRestApi().getConfig();
|
|
19776
19832
|
return new _RestAPINode({
|
|
19777
19833
|
...obj,
|
|
19778
19834
|
type: import_types12.NodeType.RestAPI,
|
|
19779
19835
|
data: {
|
|
19780
|
-
url:
|
|
19781
|
-
method:
|
|
19782
|
-
body:
|
|
19836
|
+
url: config.getUrl(),
|
|
19837
|
+
method: config.getMethod(),
|
|
19838
|
+
body: config.getBody(),
|
|
19783
19839
|
headers: (() => {
|
|
19784
|
-
const headersMap =
|
|
19840
|
+
const headersMap = config.getHeadersMap();
|
|
19785
19841
|
const headers = {};
|
|
19786
19842
|
headersMap.forEach((value, key) => {
|
|
19787
19843
|
headers[key] = value;
|
|
19788
19844
|
});
|
|
19789
19845
|
return headers;
|
|
19846
|
+
})(),
|
|
19847
|
+
options: (() => {
|
|
19848
|
+
const optionsProto = config.getOptions();
|
|
19849
|
+
if (optionsProto) {
|
|
19850
|
+
return convertProtobufValueToJs(optionsProto);
|
|
19851
|
+
}
|
|
19852
|
+
return void 0;
|
|
19790
19853
|
})()
|
|
19791
19854
|
}
|
|
19792
19855
|
});
|
|
@@ -19795,6 +19858,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
19795
19858
|
const request = new avs_pb12.TaskNode();
|
|
19796
19859
|
request.setId(this.id);
|
|
19797
19860
|
request.setName(this.name);
|
|
19861
|
+
request.setType(avs_pb12.NodeType.NODE_TYPE_REST_API);
|
|
19798
19862
|
const nodeData = _RestAPINode.createProtobufNode(
|
|
19799
19863
|
this.data
|
|
19800
19864
|
);
|
|
@@ -19882,6 +19946,7 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
19882
19946
|
const request = new avs_pb13.TaskNode();
|
|
19883
19947
|
request.setId(this.id);
|
|
19884
19948
|
request.setName(this.name);
|
|
19949
|
+
request.setType(avs_pb13.NodeType.NODE_TYPE_CONTRACT_READ);
|
|
19885
19950
|
const node = _ContractReadNode.createProtobufNode(
|
|
19886
19951
|
this.data
|
|
19887
19952
|
);
|
|
@@ -19931,6 +19996,7 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
19931
19996
|
const request = new avs_pb14.TaskNode();
|
|
19932
19997
|
request.setId(this.id);
|
|
19933
19998
|
request.setName(this.name);
|
|
19999
|
+
request.setType(avs_pb14.NodeType.NODE_TYPE_ETH_TRANSFER);
|
|
19934
20000
|
const node = _ETHTransferNode.createProtobufNode(
|
|
19935
20001
|
this.data
|
|
19936
20002
|
);
|
|
@@ -19978,6 +20044,7 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
19978
20044
|
const request = new avs_pb15.TaskNode();
|
|
19979
20045
|
request.setId(this.id);
|
|
19980
20046
|
request.setName(this.name);
|
|
20047
|
+
request.setType(avs_pb15.NodeType.NODE_TYPE_BRANCH);
|
|
19981
20048
|
const node = new avs_pb15.BranchNode();
|
|
19982
20049
|
const config = new avs_pb15.BranchNode.Config();
|
|
19983
20050
|
if (this.data.conditions && this.data.conditions.length > 0) {
|
|
@@ -20030,6 +20097,7 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
20030
20097
|
const request = new avs_pb16.TaskNode();
|
|
20031
20098
|
request.setId(this.id);
|
|
20032
20099
|
request.setName(this.name);
|
|
20100
|
+
request.setType(avs_pb16.NodeType.NODE_TYPE_FILTER);
|
|
20033
20101
|
const node = new avs_pb16.FilterNode();
|
|
20034
20102
|
const config = new avs_pb16.FilterNode.Config();
|
|
20035
20103
|
config.setExpression(this.data.expression);
|
|
@@ -20144,6 +20212,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
20144
20212
|
const loopNode = new avs_pb17.LoopNode();
|
|
20145
20213
|
node.setId(this.id);
|
|
20146
20214
|
node.setName(this.name);
|
|
20215
|
+
node.setType(avs_pb17.NodeType.NODE_TYPE_LOOP);
|
|
20147
20216
|
const data = this.data;
|
|
20148
20217
|
const config = new avs_pb17.LoopNode.Config();
|
|
20149
20218
|
config.setInputNodeName(data.inputNodeName || "");
|
|
@@ -20325,6 +20394,7 @@ var BalanceNode2 = class _BalanceNode extends Node {
|
|
|
20325
20394
|
const request = new avs_pb18.TaskNode();
|
|
20326
20395
|
request.setId(this.id);
|
|
20327
20396
|
request.setName(this.name);
|
|
20397
|
+
request.setType(avs_pb18.NodeType.NODE_TYPE_BALANCE);
|
|
20328
20398
|
const node = _BalanceNode.createProtobufNode(this.data);
|
|
20329
20399
|
request.setBalance(node);
|
|
20330
20400
|
return request;
|
|
@@ -21816,40 +21886,18 @@ var Client = class extends BaseClient {
|
|
|
21816
21886
|
/**
|
|
21817
21887
|
* Run a node with inputs for testing purposes
|
|
21818
21888
|
* @param {RunNodeWithInputsRequest} params - The parameters for running the node
|
|
21819
|
-
* @param {
|
|
21820
|
-
* @param {Record<string, any>} params.
|
|
21821
|
-
* @param {Record<string, any>} params.inputVariables - Variables to pass to the node
|
|
21889
|
+
* @param {NodeProps} params.node - Complete node definition (id, name, type, data)
|
|
21890
|
+
* @param {Record<string, any>} params.inputVariables - Variables to pass to the node (settings, data from previous nodes, etc.)
|
|
21822
21891
|
* @param {RequestOptions} options - Request options
|
|
21823
21892
|
* @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
|
|
21824
21893
|
*/
|
|
21825
|
-
async runNodeWithInputs({
|
|
21826
|
-
const triggerTypes = [
|
|
21827
|
-
import_types22.TriggerType.Block,
|
|
21828
|
-
import_types22.TriggerType.FixedTime,
|
|
21829
|
-
import_types22.TriggerType.Cron,
|
|
21830
|
-
import_types22.TriggerType.Event,
|
|
21831
|
-
import_types22.TriggerType.Manual
|
|
21832
|
-
];
|
|
21833
|
-
if (triggerTypes.includes(nodeType)) {
|
|
21834
|
-
return {
|
|
21835
|
-
success: false,
|
|
21836
|
-
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
21837
|
-
errorCode: import_types22.ErrorCode.INVALID_REQUEST,
|
|
21838
|
-
data: null
|
|
21839
|
-
};
|
|
21840
|
-
}
|
|
21894
|
+
async runNodeWithInputs({ node, inputVariables = {} }, options) {
|
|
21841
21895
|
const request = new avs_pb24.RunNodeWithInputsReq();
|
|
21842
|
-
const
|
|
21843
|
-
request.
|
|
21844
|
-
const
|
|
21845
|
-
for (const [key, value] of Object.entries(
|
|
21846
|
-
|
|
21847
|
-
}
|
|
21848
|
-
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
21849
|
-
const inputVarsMap = request.getInputVariablesMap();
|
|
21850
|
-
for (const [key, value] of Object.entries(inputVariables)) {
|
|
21851
|
-
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
21852
|
-
}
|
|
21896
|
+
const nodeSdk = factory_default2.create(node);
|
|
21897
|
+
request.setNode(nodeSdk.toRequest());
|
|
21898
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
21899
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
21900
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
21853
21901
|
}
|
|
21854
21902
|
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
21855
21903
|
return {
|
|
@@ -21866,43 +21914,26 @@ var Client = class extends BaseClient {
|
|
|
21866
21914
|
/**
|
|
21867
21915
|
* Run a trigger for testing purposes
|
|
21868
21916
|
* @param {RunTriggerRequest} params - The parameters for running the trigger
|
|
21869
|
-
* @param {
|
|
21870
|
-
* @param {Record<string, any>} params.
|
|
21871
|
-
* @param {Record<string, any>} params.inputVariables - Optional input variables for template resolution
|
|
21917
|
+
* @param {TriggerProps} params.trigger - Complete trigger definition (id, name, type, data)
|
|
21918
|
+
* @param {Record<string, any>} params.triggerInput - Optional input variables for template resolution
|
|
21872
21919
|
* @param {RequestOptions} options - Request options
|
|
21873
21920
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
21874
21921
|
*/
|
|
21875
|
-
async runTrigger({
|
|
21922
|
+
async runTrigger({ trigger, triggerInput = {} }, options) {
|
|
21876
21923
|
const request = new avs_pb24.RunTriggerReq();
|
|
21877
|
-
const
|
|
21878
|
-
request.
|
|
21879
|
-
const
|
|
21880
|
-
for (const [key, value] of Object.entries(
|
|
21881
|
-
|
|
21882
|
-
}
|
|
21883
|
-
if (inputVariables) {
|
|
21884
|
-
const triggerInputMap = request.getTriggerInputMap();
|
|
21885
|
-
for (const [key, value] of Object.entries(inputVariables)) {
|
|
21886
|
-
triggerInputMap.set(key, convertJSValueToProtobuf(value));
|
|
21887
|
-
}
|
|
21924
|
+
const triggerSdk = factory_default.create(trigger);
|
|
21925
|
+
request.setTrigger(triggerSdk.toRequest());
|
|
21926
|
+
const triggerInputMap = request.getTriggerInputMap();
|
|
21927
|
+
for (const [key, value] of Object.entries(triggerInput)) {
|
|
21928
|
+
triggerInputMap.set(key, convertJSValueToProtobuf(value));
|
|
21888
21929
|
}
|
|
21889
21930
|
const result = await this.sendGrpcRequest("runTrigger", request, options);
|
|
21890
|
-
let metadata = void 0;
|
|
21891
|
-
const metadataValue = result.getMetadata();
|
|
21892
|
-
if (metadataValue) {
|
|
21893
|
-
try {
|
|
21894
|
-
metadata = convertProtobufValueToJs(metadataValue);
|
|
21895
|
-
} catch (error) {
|
|
21896
|
-
console.warn("Failed to convert metadata from protobuf Value:", error);
|
|
21897
|
-
metadata = metadataValue;
|
|
21898
|
-
}
|
|
21899
|
-
}
|
|
21900
21931
|
return {
|
|
21901
21932
|
success: result.getSuccess(),
|
|
21902
21933
|
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
21903
21934
|
error: result.getError(),
|
|
21904
21935
|
errorCode: result.getErrorCode() || void 0,
|
|
21905
|
-
metadata: toCamelCaseKeys(
|
|
21936
|
+
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
21906
21937
|
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21907
21938
|
convertProtobufValueToJs(result.getExecutionContext())
|
|
21908
21939
|
) : void 0
|