feat: keep deletions restorable and confirm a pipeline's deals before it is removed

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-13 22:23:09 +03:30
co-authored by Cursor
parent c04582072d
commit 2cc81bb596
17 changed files with 1158 additions and 6 deletions
+29
View File
@@ -930,6 +930,8 @@ export interface PipelineDto {
name: string;
isDefault: boolean;
stages: PipelineStageDto[];
/** تعداد معاملات؛ در فهرست کاریزها پر می‌شود */
dealCount?: number;
}
export interface DealDto {
@@ -4011,6 +4013,33 @@ export interface AuditLogListResponse {
limit: number;
}
export type DeletionRetention =
| 'month'
| 'two_months'
| 'three_months'
| 'six_months'
| 'year'
| 'never';
export interface DeletionArchiveDto {
id: string;
model: string;
modelLabel: string;
entityId: string;
label: string;
deletedById: string | null;
deletedByName: string | null;
deletedAt: string;
}
export interface DeletionArchiveListResponse {
items: DeletionArchiveDto[];
total: number;
page: number;
limit: number;
retention: DeletionRetention;
}
/* ——— فیلترهای ذخیره‌شده ——— */
export type SavedViewScope =