UNPKG

@techmmunity/symbiosis

Version:

Symbiosis - The Ultimate OM For All Databases

20 lines (19 loc) 867 B
import type { EntityManager } from "../../../entity-manager"; import type { CustomClass } from "../../../entity-manager/types/metadata-type"; import type { DatabaseEntity } from "../../../types/database-entity"; import type { FindConditions } from "../../types/find-conditions"; import type { BaseQueryOptions } from "../../types/query-options"; interface Injectables { entityManager: EntityManager; entity: CustomClass; } export interface BeforeSoftDeleteInput<Entity> { where: FindConditions<Entity>; options?: BaseQueryOptions; } export interface BeforeSoftDeleteOutput { where: FindConditions<DatabaseEntity>; options?: BaseQueryOptions; } export declare const beforeSoftDelete: <Entity>({ entityManager, entity }: Injectables, { where: rawWhere, options: rawOptions }: BeforeSoftDeleteInput<Entity>) => BeforeSoftDeleteOutput; export {};