plane/web/constants/view/root.ts

22 lines
593 B
TypeScript
Raw Normal View History

2024-02-05 14:39:17 +00:00
import { v4 as uuidV4 } from "uuid";
// types
import { TViewTypes, TView } from "@plane/types";
export const VIEW_TYPES: Record<TViewTypes, TViewTypes> = {
WORKSPACE_PRIVATE_VIEWS: "WORKSPACE_PRIVATE_VIEWS",
WORKSPACE_PUBLIC_VIEWS: "WORKSPACE_PUBLIC_VIEWS",
PROJECT_PRIVATE_VIEWS: "PROJECT_PRIVATE_VIEWS",
PROJECT_PUBLIC_VIEWS: "PROJECT_PUBLIC_VIEWS",
2024-02-05 14:39:17 +00:00
};
export const viewLocalPayload: Partial<TView> = {
id: uuidV4(),
name: "",
description: "",
filters: undefined,
display_filters: undefined,
display_properties: undefined,
2024-02-05 14:39:17 +00:00
is_local_view: false,
is_create: true,
};