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
|
// 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 {
|
||||||
|
|||||||
@@ -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',
|
||||||
// },
|
// },
|
||||||
|
|||||||
Reference in New Issue
Block a user