Files
klz-cables.com/.pnpm-store/v10/files/66/645d628409ec70c7e33d7a983959dec7d22beece1a84ddbf8c79c8345262ea4d2b4b4a43bbe1162e092df1585224fbab0083e62784db514c25de9ce6ca7b11
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

43 lines
1.4 KiB
Plaintext

import type { Field } from '../fields/config/types.js';
import type { Access, CollectionSlug } from '../index.js';
import type { CollectionPreferences } from '../preferences/types.js';
import type { Where } from '../types/index.js';
export declare const operations: readonly ["read", "update", "delete"];
export type ConstraintOperation = (typeof operations)[number];
export type DefaultConstraint = 'everyone' | 'onlyMe' | 'specificUsers';
export type Constraint = DefaultConstraint | string;
export type QueryPreset = {
access: {
[operation in ConstraintOperation]: {
constraint: DefaultConstraint;
users?: string[];
};
};
columns: CollectionPreferences['columns'];
groupBy?: string;
id: number | string;
isShared: boolean;
relatedCollection: CollectionSlug;
title: string;
where: Where;
};
export type QueryPresetConstraint = {
/**
* A function that determines the access control rules for this constraint.
*/
access: Access<QueryPreset>;
/**
* An array of fields to render when this constraint is selected.
*/
fields?: Field[];
/**
* The label displayed in the dropdown
*/
label: string;
/**
* The value to store in the database when this constraint is selected.
*/
value: string;
};
export type QueryPresetConstraints = QueryPresetConstraint[];
//# sourceMappingURL=types.d.ts.map