Files
klz-cables.com/.pnpm-store/v10/files/ea/4817e177f371d09bff5f84e2aed6f8575fd52e6520b59224c5fb34dac3f478fd173dd38f09130c1288417f62c6aedbc0280e3cca87bc6b99788b8af6c356d0
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

14 lines
741 B
Plaintext

import type { PaginatedDocs, PayloadRequest, SanitizedCollectionConfig } from 'payload';
/**
* Enriches list view documents with correct draft status display.
* When draft=true is used in the query, Payload returns the latest draft version if it exists.
* This function checks if draft documents also have a published version to determine "changed" status.
*
* Performance: Uses a single query to find all documents with "changed" status instead of N queries.
*/
export declare function enrichDocsWithVersionStatus({ collectionConfig, data, req, }: {
collectionConfig: SanitizedCollectionConfig;
data: PaginatedDocs;
req: PayloadRequest;
}): Promise<PaginatedDocs>;
//# sourceMappingURL=enrichDocsWithVersionStatus.d.ts.map