Files
klz-cables.com/.pnpm-store/v10/files/ec/9cc6706f27de67982d1cd564f42518e9f46a2d19a455472d9b20aa24d137d3d90907b9d279e9171f981b5f398b1d3ea81535b382155f2cb001f49b4af63cbe
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.5 KiB
Plaintext

import { type FlattenedField } from 'payload';
import type { DrizzleAdapter } from '../../types.js';
import type { NumberToDelete, RelationshipToAppend, RelationshipToDelete, RowToInsert, TextToDelete } from './types.js';
type Args = {
adapter: DrizzleAdapter;
/**
* This will delete the array table and then re-insert all the new array rows.
*/
arrays: RowToInsert['arrays'];
/**
* Array rows to push to the existing array. This will simply create
* a new row in the array table.
*/
arraysToPush: RowToInsert['arraysToPush'];
/**
* This is the name of the base table
*/
baseTableName: string;
blocks: RowToInsert['blocks'];
blocksToDelete: Set<string>;
/**
* A snake-case field prefix, representing prior fields
* Ex: my_group_my_named_tab_
*/
columnPrefix: string;
data: Record<string, unknown>;
enableAtomicWrites?: boolean;
existingLocales?: Record<string, unknown>[];
/**
* A prefix that will retain camel-case formatting, representing prior fields
* Ex: myGroup_myNamedTab_
*/
fieldPrefix: string;
fields: FlattenedField[];
forcedLocale?: string;
/**
* Tracks whether the current traversion context is from array or block.
*/
insideArrayOrBlock?: boolean;
locales: {
[locale: string]: Record<string, unknown>;
};
numbers: Record<string, unknown>[];
numbersToDelete: NumberToDelete[];
parentIsLocalized: boolean;
/**
* This is the name of the parent table
*/
parentTableName: string;
path: string;
relationships: Record<string, unknown>[];
relationshipsToAppend: RelationshipToAppend[];
relationshipsToDelete: RelationshipToDelete[];
row: Record<string, unknown>;
selects: {
[tableName: string]: Record<string, unknown>[];
};
texts: Record<string, unknown>[];
textsToDelete: TextToDelete[];
/**
* Set to a locale code if this set of fields is traversed within a
* localized array or block field
*/
withinArrayOrBlockLocale?: string;
};
export declare const traverseFields: ({ adapter, arrays, arraysToPush, baseTableName, blocks, blocksToDelete, columnPrefix, data, enableAtomicWrites, existingLocales, fieldPrefix, fields, forcedLocale, insideArrayOrBlock, locales, numbers, numbersToDelete, parentIsLocalized, parentTableName, path, relationships, relationshipsToAppend, relationshipsToDelete, row, selects, texts, textsToDelete, withinArrayOrBlockLocale, }: Args) => void;
export {};
//# sourceMappingURL=traverseFields.d.ts.map