forked from github/plane
1e152c666c
* chore: moved app & space from apps to root * chore: modified workspace configuration * chore: modified dockerfiles for space and web * chore: modified icons for space * feat: updated files for new svg icons supported by next-images * chore: added /spaces base path for next * chore: added compose config for space * chore: updated husky configuration * chore: updated workflows for new configuration * chore: changed app name to web * fix: resolved build errors with web * chore: reset file tracing root for both projects * chore: added nginx config for deploy * fix: eslint and tsconfig settings for space app * husky setup fixes based on new dir * eslint fixes * prettier formatting --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
86 lines
1.7 KiB
TypeScript
86 lines
1.7 KiB
TypeScript
import { IIssue, IIssueFilterOptions, IIssueLabels } from "./issues";
|
|
import type { IProjectLite } from "./projects";
|
|
import { IState } from "./state";
|
|
import { IUserLite } from "./users";
|
|
|
|
export interface IInboxIssue extends Partial<IIssue> {
|
|
bridge_id: string;
|
|
issue_inbox: {
|
|
duplicate_to: string | null;
|
|
snoozed_till: Date | null;
|
|
source: string;
|
|
status: -2 | -1 | 0 | 1 | 2;
|
|
}[];
|
|
}
|
|
|
|
export interface IInboxIssueDetail extends IIssue {
|
|
id: string;
|
|
project_detail: IProjectLite;
|
|
created_at: string;
|
|
updated_at: string;
|
|
issue_inbox: {
|
|
duplicate_to: string | null;
|
|
id: string;
|
|
snoozed_till: Date | null;
|
|
source: string;
|
|
status: -2 | -1 | 0 | 1 | 2;
|
|
}[];
|
|
created_by: string;
|
|
updated_by: string;
|
|
project: string;
|
|
workspace: string;
|
|
}
|
|
export interface IInbox {
|
|
id: string;
|
|
project_detail: IProjectLite;
|
|
pending_issue_count: number;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
name: string;
|
|
description: string;
|
|
is_default: boolean;
|
|
created_by: string;
|
|
updated_by: string;
|
|
project: string;
|
|
view_props: { filters: IInboxFilterOptions };
|
|
workspace: string;
|
|
}
|
|
|
|
interface StatePending {
|
|
readonly status: -2;
|
|
}
|
|
interface StatusReject {
|
|
status: -1;
|
|
}
|
|
|
|
interface StatusSnoozed {
|
|
status: 0;
|
|
snoozed_till: Date;
|
|
}
|
|
|
|
interface StatusAccepted {
|
|
status: 1;
|
|
}
|
|
|
|
interface StatusDuplicate {
|
|
status: 2;
|
|
duplicate_to: string;
|
|
}
|
|
|
|
export type TInboxStatus =
|
|
| StatusReject
|
|
| StatusSnoozed
|
|
| StatusAccepted
|
|
| StatusDuplicate
|
|
| StatePending;
|
|
|
|
export interface IInboxFilterOptions {
|
|
priority: string[] | null;
|
|
inbox_status: number[] | null;
|
|
}
|
|
|
|
export interface IInboxQueryParams {
|
|
priority: string | null;
|
|
inbox_status: string | null;
|
|
}
|