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
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
import type { I18nClient } from '@payloadcms/translations';
|
|
import type { ClientCollectionConfig, PaginatedDocs, RelationshipFieldClient, ResolvedFilterOptions, UploadFieldClient } from 'payload';
|
|
import type { DefaultFilterProps } from '../types.js';
|
|
export type RelationshipFilterProps = {
|
|
readonly field: RelationshipFieldClient | UploadFieldClient;
|
|
readonly filterOptions: ResolvedFilterOptions;
|
|
} & DefaultFilterProps;
|
|
export type Option = {
|
|
label: string;
|
|
options?: Option[];
|
|
relationTo?: string | string[];
|
|
value: string;
|
|
};
|
|
type CLEAR = {
|
|
i18n: I18nClient;
|
|
required: boolean;
|
|
type: 'CLEAR';
|
|
};
|
|
type ADD = {
|
|
collection: ClientCollectionConfig;
|
|
data: PaginatedDocs<any>;
|
|
hasMultipleRelations: boolean;
|
|
i18n: I18nClient;
|
|
relation: string;
|
|
type: 'ADD';
|
|
};
|
|
export type Action = ADD | CLEAR;
|
|
export type ValueWithRelation = {
|
|
relationTo: string;
|
|
value: string;
|
|
};
|
|
export type GetResults = (args: {
|
|
lastFullyLoadedRelation?: number;
|
|
lastLoadedPage?: number;
|
|
search?: string;
|
|
}) => Promise<void>;
|
|
export {};
|
|
//# sourceMappingURL=types.d.ts.map |