mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
chore: optimised issue loaders and added enum for issue status and current tab (#4164)
This commit is contained in:
17
packages/types/src/inbox.d.ts
vendored
17
packages/types/src/inbox.d.ts
vendored
@@ -2,9 +2,22 @@ import { TPaginationInfo } from "./common";
|
||||
import { TIssuePriorities } from "./issues";
|
||||
import { TIssue } from "./issues/base";
|
||||
|
||||
export type TInboxIssueCurrentTab = "open" | "closed";
|
||||
enum EInboxIssueCurrentTab {
|
||||
OPEN = "open",
|
||||
CLOSED = "closed",
|
||||
}
|
||||
|
||||
export type TInboxIssueStatus = -2 | -1 | 0 | 1 | 2;
|
||||
enum EInboxIssueStatus {
|
||||
PENDING = -2,
|
||||
DECLINED = -1,
|
||||
SNOOZED = 0,
|
||||
ACCEPTED = 1,
|
||||
DUPLICATE = 2,
|
||||
}
|
||||
|
||||
export type TInboxIssueCurrentTab = EInboxIssueCurrentTab;
|
||||
|
||||
export type TInboxIssueStatus = EInboxIssueStatus;
|
||||
|
||||
// filters
|
||||
export type TInboxIssueFilterMemberKeys = "assignee" | "created_by";
|
||||
|
||||
Reference in New Issue
Block a user