-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #44441 from devguest07/43379
Add pendingAction to MultiLevelTags
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 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 |
---|---|---|
@@ -1,10 +1,36 @@ | ||
import type {ListItem} from '@components/SelectionList/types'; | ||
import type {Errors, PendingAction} from '@src/types/onyx/OnyxCommon'; | ||
|
||
type TagListItem = ListItem & { | ||
value: string; | ||
enabled: boolean; | ||
orderWeight?: number; | ||
}; | ||
|
||
type PolicyTag = { | ||
name: string; | ||
enabled: boolean; | ||
previousTagName?: string; | ||
/** "General Ledger code" that corresponds to this tag in an accounting system. Similar to an ID. */ | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
'GL Code'?: string; | ||
errors?: Errors | null; | ||
rules?: { | ||
parentTagsFilter?: string; | ||
}; | ||
parentTagsFilter?: string; | ||
pendingAction?: PendingAction | null; | ||
}; | ||
|
||
type PolicyTags = Record<string, PolicyTag>; | ||
|
||
type PolicyTagList = { | ||
name: string; | ||
orderWeight: number; | ||
required: boolean; | ||
tags: PolicyTags; | ||
pendingAction?: PendingAction | null; | ||
}; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export type {TagListItem}; | ||
export type {TagListItem, PolicyTag, PolicyTagList}; |