import { FindOptionsOrder, FindOptionsRelations, FindOptionsSelect, FindOptionsWhere } from 'typeorm'; import { PlainObject } from '@metad/contracts'; import { TenantOrganizationBaseDTO } from './tenant-organization-base.dto'; /** * Base DTO for 'select' fields. What fields should be selected. */ export declare class FindSelectQueryDTO { readonly select?: FindOptionsSelect; } /** * Base DTO for 'relations' to load (joined entities). */ export declare class FindRelationsQueryDTO extends FindSelectQueryDTO { readonly relations?: FindOptionsRelations; } /** * Simple condition that should be applied to match entities. */ export declare class FindWhereQueryDTO extends FindRelationsQueryDTO { readonly where: FindOptionsWhere; } /** * Base DTO for filtering options (ordering, soft-delete, etc.). */ export declare class FindOptionsQueryDTO extends FindWhereQueryDTO { /** * Order, in which entities should be ordered. */ readonly order?: FindOptionsOrder; /** * Indicates if soft-deleted rows should be included in entity result. */ readonly withDeleted?: boolean; } /** * Base DTO for pagination (skip/take). */ export declare class PaginationQueryDTO extends FindOptionsQueryDTO { /** * Limit (paginated) - max number of entities should be taken. */ readonly take?: number; /** * Offset (paginated) where from entities should be taken. */ readonly skip?: number; } /** * Describes generic query params */ export declare class BaseQueryDTO extends PaginationQueryDTO { } /** * Function to escape query parameters and convert to DTO class. * @param nativeParameters - The original query parameters. * @returns {TenantOrganizationBaseDTO} - The escaped and converted query parameters as a DTO instance. */ export declare function escapeQueryWithParameters(nativeParameters: PlainObject): TenantOrganizationBaseDTO; /** * Parses the given value and converts it to a boolean using JSON.parse. * * @param value - The value to be parsed. * @returns {boolean} - The boolean representation of the parsed value. */ export declare const parseBool: (value: any) => boolean; /** * Converts native parameters based on the database connection type. * * @param parameters - The parameters to be converted. * @returns {any} - The converted parameters based on the database connection type. */ export declare const convertNativeParameters: (parameters: PlainObject) => any;