chore: code refactoring (#5928)
* chore: de dupe code splitting * chore: code refactor
This commit is contained in:
parent
4bc751b7ab
commit
57eb08c8a2
21 changed files with 664 additions and 250 deletions
24
packages/types/src/de-dupe.d.ts
vendored
Normal file
24
packages/types/src/de-dupe.d.ts
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { TIssuePriorities } from "./issues";
|
||||
|
||||
export type TDuplicateIssuePayload = {
|
||||
title: string;
|
||||
workspace_id: string;
|
||||
issue_id?: string;
|
||||
project_id?: string;
|
||||
description_stripped?: string;
|
||||
};
|
||||
|
||||
export type TDeDupeIssue = {
|
||||
id: string;
|
||||
type_id: string | null;
|
||||
project_id: string;
|
||||
sequence_id: number;
|
||||
name: string;
|
||||
priority: TIssuePriorities;
|
||||
state_id: string;
|
||||
created_by: string;
|
||||
};
|
||||
|
||||
export type TDuplicateIssueResponse = {
|
||||
dupes: TDeDupeIssue[];
|
||||
};
|
||||
1
packages/types/src/index.d.ts
vendored
1
packages/types/src/index.d.ts
vendored
|
|
@ -2,6 +2,7 @@ export * from "./users";
|
|||
export * from "./workspace";
|
||||
export * from "./cycle";
|
||||
export * from "./dashboard";
|
||||
export * from "./de-dupe";
|
||||
export * from "./project";
|
||||
export * from "./state";
|
||||
export * from "./issues";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue