@decaf-ts/db-decorators
Advanced tools
Comparing version 0.4.11 to 0.4.12
@@ -16,3 +16,3 @@ import { IdOperationHandler, OperationHandler, StandardOperationHandler, UpdateOperationHandler } from "./types"; | ||
*/ | ||
export declare function onCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -31,3 +31,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.UPDATE} | ||
*/ | ||
export declare function onUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -45,3 +45,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.CREATE} | ||
*/ | ||
export declare function onCreate<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onCreate<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -59,3 +59,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.READ} | ||
*/ | ||
export declare function onRead<T>(handler: IdOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onRead<T>(handler: IdOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -73,3 +73,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function onDelete<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onDelete<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -87,3 +87,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function onAny<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onAny<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -102,3 +102,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations} | ||
*/ | ||
export declare function on<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function on<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -116,3 +116,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.CREATE_UPDATE} | ||
*/ | ||
export declare function afterCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -130,3 +130,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.UPDATE} | ||
*/ | ||
export declare function afterUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -144,3 +144,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.CREATE} | ||
*/ | ||
export declare function afterCreate<T>(handler: StandardOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterCreate<T>(handler: StandardOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -159,3 +159,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.READ} | ||
*/ | ||
export declare function afterRead<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterRead<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -174,3 +174,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function afterDelete<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterDelete<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -189,3 +189,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function afterAny<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterAny<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -205,3 +205,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations} | ||
*/ | ||
export declare function after<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function operation<T>(baseOp: OperationKeys.ON | OperationKeys.AFTER, operation: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, dataToAdd?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function after<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
export declare function operation<T>(baseOp: OperationKeys.ON | OperationKeys.AFTER, operation: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, dataToAdd?: T): (target: object, propertyKey?: any) => void; |
@@ -257,2 +257,2 @@ import { DBOperations, OperationKeys } from "./constants"; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9vcGVyYXRpb25zL2RlY29yYXRvcnMudHMiXSw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baGFuZGxlcktleV0gPSB7XG4gICAgICAgICAgZGF0YTogZGF0YVRvQWRkLFxuICAgICAgICB9O1xuXG4gICAgICAgIGFjY3VtLnB1c2goXG4gICAgICAgICAgaGFuZGxlKGNvbXBvdW5kS2V5IGFzIE9wZXJhdGlvbktleXMsIGhhbmRsZXIpLFxuICAgICAgICAgIHByb3BNZXRhZGF0YShPcGVyYXRpb25zLmtleShjb21wb3VuZEtleSksIGRhdGEpXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICByZXR1cm4gYWNjdW07XG4gICAgfSwgW10pO1xuICAgIHJldHVybiBhcHBseSguLi5kZWNvcmF0b3JzKSh0YXJnZXQsIHByb3BlcnR5S2V5KTtcbiAgfTtcbn1cbiJdfQ== |
@@ -14,3 +14,3 @@ import { Model } from "@decaf-ts/decorator-validation"; | ||
*/ | ||
export declare function readonly(message?: string): PropertyDecorator; | ||
export declare function readonly(message?: string): (target: object, propertyKey?: any, descriptor?: any) => void; | ||
export declare function timestampHandler<M extends Model, V extends IRepository<M>, Y = any>(this: V, context: Context<M>, data: Y, key: string, model: M): Promise<void>; | ||
@@ -17,0 +17,0 @@ /** |
@@ -16,3 +16,3 @@ import { IdOperationHandler, OperationHandler, StandardOperationHandler, UpdateOperationHandler } from "./types"; | ||
*/ | ||
export declare function onCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -31,3 +31,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.UPDATE} | ||
*/ | ||
export declare function onUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -45,3 +45,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.CREATE} | ||
*/ | ||
export declare function onCreate<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onCreate<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -59,3 +59,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.READ} | ||
*/ | ||
export declare function onRead<T>(handler: IdOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onRead<T>(handler: IdOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -73,3 +73,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function onDelete<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onDelete<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -87,3 +87,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function onAny<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function onAny<T>(handler: OperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -102,3 +102,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations} | ||
*/ | ||
export declare function on<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function on<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -116,3 +116,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.CREATE_UPDATE} | ||
*/ | ||
export declare function afterCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterCreateUpdate<T>(handler: StandardOperationHandler<any, any, T> | UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -130,3 +130,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.UPDATE} | ||
*/ | ||
export declare function afterUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterUpdate<T>(handler: UpdateOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -144,3 +144,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.CREATE} | ||
*/ | ||
export declare function afterCreate<T>(handler: StandardOperationHandler<any, any, T>, data: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterCreate<T>(handler: StandardOperationHandler<any, any, T>, data: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -159,3 +159,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.READ} | ||
*/ | ||
export declare function afterRead<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterRead<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -174,3 +174,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function afterDelete<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterDelete<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -189,3 +189,3 @@ * @summary Defines a behaviour to set after the defined {@link DBOperations.DELETE} | ||
*/ | ||
export declare function afterAny<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function afterAny<T>(handler: StandardOperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
/** | ||
@@ -205,3 +205,3 @@ * @summary Defines a behaviour to set on the defined {@link DBOperations} | ||
*/ | ||
export declare function after<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function operation<T>(baseOp: OperationKeys.ON | OperationKeys.AFTER, operation: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, dataToAdd?: T): (target: object, propertyKey: string | symbol) => void; | ||
export declare function after<T>(op: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, data?: T): (target: object, propertyKey?: any) => void; | ||
export declare function operation<T>(baseOp: OperationKeys.ON | OperationKeys.AFTER, operation: OperationKeys[] | undefined, handler: OperationHandler<any, any, T>, dataToAdd?: T): (target: object, propertyKey?: any) => void; |
@@ -14,3 +14,3 @@ import { Model } from "@decaf-ts/decorator-validation"; | ||
*/ | ||
export declare function readonly(message?: string): PropertyDecorator; | ||
export declare function readonly(message?: string): (target: object, propertyKey?: any, descriptor?: any) => void; | ||
export declare function timestampHandler<M extends Model, V extends IRepository<M>, Y = any>(this: V, context: Context<M>, data: Y, key: string, model: M): Promise<void>; | ||
@@ -17,0 +17,0 @@ /** |
{ | ||
"name": "@decaf-ts/db-decorators", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"description": "Agnostic database decorators and repository", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
780188