-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33034 from allroundexperts/feat-32994
- Loading branch information
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
type PolicyReportFieldType = 'text' | 'date' | 'dropdown' | 'formula'; | ||
|
||
type PolicyReportField = { | ||
/** Name of the field */ | ||
name: string; | ||
|
||
/** Default value assigned to the field */ | ||
defaultValue: string; | ||
|
||
/** Unique id of the field */ | ||
fieldID: string; | ||
|
||
/** Position at which the field should show up relative to the other fields */ | ||
orderWeight: number; | ||
|
||
/** Type of report field */ | ||
type: PolicyReportFieldType; | ||
|
||
/** Tells if the field is required or not */ | ||
deletable: boolean; | ||
|
||
/** Options to select from if field is of type dropdown */ | ||
values: string[]; | ||
}; | ||
|
||
type PolicyReportFields = Record<string, PolicyReportField>; | ||
export default PolicyReportField; | ||
export type {PolicyReportFields}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type RecentlyUsedReportFields = Record<string, string[]>; | ||
|
||
export default RecentlyUsedReportFields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters