@avaprotocol/sdk-js 1.2.1-dev.6 → 1.2.1-dev.7
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/dist/index.d.mts +73 -14
- package/dist/index.d.ts +73 -14
- package/dist/index.js +274 -72
- package/dist/index.mjs +274 -72
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -930,8 +930,10 @@ declare namespace ListWalletResp {
|
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
declare class ListTasksReq extends jspb.Message {
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
clearSmartWalletAddressList(): void;
|
|
934
|
+
getSmartWalletAddressList(): Array<string>;
|
|
935
|
+
setSmartWalletAddressList(value: Array<string>): ListTasksReq;
|
|
936
|
+
addSmartWalletAddress(value: string, index?: number): string;
|
|
935
937
|
getCursor(): string;
|
|
936
938
|
setCursor(value: string): ListTasksReq;
|
|
937
939
|
getItemPerPage(): number;
|
|
@@ -949,7 +951,7 @@ declare class ListTasksReq extends jspb.Message {
|
|
|
949
951
|
|
|
950
952
|
declare namespace ListTasksReq {
|
|
951
953
|
export type AsObject = {
|
|
952
|
-
|
|
954
|
+
smartWalletAddressList: Array<string>,
|
|
953
955
|
cursor: string,
|
|
954
956
|
itemPerPage: number,
|
|
955
957
|
}
|
|
@@ -962,6 +964,8 @@ declare class ListTasksResp extends jspb.Message {
|
|
|
962
964
|
addItems(value?: ListTasksResp.Item, index?: number): ListTasksResp.Item;
|
|
963
965
|
getCursor(): string;
|
|
964
966
|
setCursor(value: string): ListTasksResp;
|
|
967
|
+
getHasMore(): boolean;
|
|
968
|
+
setHasMore(value: boolean): ListTasksResp;
|
|
965
969
|
|
|
966
970
|
serializeBinary(): Uint8Array;
|
|
967
971
|
toObject(includeInstance?: boolean): ListTasksResp.AsObject;
|
|
@@ -977,6 +981,7 @@ declare namespace ListTasksResp {
|
|
|
977
981
|
export type AsObject = {
|
|
978
982
|
itemsList: Array<ListTasksResp.Item.AsObject>,
|
|
979
983
|
cursor: string,
|
|
984
|
+
hasMore: boolean,
|
|
980
985
|
}
|
|
981
986
|
|
|
982
987
|
|
|
@@ -1039,8 +1044,10 @@ declare namespace ListTasksResp {
|
|
|
1039
1044
|
}
|
|
1040
1045
|
|
|
1041
1046
|
declare class ListExecutionsReq extends jspb.Message {
|
|
1042
|
-
|
|
1043
|
-
|
|
1047
|
+
clearTaskIdsList(): void;
|
|
1048
|
+
getTaskIdsList(): Array<string>;
|
|
1049
|
+
setTaskIdsList(value: Array<string>): ListExecutionsReq;
|
|
1050
|
+
addTaskIds(value: string, index?: number): string;
|
|
1044
1051
|
getCursor(): string;
|
|
1045
1052
|
setCursor(value: string): ListExecutionsReq;
|
|
1046
1053
|
getItemPerPage(): number;
|
|
@@ -1058,7 +1065,7 @@ declare class ListExecutionsReq extends jspb.Message {
|
|
|
1058
1065
|
|
|
1059
1066
|
declare namespace ListExecutionsReq {
|
|
1060
1067
|
export type AsObject = {
|
|
1061
|
-
|
|
1068
|
+
taskIdsList: Array<string>,
|
|
1062
1069
|
cursor: string,
|
|
1063
1070
|
itemPerPage: number,
|
|
1064
1071
|
}
|
|
@@ -1071,6 +1078,8 @@ declare class ListExecutionsResp extends jspb.Message {
|
|
|
1071
1078
|
addItems(value?: Execution$1, index?: number): Execution$1;
|
|
1072
1079
|
getCursor(): string;
|
|
1073
1080
|
setCursor(value: string): ListExecutionsResp;
|
|
1081
|
+
getHasMore(): boolean;
|
|
1082
|
+
setHasMore(value: boolean): ListExecutionsResp;
|
|
1074
1083
|
|
|
1075
1084
|
serializeBinary(): Uint8Array;
|
|
1076
1085
|
toObject(includeInstance?: boolean): ListExecutionsResp.AsObject;
|
|
@@ -1086,6 +1095,30 @@ declare namespace ListExecutionsResp {
|
|
|
1086
1095
|
export type AsObject = {
|
|
1087
1096
|
itemsList: Array<Execution$1.AsObject>,
|
|
1088
1097
|
cursor: string,
|
|
1098
|
+
hasMore: boolean,
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
declare class GetExecutionReq extends jspb.Message {
|
|
1103
|
+
getTaskId(): string;
|
|
1104
|
+
setTaskId(value: string): GetExecutionReq;
|
|
1105
|
+
getExecutionId(): string;
|
|
1106
|
+
setExecutionId(value: string): GetExecutionReq;
|
|
1107
|
+
|
|
1108
|
+
serializeBinary(): Uint8Array;
|
|
1109
|
+
toObject(includeInstance?: boolean): GetExecutionReq.AsObject;
|
|
1110
|
+
static toObject(includeInstance: boolean, msg: GetExecutionReq): GetExecutionReq.AsObject;
|
|
1111
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1112
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1113
|
+
static serializeBinaryToWriter(message: GetExecutionReq, writer: jspb.BinaryWriter): void;
|
|
1114
|
+
static deserializeBinary(bytes: Uint8Array): GetExecutionReq;
|
|
1115
|
+
static deserializeBinaryFromReader(message: GetExecutionReq, reader: jspb.BinaryReader): GetExecutionReq;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
declare namespace GetExecutionReq {
|
|
1119
|
+
export type AsObject = {
|
|
1120
|
+
taskId: string,
|
|
1121
|
+
executionId: string,
|
|
1089
1122
|
}
|
|
1090
1123
|
}
|
|
1091
1124
|
|
|
@@ -1144,6 +1177,8 @@ declare class TriggerMetadata$1 extends jspb.Message {
|
|
|
1144
1177
|
setTxHash(value: string): TriggerMetadata$1;
|
|
1145
1178
|
getEpoch(): number;
|
|
1146
1179
|
setEpoch(value: number): TriggerMetadata$1;
|
|
1180
|
+
getType(): TriggerMetadata$1.TriggerType;
|
|
1181
|
+
setType(value: TriggerMetadata$1.TriggerType): TriggerMetadata$1;
|
|
1147
1182
|
|
|
1148
1183
|
serializeBinary(): Uint8Array;
|
|
1149
1184
|
toObject(includeInstance?: boolean): TriggerMetadata$1.AsObject;
|
|
@@ -1161,7 +1196,18 @@ declare namespace TriggerMetadata$1 {
|
|
|
1161
1196
|
logIndex: number,
|
|
1162
1197
|
txHash: string,
|
|
1163
1198
|
epoch: number,
|
|
1199
|
+
type: TriggerMetadata$1.TriggerType,
|
|
1164
1200
|
}
|
|
1201
|
+
|
|
1202
|
+
export enum TriggerType {
|
|
1203
|
+
UNSET = 0,
|
|
1204
|
+
MANUAL = 2,
|
|
1205
|
+
FIXEDTIME = 3,
|
|
1206
|
+
CRON = 4,
|
|
1207
|
+
BLOCK = 5,
|
|
1208
|
+
EVENT = 6,
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1165
1211
|
}
|
|
1166
1212
|
|
|
1167
1213
|
declare class GetWalletReq extends jspb.Message {
|
|
@@ -1247,8 +1293,6 @@ declare class UserTriggerTaskResp extends jspb.Message {
|
|
|
1247
1293
|
setResult(value: boolean): UserTriggerTaskResp;
|
|
1248
1294
|
getExecutionId(): string;
|
|
1249
1295
|
setExecutionId(value: string): UserTriggerTaskResp;
|
|
1250
|
-
getJobId(): string;
|
|
1251
|
-
setJobId(value: string): UserTriggerTaskResp;
|
|
1252
1296
|
|
|
1253
1297
|
serializeBinary(): Uint8Array;
|
|
1254
1298
|
toObject(includeInstance?: boolean): UserTriggerTaskResp.AsObject;
|
|
@@ -1264,7 +1308,6 @@ declare namespace UserTriggerTaskResp {
|
|
|
1264
1308
|
export type AsObject = {
|
|
1265
1309
|
result: boolean,
|
|
1266
1310
|
executionId: string,
|
|
1267
|
-
jobId: string,
|
|
1268
1311
|
}
|
|
1269
1312
|
}
|
|
1270
1313
|
|
|
@@ -1310,6 +1353,9 @@ interface IAggregatorClient {
|
|
|
1310
1353
|
listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1311
1354
|
listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1312
1355
|
listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1356
|
+
getExecution(request: GetExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1357
|
+
getExecution(request: GetExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1358
|
+
getExecution(request: GetExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1313
1359
|
cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1314
1360
|
cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1315
1361
|
cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
@@ -1347,6 +1393,9 @@ declare class AggregatorClient extends grpc.Client implements IAggregatorClient
|
|
|
1347
1393
|
public listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1348
1394
|
public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1349
1395
|
public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1396
|
+
public getExecution(request: GetExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1397
|
+
public getExecution(request: GetExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1398
|
+
public getExecution(request: GetExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1350
1399
|
public cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1351
1400
|
public cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1352
1401
|
public cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
@@ -1759,23 +1808,33 @@ declare class Client extends BaseClient {
|
|
|
1759
1808
|
* @param {RequestOptions} options - Request options
|
|
1760
1809
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
1761
1810
|
*/
|
|
1762
|
-
getWorkflows(
|
|
1811
|
+
getWorkflows(addresses: string[], options?: GetWorkflowsRequest): Promise<{
|
|
1763
1812
|
cursor: string;
|
|
1764
1813
|
result: Workflow[];
|
|
1814
|
+
hasMore: boolean;
|
|
1765
1815
|
}>;
|
|
1766
1816
|
/**
|
|
1767
|
-
* Get the list of executions for
|
|
1768
|
-
* @param {string}
|
|
1817
|
+
* Get the list of executions for multiple workflow given in the workflows argument.
|
|
1818
|
+
* @param {string[]} workflows - The list of workflow ids to fetch execution for
|
|
1769
1819
|
* @param {GetExecutionsRequest} options - Request options
|
|
1770
1820
|
* @param {string} [options.cursor] - The cursor for pagination
|
|
1771
1821
|
* @param {number} [options.limit] - The page limit of the response; default is 10
|
|
1772
1822
|
* @param {string} [options.authKey] - The auth key for the request
|
|
1773
1823
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
1774
1824
|
*/
|
|
1775
|
-
getExecutions(
|
|
1825
|
+
getExecutions(workflows: string[], options?: GetExecutionsRequest): Promise<{
|
|
1776
1826
|
cursor: string;
|
|
1777
1827
|
result: Execution[];
|
|
1828
|
+
hasMore: boolean;
|
|
1778
1829
|
}>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Get a single execution for given workflow and execution id
|
|
1832
|
+
* @param {string} workflowId - The workflow id
|
|
1833
|
+
* @param {string} executionId - The exectuion id
|
|
1834
|
+
* @param {GetExecutionsRequest} options - Request options
|
|
1835
|
+
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
1836
|
+
*/
|
|
1837
|
+
getExecution(taskId: string, executionId: string, options?: RequestOptions): Promise<Execution>;
|
|
1779
1838
|
/**
|
|
1780
1839
|
* Get a workflow by its Id
|
|
1781
1840
|
* @param {string} id - The Id of the workflow
|
|
@@ -1812,4 +1871,4 @@ declare class Client extends BaseClient {
|
|
|
1812
1871
|
deleteWorkflow(id: string, options?: RequestOptions): Promise<boolean>;
|
|
1813
1872
|
}
|
|
1814
1873
|
|
|
1815
|
-
export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeProps, CronTrigger, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerProps, Execution, FixedTimeTrigger, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeProps, Node, NodeFactory, type NodeProps, type NodeType, NodeTypes, type RequestOptions, RestAPINode, type RestAPINodeProps, type SmartWallet, Trigger, TriggerFactory, type TriggerProps,
|
|
1874
|
+
export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeProps, CronTrigger, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerProps, Execution, FixedTimeTrigger, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeProps, Node, NodeFactory, type NodeProps, type NodeType, NodeTypes, type RequestOptions, RestAPINode, type RestAPINodeProps, type SmartWallet, Trigger, TriggerFactory, type TriggerProps, TriggerType, TriggerTypes, Workflow, type WorkflowProps, type WorkflowStatus, WorkflowStatuses, Client as default, getKeyRequestMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -930,8 +930,10 @@ declare namespace ListWalletResp {
|
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
declare class ListTasksReq extends jspb.Message {
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
clearSmartWalletAddressList(): void;
|
|
934
|
+
getSmartWalletAddressList(): Array<string>;
|
|
935
|
+
setSmartWalletAddressList(value: Array<string>): ListTasksReq;
|
|
936
|
+
addSmartWalletAddress(value: string, index?: number): string;
|
|
935
937
|
getCursor(): string;
|
|
936
938
|
setCursor(value: string): ListTasksReq;
|
|
937
939
|
getItemPerPage(): number;
|
|
@@ -949,7 +951,7 @@ declare class ListTasksReq extends jspb.Message {
|
|
|
949
951
|
|
|
950
952
|
declare namespace ListTasksReq {
|
|
951
953
|
export type AsObject = {
|
|
952
|
-
|
|
954
|
+
smartWalletAddressList: Array<string>,
|
|
953
955
|
cursor: string,
|
|
954
956
|
itemPerPage: number,
|
|
955
957
|
}
|
|
@@ -962,6 +964,8 @@ declare class ListTasksResp extends jspb.Message {
|
|
|
962
964
|
addItems(value?: ListTasksResp.Item, index?: number): ListTasksResp.Item;
|
|
963
965
|
getCursor(): string;
|
|
964
966
|
setCursor(value: string): ListTasksResp;
|
|
967
|
+
getHasMore(): boolean;
|
|
968
|
+
setHasMore(value: boolean): ListTasksResp;
|
|
965
969
|
|
|
966
970
|
serializeBinary(): Uint8Array;
|
|
967
971
|
toObject(includeInstance?: boolean): ListTasksResp.AsObject;
|
|
@@ -977,6 +981,7 @@ declare namespace ListTasksResp {
|
|
|
977
981
|
export type AsObject = {
|
|
978
982
|
itemsList: Array<ListTasksResp.Item.AsObject>,
|
|
979
983
|
cursor: string,
|
|
984
|
+
hasMore: boolean,
|
|
980
985
|
}
|
|
981
986
|
|
|
982
987
|
|
|
@@ -1039,8 +1044,10 @@ declare namespace ListTasksResp {
|
|
|
1039
1044
|
}
|
|
1040
1045
|
|
|
1041
1046
|
declare class ListExecutionsReq extends jspb.Message {
|
|
1042
|
-
|
|
1043
|
-
|
|
1047
|
+
clearTaskIdsList(): void;
|
|
1048
|
+
getTaskIdsList(): Array<string>;
|
|
1049
|
+
setTaskIdsList(value: Array<string>): ListExecutionsReq;
|
|
1050
|
+
addTaskIds(value: string, index?: number): string;
|
|
1044
1051
|
getCursor(): string;
|
|
1045
1052
|
setCursor(value: string): ListExecutionsReq;
|
|
1046
1053
|
getItemPerPage(): number;
|
|
@@ -1058,7 +1065,7 @@ declare class ListExecutionsReq extends jspb.Message {
|
|
|
1058
1065
|
|
|
1059
1066
|
declare namespace ListExecutionsReq {
|
|
1060
1067
|
export type AsObject = {
|
|
1061
|
-
|
|
1068
|
+
taskIdsList: Array<string>,
|
|
1062
1069
|
cursor: string,
|
|
1063
1070
|
itemPerPage: number,
|
|
1064
1071
|
}
|
|
@@ -1071,6 +1078,8 @@ declare class ListExecutionsResp extends jspb.Message {
|
|
|
1071
1078
|
addItems(value?: Execution$1, index?: number): Execution$1;
|
|
1072
1079
|
getCursor(): string;
|
|
1073
1080
|
setCursor(value: string): ListExecutionsResp;
|
|
1081
|
+
getHasMore(): boolean;
|
|
1082
|
+
setHasMore(value: boolean): ListExecutionsResp;
|
|
1074
1083
|
|
|
1075
1084
|
serializeBinary(): Uint8Array;
|
|
1076
1085
|
toObject(includeInstance?: boolean): ListExecutionsResp.AsObject;
|
|
@@ -1086,6 +1095,30 @@ declare namespace ListExecutionsResp {
|
|
|
1086
1095
|
export type AsObject = {
|
|
1087
1096
|
itemsList: Array<Execution$1.AsObject>,
|
|
1088
1097
|
cursor: string,
|
|
1098
|
+
hasMore: boolean,
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
declare class GetExecutionReq extends jspb.Message {
|
|
1103
|
+
getTaskId(): string;
|
|
1104
|
+
setTaskId(value: string): GetExecutionReq;
|
|
1105
|
+
getExecutionId(): string;
|
|
1106
|
+
setExecutionId(value: string): GetExecutionReq;
|
|
1107
|
+
|
|
1108
|
+
serializeBinary(): Uint8Array;
|
|
1109
|
+
toObject(includeInstance?: boolean): GetExecutionReq.AsObject;
|
|
1110
|
+
static toObject(includeInstance: boolean, msg: GetExecutionReq): GetExecutionReq.AsObject;
|
|
1111
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1112
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1113
|
+
static serializeBinaryToWriter(message: GetExecutionReq, writer: jspb.BinaryWriter): void;
|
|
1114
|
+
static deserializeBinary(bytes: Uint8Array): GetExecutionReq;
|
|
1115
|
+
static deserializeBinaryFromReader(message: GetExecutionReq, reader: jspb.BinaryReader): GetExecutionReq;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
declare namespace GetExecutionReq {
|
|
1119
|
+
export type AsObject = {
|
|
1120
|
+
taskId: string,
|
|
1121
|
+
executionId: string,
|
|
1089
1122
|
}
|
|
1090
1123
|
}
|
|
1091
1124
|
|
|
@@ -1144,6 +1177,8 @@ declare class TriggerMetadata$1 extends jspb.Message {
|
|
|
1144
1177
|
setTxHash(value: string): TriggerMetadata$1;
|
|
1145
1178
|
getEpoch(): number;
|
|
1146
1179
|
setEpoch(value: number): TriggerMetadata$1;
|
|
1180
|
+
getType(): TriggerMetadata$1.TriggerType;
|
|
1181
|
+
setType(value: TriggerMetadata$1.TriggerType): TriggerMetadata$1;
|
|
1147
1182
|
|
|
1148
1183
|
serializeBinary(): Uint8Array;
|
|
1149
1184
|
toObject(includeInstance?: boolean): TriggerMetadata$1.AsObject;
|
|
@@ -1161,7 +1196,18 @@ declare namespace TriggerMetadata$1 {
|
|
|
1161
1196
|
logIndex: number,
|
|
1162
1197
|
txHash: string,
|
|
1163
1198
|
epoch: number,
|
|
1199
|
+
type: TriggerMetadata$1.TriggerType,
|
|
1164
1200
|
}
|
|
1201
|
+
|
|
1202
|
+
export enum TriggerType {
|
|
1203
|
+
UNSET = 0,
|
|
1204
|
+
MANUAL = 2,
|
|
1205
|
+
FIXEDTIME = 3,
|
|
1206
|
+
CRON = 4,
|
|
1207
|
+
BLOCK = 5,
|
|
1208
|
+
EVENT = 6,
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1165
1211
|
}
|
|
1166
1212
|
|
|
1167
1213
|
declare class GetWalletReq extends jspb.Message {
|
|
@@ -1247,8 +1293,6 @@ declare class UserTriggerTaskResp extends jspb.Message {
|
|
|
1247
1293
|
setResult(value: boolean): UserTriggerTaskResp;
|
|
1248
1294
|
getExecutionId(): string;
|
|
1249
1295
|
setExecutionId(value: string): UserTriggerTaskResp;
|
|
1250
|
-
getJobId(): string;
|
|
1251
|
-
setJobId(value: string): UserTriggerTaskResp;
|
|
1252
1296
|
|
|
1253
1297
|
serializeBinary(): Uint8Array;
|
|
1254
1298
|
toObject(includeInstance?: boolean): UserTriggerTaskResp.AsObject;
|
|
@@ -1264,7 +1308,6 @@ declare namespace UserTriggerTaskResp {
|
|
|
1264
1308
|
export type AsObject = {
|
|
1265
1309
|
result: boolean,
|
|
1266
1310
|
executionId: string,
|
|
1267
|
-
jobId: string,
|
|
1268
1311
|
}
|
|
1269
1312
|
}
|
|
1270
1313
|
|
|
@@ -1310,6 +1353,9 @@ interface IAggregatorClient {
|
|
|
1310
1353
|
listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1311
1354
|
listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1312
1355
|
listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1356
|
+
getExecution(request: GetExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1357
|
+
getExecution(request: GetExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1358
|
+
getExecution(request: GetExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1313
1359
|
cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1314
1360
|
cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1315
1361
|
cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
@@ -1347,6 +1393,9 @@ declare class AggregatorClient extends grpc.Client implements IAggregatorClient
|
|
|
1347
1393
|
public listExecutions(request: ListExecutionsReq, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1348
1394
|
public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1349
1395
|
public listExecutions(request: ListExecutionsReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ListExecutionsResp) => void): grpc.ClientUnaryCall;
|
|
1396
|
+
public getExecution(request: GetExecutionReq, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1397
|
+
public getExecution(request: GetExecutionReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1398
|
+
public getExecution(request: GetExecutionReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: Execution$1) => void): grpc.ClientUnaryCall;
|
|
1350
1399
|
public cancelTask(request: IdReq, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1351
1400
|
public cancelTask(request: IdReq, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
1352
1401
|
public cancelTask(request: IdReq, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_wrappers_pb.BoolValue) => void): grpc.ClientUnaryCall;
|
|
@@ -1759,23 +1808,33 @@ declare class Client extends BaseClient {
|
|
|
1759
1808
|
* @param {RequestOptions} options - Request options
|
|
1760
1809
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
1761
1810
|
*/
|
|
1762
|
-
getWorkflows(
|
|
1811
|
+
getWorkflows(addresses: string[], options?: GetWorkflowsRequest): Promise<{
|
|
1763
1812
|
cursor: string;
|
|
1764
1813
|
result: Workflow[];
|
|
1814
|
+
hasMore: boolean;
|
|
1765
1815
|
}>;
|
|
1766
1816
|
/**
|
|
1767
|
-
* Get the list of executions for
|
|
1768
|
-
* @param {string}
|
|
1817
|
+
* Get the list of executions for multiple workflow given in the workflows argument.
|
|
1818
|
+
* @param {string[]} workflows - The list of workflow ids to fetch execution for
|
|
1769
1819
|
* @param {GetExecutionsRequest} options - Request options
|
|
1770
1820
|
* @param {string} [options.cursor] - The cursor for pagination
|
|
1771
1821
|
* @param {number} [options.limit] - The page limit of the response; default is 10
|
|
1772
1822
|
* @param {string} [options.authKey] - The auth key for the request
|
|
1773
1823
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
1774
1824
|
*/
|
|
1775
|
-
getExecutions(
|
|
1825
|
+
getExecutions(workflows: string[], options?: GetExecutionsRequest): Promise<{
|
|
1776
1826
|
cursor: string;
|
|
1777
1827
|
result: Execution[];
|
|
1828
|
+
hasMore: boolean;
|
|
1778
1829
|
}>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Get a single execution for given workflow and execution id
|
|
1832
|
+
* @param {string} workflowId - The workflow id
|
|
1833
|
+
* @param {string} executionId - The exectuion id
|
|
1834
|
+
* @param {GetExecutionsRequest} options - Request options
|
|
1835
|
+
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
1836
|
+
*/
|
|
1837
|
+
getExecution(taskId: string, executionId: string, options?: RequestOptions): Promise<Execution>;
|
|
1779
1838
|
/**
|
|
1780
1839
|
* Get a workflow by its Id
|
|
1781
1840
|
* @param {string} id - The Id of the workflow
|
|
@@ -1812,4 +1871,4 @@ declare class Client extends BaseClient {
|
|
|
1812
1871
|
deleteWorkflow(id: string, options?: RequestOptions): Promise<boolean>;
|
|
1813
1872
|
}
|
|
1814
1873
|
|
|
1815
|
-
export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeProps, CronTrigger, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerProps, Execution, FixedTimeTrigger, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeProps, Node, NodeFactory, type NodeProps, type NodeType, NodeTypes, type RequestOptions, RestAPINode, type RestAPINodeProps, type SmartWallet, Trigger, TriggerFactory, type TriggerProps,
|
|
1874
|
+
export { AUTH_KEY_HEADER, BlockTrigger, type BlockTriggerProps, BranchNode, type BranchNodeData, type BranchNodeProps, type ClientOption, ContractReadNode, type ContractReadNodeProps, ContractWriteNode, type ContractWriteNodeProps, CronTrigger, type CronTriggerProps, CustomCodeLangs, CustomCodeNode, type CustomCodeNodeProps, DEFAULT_LIMIT, ETHTransferNode, type ETHTransferNodeProps, Edge, type EdgeProps, type Environment, EventTrigger, type EventTriggerProps, Execution, FixedTimeTrigger, type FixedTimeTriggerProps, type GetExecutionsRequest, type GetKeyResponse, type GetWalletRequest, type GetWorkflowsRequest, GraphQLQueryNode, type GraphQLQueryNodeProps, Node, NodeFactory, type NodeProps, type NodeType, NodeTypes, type RequestOptions, RestAPINode, type RestAPINodeProps, type SmartWallet, Trigger, TriggerFactory, type TriggerProps, TriggerType, TriggerTypes, Workflow, type WorkflowProps, type WorkflowStatus, WorkflowStatuses, Client as default, getKeyRequestMessage };
|