feat: add date field overrides for fetch-requests and allow type/label in overrides
This commit is contained in:
@@ -14,6 +14,9 @@ export interface FieldOverride {
|
||||
// New optional properties to support custom config extensions
|
||||
path?: string;
|
||||
refers?: string;
|
||||
// Added support for overriding the base field type and label
|
||||
type?: FieldType;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export interface ResourceOverride {
|
||||
|
||||
@@ -57,6 +57,14 @@ export const configuration: Record<string, ResourceOverride> = {
|
||||
format: {
|
||||
path: 'source.format',
|
||||
},
|
||||
start_date: {
|
||||
type: 'date',
|
||||
label: 'Start Date',
|
||||
},
|
||||
end_date: {
|
||||
type: 'date',
|
||||
label: 'End Date',
|
||||
},
|
||||
// account: {
|
||||
// refers: 'accounts',
|
||||
// },
|
||||
|
||||
Reference in New Issue
Block a user