@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
11 lines (10 loc) • 472 B
TypeScript
import { Commit } from '../../types';
import { RedisearchDefinition } from './redisearchDefinition';
export declare type CommonCommitFields = Pick<Commit, 'id' | 'commitId' | 'entityName' | 'mspId' | 'version' | 'events' | 'signedRequest'>;
export declare type DerivedCommitFields = {
creator: string;
evstr: string;
event: string;
ts: number;
};
export declare type CommitSearchDefinition = RedisearchDefinition<CommonCommitFields & DerivedCommitFields>;