@avaprotocol/sdk-js 2.7.2 → 2.7.3
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 +8 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -0
- package/dist/index.mjs +53 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import Step from "./models/step";
|
|
|
7
7
|
import NodeFactory from "./models/node/factory";
|
|
8
8
|
import TriggerFactory from "./models/trigger/factory";
|
|
9
9
|
import Secret from "./models/secret";
|
|
10
|
-
import { type WorkflowProps, type GetKeyResponse, type RequestOptions, type ClientOption, type SmartWallet, type GetWalletRequest, type GetExecutionsOptions, type GetWorkflowsOptions, type GetSignatureFormatResponse, type RunNodeWithInputsRequest, type RunNodeWithInputsResponse, type RunTriggerRequest, type RunTriggerResponse, type SecretProps, type PageInfo, type GetSecretsOptions, type SecretOptions, type TriggerDataProps, type SimulateWorkflowRequest, type ExecutionProps, type GetTokenMetadataRequest, type GetTokenMetadataResponse, type TimeoutConfig, type CreateSecretResponse, type UpdateSecretResponse, type DeleteSecretResponse, type CancelTaskResponse, type DeleteTaskResponse, type GetExecutionStatsResponse, type GetExecutionStatsOptions, ExecutionStatus, type TriggerWorkflowResponse, type WithdrawFundsRequest, type WithdrawFundsResponse } from "@avaprotocol/types";
|
|
10
|
+
import { ErrorCode, type WorkflowProps, type GetKeyResponse, type RequestOptions, type ClientOption, type SmartWallet, type GetWalletRequest, type GetExecutionsOptions, type GetWorkflowsOptions, type GetSignatureFormatResponse, type RunNodeWithInputsRequest, type RunNodeWithInputsResponse, type RunTriggerRequest, type RunTriggerResponse, type SecretProps, type PageInfo, type GetSecretsOptions, type SecretOptions, type TriggerDataProps, type SimulateWorkflowRequest, type ExecutionProps, type GetTokenMetadataRequest, type GetTokenMetadataResponse, type TimeoutConfig, type CreateSecretResponse, type UpdateSecretResponse, type DeleteSecretResponse, type CancelTaskResponse, type DeleteTaskResponse, type GetExecutionStatsResponse, type GetExecutionStatsOptions, ExecutionStatus, type TriggerWorkflowResponse, type WithdrawFundsRequest, type WithdrawFundsResponse } from "@avaprotocol/types";
|
|
11
11
|
import { cleanGrpcErrorMessage } from "./utils";
|
|
12
12
|
declare class BaseClient {
|
|
13
13
|
readonly endpoint: string;
|
|
@@ -354,7 +354,7 @@ declare class Client extends BaseClient {
|
|
|
354
354
|
}
|
|
355
355
|
export * from "./models/node/factory";
|
|
356
356
|
export * from "./models/trigger/factory";
|
|
357
|
-
export { Client, Workflow, Edge, Execution, Step, NodeFactory, TriggerFactory, Secret, cleanGrpcErrorMessage, };
|
|
357
|
+
export { Client, Workflow, Edge, Execution, Step, NodeFactory, TriggerFactory, Secret, ErrorCode, cleanGrpcErrorMessage, };
|
|
358
358
|
export type { TokenMetadata, GetTokenMetadataRequest, GetTokenMetadataResponse, TokenSource, WithdrawFundsRequest, WithdrawFundsResponse, } from "@avaprotocol/types";
|
|
359
359
|
export { TimeoutPresets, type TimeoutConfig, type TimeoutError, } from "@avaprotocol/types";
|
|
360
360
|
//# sourceMappingURL=index.d.ts.map
|
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,iBA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AgB,CACpB,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,cAAmB,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,SAAS,EACT,qBAAqB,GACtB,CAAC;AAGF,YAAY,EACV,aAAa,EACb,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,EACX,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14062,6 +14062,7 @@ var require_avs_pb = __commonJS({
|
|
|
14062
14062
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14063
14063
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14064
14064
|
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14065
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
14065
14066
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
14066
14067
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
14067
14068
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -14114,6 +14115,13 @@ var require_avs_pb = __commonJS({
|
|
|
14114
14115
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14115
14116
|
msg.setExecutionContext(value);
|
|
14116
14117
|
break;
|
|
14118
|
+
case 7:
|
|
14119
|
+
var value = (
|
|
14120
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14121
|
+
reader.readEnum()
|
|
14122
|
+
);
|
|
14123
|
+
msg.setErrorCode(value);
|
|
14124
|
+
break;
|
|
14117
14125
|
case 10:
|
|
14118
14126
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
14119
14127
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -14203,6 +14211,13 @@ var require_avs_pb = __commonJS({
|
|
|
14203
14211
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14204
14212
|
);
|
|
14205
14213
|
}
|
|
14214
|
+
f = message.getErrorCode();
|
|
14215
|
+
if (f !== 0) {
|
|
14216
|
+
writer.writeEnum(
|
|
14217
|
+
7,
|
|
14218
|
+
f
|
|
14219
|
+
);
|
|
14220
|
+
}
|
|
14206
14221
|
f = message.getEthTransfer();
|
|
14207
14222
|
if (f != null) {
|
|
14208
14223
|
writer.writeMessage(
|
|
@@ -14324,6 +14339,15 @@ var require_avs_pb = __commonJS({
|
|
|
14324
14339
|
proto.aggregator.RunNodeWithInputsResp.prototype.hasExecutionContext = function() {
|
|
14325
14340
|
return jspb.Message.getField(this, 6) != null;
|
|
14326
14341
|
};
|
|
14342
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.getErrorCode = function() {
|
|
14343
|
+
return (
|
|
14344
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14345
|
+
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
14346
|
+
);
|
|
14347
|
+
};
|
|
14348
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.setErrorCode = function(value) {
|
|
14349
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
14350
|
+
};
|
|
14327
14351
|
proto.aggregator.RunNodeWithInputsResp.prototype.getEthTransfer = function() {
|
|
14328
14352
|
return (
|
|
14329
14353
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -14600,6 +14624,7 @@ var require_avs_pb = __commonJS({
|
|
|
14600
14624
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14601
14625
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14602
14626
|
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14627
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
14603
14628
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
14604
14629
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
14605
14630
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -14648,6 +14673,13 @@ var require_avs_pb = __commonJS({
|
|
|
14648
14673
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14649
14674
|
msg.setExecutionContext(value);
|
|
14650
14675
|
break;
|
|
14676
|
+
case 6:
|
|
14677
|
+
var value = (
|
|
14678
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14679
|
+
reader.readEnum()
|
|
14680
|
+
);
|
|
14681
|
+
msg.setErrorCode(value);
|
|
14682
|
+
break;
|
|
14651
14683
|
case 10:
|
|
14652
14684
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
14653
14685
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -14717,6 +14749,13 @@ var require_avs_pb = __commonJS({
|
|
|
14717
14749
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14718
14750
|
);
|
|
14719
14751
|
}
|
|
14752
|
+
f = message.getErrorCode();
|
|
14753
|
+
if (f !== 0) {
|
|
14754
|
+
writer.writeEnum(
|
|
14755
|
+
6,
|
|
14756
|
+
f
|
|
14757
|
+
);
|
|
14758
|
+
}
|
|
14720
14759
|
f = message.getBlockTrigger();
|
|
14721
14760
|
if (f != null) {
|
|
14722
14761
|
writer.writeMessage(
|
|
@@ -14806,6 +14845,15 @@ var require_avs_pb = __commonJS({
|
|
|
14806
14845
|
proto.aggregator.RunTriggerResp.prototype.hasExecutionContext = function() {
|
|
14807
14846
|
return jspb.Message.getField(this, 5) != null;
|
|
14808
14847
|
};
|
|
14848
|
+
proto.aggregator.RunTriggerResp.prototype.getErrorCode = function() {
|
|
14849
|
+
return (
|
|
14850
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14851
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
14852
|
+
);
|
|
14853
|
+
};
|
|
14854
|
+
proto.aggregator.RunTriggerResp.prototype.setErrorCode = function(value) {
|
|
14855
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
14856
|
+
};
|
|
14809
14857
|
proto.aggregator.RunTriggerResp.prototype.getBlockTrigger = function() {
|
|
14810
14858
|
return (
|
|
14811
14859
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -16048,6 +16096,7 @@ __export(index_exports, {
|
|
|
16048
16096
|
CustomCodeNode: () => customCode_default,
|
|
16049
16097
|
ETHTransferNode: () => ethTransfer_default,
|
|
16050
16098
|
Edge: () => edge_default,
|
|
16099
|
+
ErrorCode: () => import_types21.ErrorCode,
|
|
16051
16100
|
EventTrigger: () => event_default,
|
|
16052
16101
|
Execution: () => execution_default,
|
|
16053
16102
|
FilterNode: () => filter_default,
|
|
@@ -19118,6 +19167,7 @@ var Client = class extends BaseClient {
|
|
|
19118
19167
|
return {
|
|
19119
19168
|
success: false,
|
|
19120
19169
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
19170
|
+
errorCode: import_types21.ErrorCode.INVALID_REQUEST,
|
|
19121
19171
|
data: null
|
|
19122
19172
|
};
|
|
19123
19173
|
}
|
|
@@ -19139,6 +19189,7 @@ var Client = class extends BaseClient {
|
|
|
19139
19189
|
success: result.getSuccess(),
|
|
19140
19190
|
data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
|
|
19141
19191
|
error: result.getError(),
|
|
19192
|
+
errorCode: result.getErrorCode() || void 0,
|
|
19142
19193
|
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
19143
19194
|
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
19144
19195
|
};
|
|
@@ -19174,6 +19225,7 @@ var Client = class extends BaseClient {
|
|
|
19174
19225
|
success: result.getSuccess(),
|
|
19175
19226
|
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
19176
19227
|
error: result.getError(),
|
|
19228
|
+
errorCode: result.getErrorCode() || void 0,
|
|
19177
19229
|
metadata: toCamelCaseKeys(metadata),
|
|
19178
19230
|
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
19179
19231
|
};
|
|
@@ -19245,6 +19297,7 @@ var Client = class extends BaseClient {
|
|
|
19245
19297
|
CustomCodeNode,
|
|
19246
19298
|
ETHTransferNode,
|
|
19247
19299
|
Edge,
|
|
19300
|
+
ErrorCode,
|
|
19248
19301
|
EventTrigger,
|
|
19249
19302
|
Execution,
|
|
19250
19303
|
FilterNode,
|
package/dist/index.mjs
CHANGED
|
@@ -14062,6 +14062,7 @@ var require_avs_pb = __commonJS({
|
|
|
14062
14062
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14063
14063
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14064
14064
|
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14065
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
14065
14066
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
14066
14067
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
14067
14068
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -14114,6 +14115,13 @@ var require_avs_pb = __commonJS({
|
|
|
14114
14115
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14115
14116
|
msg.setExecutionContext(value);
|
|
14116
14117
|
break;
|
|
14118
|
+
case 7:
|
|
14119
|
+
var value = (
|
|
14120
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14121
|
+
reader.readEnum()
|
|
14122
|
+
);
|
|
14123
|
+
msg.setErrorCode(value);
|
|
14124
|
+
break;
|
|
14117
14125
|
case 10:
|
|
14118
14126
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
14119
14127
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -14203,6 +14211,13 @@ var require_avs_pb = __commonJS({
|
|
|
14203
14211
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14204
14212
|
);
|
|
14205
14213
|
}
|
|
14214
|
+
f = message.getErrorCode();
|
|
14215
|
+
if (f !== 0) {
|
|
14216
|
+
writer.writeEnum(
|
|
14217
|
+
7,
|
|
14218
|
+
f
|
|
14219
|
+
);
|
|
14220
|
+
}
|
|
14206
14221
|
f = message.getEthTransfer();
|
|
14207
14222
|
if (f != null) {
|
|
14208
14223
|
writer.writeMessage(
|
|
@@ -14324,6 +14339,15 @@ var require_avs_pb = __commonJS({
|
|
|
14324
14339
|
proto.aggregator.RunNodeWithInputsResp.prototype.hasExecutionContext = function() {
|
|
14325
14340
|
return jspb.Message.getField(this, 6) != null;
|
|
14326
14341
|
};
|
|
14342
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.getErrorCode = function() {
|
|
14343
|
+
return (
|
|
14344
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14345
|
+
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
14346
|
+
);
|
|
14347
|
+
};
|
|
14348
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.setErrorCode = function(value) {
|
|
14349
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
14350
|
+
};
|
|
14327
14351
|
proto.aggregator.RunNodeWithInputsResp.prototype.getEthTransfer = function() {
|
|
14328
14352
|
return (
|
|
14329
14353
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -14600,6 +14624,7 @@ var require_avs_pb = __commonJS({
|
|
|
14600
14624
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14601
14625
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14602
14626
|
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14627
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
14603
14628
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
14604
14629
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
14605
14630
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -14648,6 +14673,13 @@ var require_avs_pb = __commonJS({
|
|
|
14648
14673
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14649
14674
|
msg.setExecutionContext(value);
|
|
14650
14675
|
break;
|
|
14676
|
+
case 6:
|
|
14677
|
+
var value = (
|
|
14678
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14679
|
+
reader.readEnum()
|
|
14680
|
+
);
|
|
14681
|
+
msg.setErrorCode(value);
|
|
14682
|
+
break;
|
|
14651
14683
|
case 10:
|
|
14652
14684
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
14653
14685
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -14717,6 +14749,13 @@ var require_avs_pb = __commonJS({
|
|
|
14717
14749
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14718
14750
|
);
|
|
14719
14751
|
}
|
|
14752
|
+
f = message.getErrorCode();
|
|
14753
|
+
if (f !== 0) {
|
|
14754
|
+
writer.writeEnum(
|
|
14755
|
+
6,
|
|
14756
|
+
f
|
|
14757
|
+
);
|
|
14758
|
+
}
|
|
14720
14759
|
f = message.getBlockTrigger();
|
|
14721
14760
|
if (f != null) {
|
|
14722
14761
|
writer.writeMessage(
|
|
@@ -14806,6 +14845,15 @@ var require_avs_pb = __commonJS({
|
|
|
14806
14845
|
proto.aggregator.RunTriggerResp.prototype.hasExecutionContext = function() {
|
|
14807
14846
|
return jspb.Message.getField(this, 5) != null;
|
|
14808
14847
|
};
|
|
14848
|
+
proto.aggregator.RunTriggerResp.prototype.getErrorCode = function() {
|
|
14849
|
+
return (
|
|
14850
|
+
/** @type {!proto.aggregator.ErrorCode} */
|
|
14851
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
14852
|
+
);
|
|
14853
|
+
};
|
|
14854
|
+
proto.aggregator.RunTriggerResp.prototype.setErrorCode = function(value) {
|
|
14855
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
14856
|
+
};
|
|
14809
14857
|
proto.aggregator.RunTriggerResp.prototype.getBlockTrigger = function() {
|
|
14810
14858
|
return (
|
|
14811
14859
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -18218,6 +18266,7 @@ import {
|
|
|
18218
18266
|
TriggerTypeConverter as TriggerTypeConverter2,
|
|
18219
18267
|
AUTH_KEY_HEADER,
|
|
18220
18268
|
DEFAULT_LIMIT,
|
|
18269
|
+
ErrorCode,
|
|
18221
18270
|
TimeoutPresets,
|
|
18222
18271
|
ExecutionStatus as ExecutionStatus3
|
|
18223
18272
|
} from "@avaprotocol/types";
|
|
@@ -19136,6 +19185,7 @@ var Client = class extends BaseClient {
|
|
|
19136
19185
|
return {
|
|
19137
19186
|
success: false,
|
|
19138
19187
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
19188
|
+
errorCode: ErrorCode.INVALID_REQUEST,
|
|
19139
19189
|
data: null
|
|
19140
19190
|
};
|
|
19141
19191
|
}
|
|
@@ -19157,6 +19207,7 @@ var Client = class extends BaseClient {
|
|
|
19157
19207
|
success: result.getSuccess(),
|
|
19158
19208
|
data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
|
|
19159
19209
|
error: result.getError(),
|
|
19210
|
+
errorCode: result.getErrorCode() || void 0,
|
|
19160
19211
|
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
19161
19212
|
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
19162
19213
|
};
|
|
@@ -19192,6 +19243,7 @@ var Client = class extends BaseClient {
|
|
|
19192
19243
|
success: result.getSuccess(),
|
|
19193
19244
|
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
19194
19245
|
error: result.getError(),
|
|
19246
|
+
errorCode: result.getErrorCode() || void 0,
|
|
19195
19247
|
metadata: toCamelCaseKeys(metadata),
|
|
19196
19248
|
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
19197
19249
|
};
|
|
@@ -19262,6 +19314,7 @@ export {
|
|
|
19262
19314
|
customCode_default as CustomCodeNode,
|
|
19263
19315
|
ethTransfer_default as ETHTransferNode,
|
|
19264
19316
|
edge_default as Edge,
|
|
19317
|
+
ErrorCode,
|
|
19265
19318
|
event_default as EventTrigger,
|
|
19266
19319
|
execution_default as Execution,
|
|
19267
19320
|
filter_default as FilterNode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avaprotocol/sdk-js",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "A JavaScript/TypeScript SDK designed to simplify integration with Ava Protocol's AVS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepare": "node ../../scripts/prepare-package.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@avaprotocol/types": "^2.5.
|
|
34
|
+
"@avaprotocol/types": "^2.5.3",
|
|
35
35
|
"@grpc/grpc-js": "^1.11.3",
|
|
36
36
|
"@grpc/proto-loader": "^0.7.13",
|
|
37
37
|
"dotenv": "^16.4.5",
|