24 lines
545 B
TypeScript
24 lines
545 B
TypeScript
export interface EnumOption {
|
|
key: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface FieldOverride {
|
|
displayField?: string | string[];
|
|
display?: boolean;
|
|
formatter?: (value: any) => string;
|
|
filterType?: "autocomplete" | "multiselect" | "number-range" | "date-range";
|
|
enumLabels?: Record<string, string>;
|
|
}
|
|
|
|
export interface ResourceOverride {
|
|
fields?: Record<string, FieldOverride>;
|
|
pagination?: boolean;
|
|
hidden?: boolean;
|
|
filterOptions?: {
|
|
mode?: "server" | "client";
|
|
fields?: string[];
|
|
};
|
|
enumOption?: EnumOption;
|
|
}
|