mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
20 lines
562 B
TypeScript
20 lines
562 B
TypeScript
|
|
// types
|
||
|
|
import { TDuplicateIssuePayload, TDuplicateIssueResponse } from "@plane/types";
|
||
|
|
import { PI_BASE_URL } from "@/helpers/common.helper";
|
||
|
|
// services
|
||
|
|
import { APIService } from "@/services/api.service";
|
||
|
|
|
||
|
|
export class PIService extends APIService {
|
||
|
|
constructor() {
|
||
|
|
super(PI_BASE_URL);
|
||
|
|
}
|
||
|
|
|
||
|
|
async getDuplicateIssues(data: Partial<TDuplicateIssuePayload>): Promise<TDuplicateIssueResponse> {
|
||
|
|
return this.post(`/api/v1/dupes/issues/`, data)
|
||
|
|
.then((res) => res?.data)
|
||
|
|
.catch((err) => {
|
||
|
|
throw err?.response?.data;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|