Revert "Revert "Revert "Revert "feat(PIT): Point In Time Revamp""""

This commit is contained in:
Maidul Islam
2025-06-08 21:21:04 -04:00
committed by GitHub
parent d1faed5672
commit 14be4eb601
114 changed files with 10782 additions and 130 deletions
+4 -2
View File
@@ -282,7 +282,8 @@ export const useUpdateProject = () => {
newProjectName,
newProjectDescription,
newSlug,
secretSharing
secretSharing,
showSnapshotsLegacy
}) => {
const { data } = await apiRequest.patch<{ workspace: Workspace }>(
`/api/v1/workspace/${projectID}`,
@@ -290,7 +291,8 @@ export const useUpdateProject = () => {
name: newProjectName,
description: newProjectDescription,
slug: newSlug,
secretSharing
secretSharing,
showSnapshotsLegacy
}
);
return data.workspace;
@@ -39,6 +39,7 @@ export type Workspace = {
roles?: TProjectRole[];
hasDeleteProtection: boolean;
secretSharing: boolean;
showSnapshotsLegacy: boolean;
};
export type WorkspaceEnv = {
@@ -79,6 +80,7 @@ export type UpdateProjectDTO = {
newProjectDescription?: string;
newSlug?: string;
secretSharing?: boolean;
showSnapshotsLegacy?: boolean;
};
export type UpdatePitVersionLimitDTO = { projectSlug: string; pitVersionLimit: number };