feat: add date field overrides for fetch-requests and allow type/label in overrides

This commit is contained in:
2026-06-10 00:40:19 +05:30
parent 386297dc1e
commit 8300e43e14
2 changed files with 11 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ export interface FieldOverride {
// New optional properties to support custom config extensions // New optional properties to support custom config extensions
path?: string; path?: string;
refers?: string; refers?: string;
// Added support for overriding the base field type and label
type?: FieldType;
label?: string;
} }
export interface ResourceOverride { export interface ResourceOverride {

View File

@@ -57,6 +57,14 @@ export const configuration: Record<string, ResourceOverride> = {
format: { format: {
path: 'source.format', path: 'source.format',
}, },
start_date: {
type: 'date',
label: 'Start Date',
},
end_date: {
type: 'date',
label: 'End Date',
},
// account: { // account: {
// refers: 'accounts', // refers: 'accounts',
// }, // },