[WEB-1397] chore: update project publish types (#4841)

* chore: update project publish types

* chore: added additional entity name

* chore: updated types
This commit is contained in:
Aaryan Khandelwal 2024-06-17 16:51:38 +05:30 committed by GitHub
parent c4f5093492
commit ae3dcc3dbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 59 additions and 68 deletions

View file

@ -1,5 +1,5 @@
// types
import { TPublishSettings } from "@plane/types";
import { TProjectPublishSettings } from "@plane/types";
// helpers
import { API_BASE_URL } from "@/helpers/common.helper";
// services
@ -10,7 +10,7 @@ class PublishService extends APIService {
super(API_BASE_URL);
}
async fetchPublishSettings(anchor: string): Promise<TPublishSettings> {
async fetchPublishSettings(anchor: string): Promise<TProjectPublishSettings> {
return this.get(`/api/public/anchor/${anchor}/settings/`)
.then((response) => response?.data)
.catch((error) => {
@ -18,7 +18,7 @@ class PublishService extends APIService {
});
}
async fetchAnchorFromProjectDetails(workspaceSlug: string, projectID: string): Promise<TPublishSettings> {
async fetchAnchorFromProjectDetails(workspaceSlug: string, projectID: string): Promise<TProjectPublishSettings> {
return this.get(`/api/public/workspaces/${workspaceSlug}/projects/${projectID}/anchor/`)
.then((response) => response?.data)
.catch((error) => {