UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

11 lines (10 loc) 708 B
import { IApiBaseEntity } from '../../interface/api-base-entity.interface'; import { TApiAuthorizationScopeWhere } from '../../type/class/api/authorization/scope-where.type'; /** * Merges two WHERE expressions by building a Cartesian product of OR branches. * @template E - Entity type * @param {TApiAuthorizationScopeWhere<E>} baseWhere - Existing filter. * @param {TApiAuthorizationScopeWhere<E>} scopedWhere - Additional scope filter. * @returns {TApiAuthorizationScopeWhere<E>} Combined filter. */ export declare function AuthorizationScopeMergeWhere<E extends IApiBaseEntity>(baseWhere: TApiAuthorizationScopeWhere<E>, scopedWhere: TApiAuthorizationScopeWhere<E>): TApiAuthorizationScopeWhere<E>;