@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
15 lines (14 loc) • 868 B
TypeScript
import { IApiBaseEntity } from '../../../../interface/api-base-entity.interface';
import { TApiAuthorizationScopeWhere } from '../../../../type/class/api/authorization/scope-where.type';
/**
* Merges subscriber WHERE criteria with a generated mandatory scope without
* repeatedly expanding an already-contained OR scope.
*/
export declare class ApiControllerGeneratedScopeWhereContract {
static contains<E extends IApiBaseEntity>(candidateWhere: TApiAuthorizationScopeWhere<E>, mandatoryWhere: TApiAuthorizationScopeWhere<E>): boolean;
static merge<E extends IApiBaseEntity>(candidateWhere: TApiAuthorizationScopeWhere<E>, mandatoryWhere: TApiAuthorizationScopeWhere<E>): TApiAuthorizationScopeWhere<E>;
private static branchContains;
private static getOwnEnumerableDataEntries;
private static isNestedWhere;
private static valueContains;
}