import { IProjectView } from "@plane/types"; import { API_BASE_URL } from "@/helpers/common.helper"; import { APIService } from "@/services/api.service"; export class ViewService extends APIService { constructor() { super(API_BASE_URL); } async getViewDetails(anchor: string): Promise { return this.get(`/api/public/anchor/${anchor}/views/`) .then((response) => response?.data) .catch((error) => { throw error?.response?.data; }); } async getViewIssues(anchor: string, params: any): Promise { return this.get(`/api/public/anchor/${anchor}/view-issues/`, { params, }) .then((response) => response?.data) .catch((error) => { throw error?.response?.data; }); } }