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
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
import type { DefaultDocumentIDType } from '../index.js';
|
|
import type { PayloadRequest } from '../types/index.js';
|
|
export type PreferenceRequest = {
|
|
key: string;
|
|
overrideAccess?: boolean;
|
|
req: PayloadRequest;
|
|
user: PayloadRequest['user'];
|
|
};
|
|
export type PreferenceUpdateRequest = {
|
|
value: unknown;
|
|
} & PreferenceRequest;
|
|
export type CollapsedPreferences = string[];
|
|
export type TabsPreferences = Array<{
|
|
[path: string]: number;
|
|
}>;
|
|
export type InsideFieldsPreferences = {
|
|
collapsed: CollapsedPreferences;
|
|
tabIndex: number;
|
|
};
|
|
export type FieldsPreferences = {
|
|
[key: string]: InsideFieldsPreferences;
|
|
};
|
|
export type DocumentPreferences = {
|
|
fields: FieldsPreferences;
|
|
};
|
|
export type ColumnPreference = {
|
|
accessor: string;
|
|
active: boolean;
|
|
};
|
|
export type CollectionPreferences = {
|
|
columns?: ColumnPreference[];
|
|
editViewType?: 'default' | 'live-preview';
|
|
groupBy?: string;
|
|
limit?: number;
|
|
listViewType?: 'folders' | 'list';
|
|
preset?: DefaultDocumentIDType;
|
|
sort?: string;
|
|
};
|
|
//# sourceMappingURL=types.d.ts.map |