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

26 lines
1.1 KiB
Plaintext

import { type Payload, type SanitizedCollectionConfig, type SanitizedDocumentPermissions, type SanitizedGlobalConfig, type TypedUser } from 'payload';
type Args = {
collectionConfig?: SanitizedCollectionConfig;
/**
* Optional - performance optimization.
* If a document has been fetched before fetching versions, pass it here.
* If this document is set to published, we can skip the query to find out if a published document exists,
* as the passed in document is proof of its existence.
*/
doc?: Record<string, any>;
docPermissions: SanitizedDocumentPermissions;
globalConfig?: SanitizedGlobalConfig;
id?: number | string;
locale?: string;
payload: Payload;
user: TypedUser;
};
type Result = Promise<{
hasPublishedDoc: boolean;
mostRecentVersionIsAutosaved: boolean;
unpublishedVersionCount: number;
versionCount: number;
}>;
export declare const getVersions: ({ id: idArg, collectionConfig, doc, docPermissions, globalConfig, locale, payload, user, }: Args) => Result;
export {};
//# sourceMappingURL=getVersions.d.ts.map