chore: code refactoring (#5928)

* chore: de dupe code splitting

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2024-10-29 19:39:55 +05:30 committed by GitHub
parent 4bc751b7ab
commit 57eb08c8a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 664 additions and 250 deletions

24
packages/types/src/de-dupe.d.ts vendored Normal file
View 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[];
};

View file

@ -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";