UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

151 lines (150 loc) 4.74 kB
export declare const action: { CREATE: string; CREATE_ERROR: string; CREATE_SUCCESS: string; DELETE_BY_ENTITYID: string; DELETE_ERROR: string; DELETE_SUCCESS: string; DELETE_BY_ENTITYID_COMMITID: string; QUERY_BY_ENTITY_ID: string; QUERY_BY_ENTITY_NAME: string; QUERY_BY_ENTITYID_COMMITID: string; QUERY_ERROR: string; QUERY_SUCCESS: string; TRACK: string; TRACK_ERROR: string; TRACK_SUCCESS: string; create: (option: { tx_id: string; args: { entityName: string; parentName?: string; id: string; version: number; events: import("../..").BaseEvent[]; isPrivateData: boolean; signedRequest?: string; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; deleteCommitByEntityId: (option: { tx_id: string; args: { entityName: string; id: string; isPrivateData: boolean; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; deleteByEntityIdCommitId: (option: { tx_id: string; args: { entityName: string; id: string; commitId: string; isPrivateData: boolean; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; queryByEntityId: (option: { tx_id: string; args: { entityName: string; id: string; isPrivateData: boolean; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; queryByEntityName: (option: { tx_id: string; args: { entityName: string; isPrivateData: boolean; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; queryByEntIdCommitId: (option: { tx_id: string; args: { entityName: string; id: string; commitId: string; isPrivateData: boolean; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; track: (option: { tx_id: string; args: { entityName?: string; parentName?: string; id: string; version: number; }; store?: import("redux").Store<any, import("redux").AnyAction>; enrollmentId?: string; channelName?: string; connectionProfile?: string; wallet?: import("fabric-network").Wallet; }) => import("redux").AnyAction; createError: ({ tx_id, error }: { tx_id: string; error: any; }) => import("redux").AnyAction; createSuccess: ({ tx_id, result, args }: { tx_id: string; result: any; args?: any; }) => import("redux").AnyAction; deleteError: ({ tx_id, error }: { tx_id: string; error: any; }) => import("redux").AnyAction; deleteSuccess: ({ tx_id, result, args }: { tx_id: string; result: any; args?: any; }) => import("redux").AnyAction; queryError: ({ tx_id, error }: { tx_id: string; error: any; }) => import("redux").AnyAction; querySuccess: ({ tx_id, result, args }: { tx_id: string; result: any; args?: any; }) => import("redux").AnyAction; trackError: ({ tx_id, error }: { tx_id: string; error: any; }) => import("redux").AnyAction; trackSuccess: ({ tx_id, result, args }: { tx_id: string; result: any; args?: any; }) => import("redux").AnyAction; };