Files
klz-cables.com/.pnpm-store/v10/files/79/6cc25ebbb6c5dec58fec07956c9a4f1ba6cbf13b2a26d4940e3ae06602bc0e155fa5d8225e5ab9a6098daa4d960cd2ca86bf94b73195ca228270f9dc811443
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

28 lines
997 B
Plaintext

import type { CollectionConfig } from '../../collections/config/types.js';
import type { SanitizedConfig } from '../types.js';
/**
* This function creates:
* - N fields per collection, named `_order` or `_<collection>_<joinField>_order`
* - 1 hook per collection
* - 1 endpoint per app
*
* Also, if collection.defaultSort or joinField.defaultSort is not set, it will be set to the orderable field.
*/
export declare const setupOrderable: (config: SanitizedConfig) => void;
export declare const addOrderableFieldsAndHook: (collection: CollectionConfig, orderableFieldNames: string[]) => void;
/**
* The body of the reorder endpoint.
* @internal
*/
export type OrderableEndpointBody = {
collectionSlug: string;
docsToMove: string[];
newKeyWillBe: 'greater' | 'less';
orderableFieldName: string;
target: {
id: string;
key: string;
};
};
export declare const addOrderableEndpoint: (config: SanitizedConfig) => void;
//# sourceMappingURL=index.d.ts.map