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
26 lines
795 B
Plaintext
26 lines
795 B
Plaintext
import type { SQL } from 'drizzle-orm';
|
|
import { type Field, type TabAsField } from 'payload';
|
|
import type { DrizzleAdapter } from '../types.js';
|
|
type SanitizeQueryValueArgs = {
|
|
adapter: DrizzleAdapter;
|
|
columns?: {
|
|
idType: 'number' | 'text' | 'uuid';
|
|
rawColumn: SQL<unknown>;
|
|
}[];
|
|
field: Field | TabAsField;
|
|
isUUID: boolean;
|
|
operator: string;
|
|
relationOrPath: string;
|
|
val: any;
|
|
};
|
|
type SanitizedColumn = {
|
|
rawColumn: SQL<unknown>;
|
|
value: unknown;
|
|
};
|
|
export declare const sanitizeQueryValue: ({ adapter, columns, field, isUUID, operator: operatorArg, relationOrPath, val, }: SanitizeQueryValueArgs) => {
|
|
columns?: SanitizedColumn[];
|
|
operator: string;
|
|
value: unknown;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=sanitizeQueryValue.d.ts.map |