Files
klz-cables.com/.pnpm-store/v10/files/27/ec3ea4d54649b77d8d03aa52272008e3215e69ed439d86af80669e2663d120021787192e4d159954977806a0ca9b90a6f8b30495bd5ecd782accbb198b1eb1
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

34 lines
1.2 KiB
Plaintext

import type { asc, desc, SQL, Table } from 'drizzle-orm';
import type { PgTableWithColumns } from 'drizzle-orm/pg-core';
import type { FlattenedField, Sort, Where } from 'payload';
import type { DrizzleAdapter, GenericColumn, GenericTable } from '../types.js';
export type BuildQueryJoinAliases = {
condition: SQL;
queryPath?: string;
table: GenericTable | PgTableWithColumns<any>;
type?: 'innerJoin' | 'leftJoin' | 'rightJoin';
}[];
type BuildQueryArgs = {
adapter: DrizzleAdapter;
aliasTable?: Table;
fields: FlattenedField[];
joins?: BuildQueryJoinAliases;
locale?: string;
parentIsLocalized?: boolean;
selectLocale?: boolean;
sort?: Sort;
tableName: string;
where: Where;
};
export type BuildQueryResult = {
joins: BuildQueryJoinAliases;
orderBy: {
column: GenericColumn;
order: typeof asc | typeof desc;
}[];
selectFields: Record<string, GenericColumn>;
where: SQL;
};
export declare const buildQuery: ({ adapter, aliasTable, fields, joins, locale, parentIsLocalized, selectLocale, sort, tableName, where: incomingWhere, }: BuildQueryArgs) => BuildQueryResult;
export {};
//# sourceMappingURL=buildQuery.d.ts.map