2025-02-06 20:41:31 +05:30
|
|
|
import { EViewAccess } from "@plane/constants";
|
2024-07-22 16:01:46 +05:30
|
|
|
import { TPublishViewSettings } from "@plane/types";
|
2024-06-27 14:40:14 +05:30
|
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
|
|
|
import { ViewService as CoreViewService } from "@/services/view.service";
|
|
|
|
|
|
|
|
|
|
export class ViewService extends CoreViewService {
|
|
|
|
|
constructor() {
|
|
|
|
|
super(API_BASE_URL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
async updateViewAccess(workspaceSlug: string, projectId: string, viewId: string, access: EViewAccess) {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
async lockView(workspaceSlug: string, projectId: string, viewId: string) {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
async unLockView(workspaceSlug: string, projectId: string, viewId: string) {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
2024-07-22 16:01:46 +05:30
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
async getPublishDetails(workspaceSlug: string, projectId: string, viewId: string): Promise<any> {
|
|
|
|
|
return Promise.resolve({});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async publishView(
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
workspaceSlug: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
projectId: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
viewId: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
data: TPublishViewSettings
|
|
|
|
|
): Promise<any> {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async updatePublishedView(
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
workspaceSlug: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
projectId: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
viewId: string,
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
data: Partial<TPublishViewSettings>
|
|
|
|
|
): Promise<void> {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
async unPublishView(workspaceSlug: string, projectId: string, viewId: string): Promise<void> {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
}
|
2024-06-27 14:40:14 +05:30
|
|
|
}
|