Type alias DAOSplitedMiddleware<T>
DAOSplited
Middleware
<T>: { afterAggregate
?: ((params
: AggregateParams<T>, args
: AggregatePostProcessing<T, AggregateParams<T>> | undefined, context
: MiddlewareContext<T>) => Promise<Omit<AggregateMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); afterDelete
?: ((params
: DeleteParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<DeleteMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); afterFind
?: ((params
: FindParams<T>, records
: PartialDeep<T["model"]>[], totalCount
: number | undefined, context
: MiddlewareContext<T>) => Promise<Omit<FindMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); afterInsert
?: ((params
: InsertAllParams<T>, insertedRecords
: T["plainModel"][], context
: MiddlewareContext<T>) => Promise<Omit<InsertMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); afterReplace
?: ((params
: ReplaceParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<ReplaceMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); afterUpdate
?: ((params
: UpdateParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<UpdateMiddlewareOutput<T>, "operation"> & Continue<boolean> | void>); beforeAggregate
?: ((params
: AggregateParams<T>, args
: AggregatePostProcessing<T, AggregateParams<T>> | undefined, context
: MiddlewareContext<T>) => Promise<Omit<AggregateMiddlewareInput<T>, "operation"> & Continue<true> | Omit<AggregateMiddlewareOutput<T>, "operation"> & Continue<false> | void>); beforeDelete
?: ((params
: DeleteParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<DeleteMiddlewareInput<T>, "operation"> & Continue<true> | Omit<DeleteMiddlewareOutput<T>, "operation"> & Continue<false> | void>); beforeFind
?: ((params
: FindParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<FindMiddlewareInput<T>, "operation"> & Continue<true> | Omit<FindMiddlewareOutput<T>, "operation"> & Continue<false> | void>); beforeInsert
?: ((params
: InsertAllParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<InsertMiddlewareInput<T>, "operation"> & Continue<true> | Omit<InsertMiddlewareOutput<T>, "operation"> & Continue<false> | void>); beforeReplace
?: ((params
: ReplaceParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<ReplaceMiddlewareInput<T>, "operation"> & Continue<true> | Omit<ReplaceMiddlewareOutput<T>, "operation"> & Continue<false> | void>); beforeUpdate
?: ((params
: UpdateParams<T>, context
: MiddlewareContext<T>) => Promise<Omit<UpdateMiddlewareInput<T>, "operation"> & Continue<true> | Omit<UpdateMiddlewareOutput<T>, "operation"> & Continue<false> | void>); name
?: string; }