Files
klz-cables.com/.pnpm-store/v10/files/e8/ef132da538ac2e07ad1a436e932ab6fa961088b471740889a11b705a39127d96fd47a1dfd9efd2f94a14d0007d1932ab5f3a76b39185213bbe0bf754f25384
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

68 lines
2.2 KiB
Plaintext

import type { FlattenedField, JoinQuery, SanitizedConfig } from 'payload';
import type { DrizzleAdapter } from '../../types.js';
import type { BlocksMap } from '../../utilities/createBlocksMap.js';
type TraverseFieldsArgs = {
/**
* The DB adapter
*/
adapter: DrizzleAdapter;
/**
* Pre-formatted blocks map
*/
blocks: BlocksMap;
/**
* The full Payload config
*/
config: SanitizedConfig;
currentTableName: string;
/**
* The data reference to be mutated within this recursive function
*/
dataRef: Record<string, unknown>;
/**
* Data that needs to be removed from the result after all fields have populated
*/
deletions: (() => void)[];
/**
* Column prefix can be built up by group and named tab fields
*/
fieldPrefix: string;
/**
* An array of Payload fields to traverse
*/
fields: FlattenedField[];
/**
*
*/
joinQuery?: JoinQuery;
/**
* All hasMany number fields, as returned by Drizzle, keyed on an object by field path
*/
numbers: Record<string, Record<string, unknown>[]>;
parentIsLocalized: boolean;
/**
* The current field path (in dot notation), used to merge in relationships
*/
path: string;
/**
* All related documents, as returned by Drizzle, keyed on an object by field path
*/
relationships: Record<string, Record<string, unknown>[]>;
/**
* Data structure representing the nearest table from db
*/
table: Record<string, unknown>;
tablePath: string;
/**
* All hasMany text fields, as returned by Drizzle, keyed on an object by field path
*/
texts: Record<string, Record<string, unknown>[]>;
topLevelTableName: string;
/**
* Set to a locale if this group of fields is within a localized array or block.
*/
withinArrayOrBlockLocale?: string;
};
export declare const traverseFields: <T extends Record<string, unknown>>({ adapter, blocks, config, currentTableName, dataRef, deletions, fieldPrefix, fields, joinQuery, numbers, parentIsLocalized, path, relationships, table, tablePath, texts, topLevelTableName, withinArrayOrBlockLocale, }: TraverseFieldsArgs) => T;
export {};
//# sourceMappingURL=traverseFields.d.ts.map