@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
50 lines (49 loc) • 1.61 kB
TypeScript
export declare const action: {
MERGE_ENTITY: string;
MERGE_ENTITY_SUCCESS: string;
MERGE_ENTITY_ERROR: string;
MERGE_ENTITY_BATCH: string;
MERGE_ENTITY_BATCH_SUCCESS: string;
MERGE_ENTITY_BATCH_ERROR: string;
mergeEntity: (option: {
tx_id: string;
args: {
commit: import("../..").Commit;
};
store?: import("redux").Store<any, import("redux").AnyAction>;
enrollmentId?: string;
channelName?: string;
connectionProfile?: string;
wallet?: import("fabric-network").Wallet;
}) => import("redux").AnyAction;
mergeEntitySuccess: ({ tx_id, result, args }: {
tx_id: string;
result: any;
args?: any;
}) => import("redux").AnyAction;
mergeEntityError: ({ tx_id, error }: {
tx_id: string;
error: any;
}) => import("redux").AnyAction;
mergeEntityBatch: (option: {
tx_id: string;
args: {
entityName: string;
commits: Record<string, import("../..").Commit>;
};
store?: import("redux").Store<any, import("redux").AnyAction>;
enrollmentId?: string;
channelName?: string;
connectionProfile?: string;
wallet?: import("fabric-network").Wallet;
}) => import("redux").AnyAction;
mergeEntityBatchError: ({ tx_id, error }: {
tx_id: string;
error: any;
}) => import("redux").AnyAction;
mergeEntityBatchSuccess: ({ tx_id, result, args }: {
tx_id: string;
result: any;
args?: any;
}) => import("redux").AnyAction;
};