@fabrix/spool-broadcast
Version:
Spool: broadcast for Fabrix to implement CQRS and Event Sourcing
57 lines (56 loc) • 2 kB
TypeScript
import { FabrixGeneric as Generic, FabrixModel } from '@fabrix/fabrix/dist/common';
import { GenericError } from '@fabrix/spool-errors/dist/errors';
export declare function Point({ req, body, options, expects_input, expects_response, docs }: {
req?: any;
body?: any;
options?: any;
expects_input?: any;
expects_response?: any;
docs?: any;
}): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare function Command({ req, body, options, expects_input, expects_response, docs, story }: {
req?: any;
body?: any;
options?: any;
expects_input?: any;
expects_response?: any;
docs?: any;
story?: any;
}): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare function Action({ req, body, options, expects_input, expects_response, docs }: {
req?: any;
body?: any;
options?: any;
expects_input?: any;
expects_response?: any;
docs?: any;
}): (target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare class Entry extends Generic {
readonly name: string;
query(model: any, method: any, query: any): any;
prepQuery(req: any, { query }: {
query: any;
}, options: any): any;
modelError(...params: string[]): GenericError;
rowExists(req: any, { params }: {
params: any;
}, options?: {
[key: string]: any;
}): Promise<boolean>;
models(name: string): FabrixModel;
entries(name: string): Entry;
transaction(func: any, req: any, body: any, options: any): Promise<any>;
Sequelize(): any;
combine({ src, tgt, tgtModel, tgtOpts, srcModel, srcOpts }: {
src: any;
tgt: any;
tgtModel: FabrixModel;
tgtOpts: {
[key: string]: any;
};
srcModel?: FabrixModel;
srcOpts?: {
[key: string]: any;
};
}): FabrixModel;
}