feat: add prior-archive promote fields and shared cutoff DTOs

This commit is contained in:
2026-10-17 16:27:29 +03:30
parent 27635c0752
commit a04743c6df
3 changed files with 24 additions and 2 deletions
+9 -1
View File
@@ -43,7 +43,7 @@ export interface AuthUserDto {
/** خلاصه اشتراک مالک محیط (برای اعضا فقط جهت نمایش/گیت ورود) */
subscription?: SubscriptionSummaryDto | null;
/** اگر باشد، این کاربر سوئیچ «بایگانی اطلاعات قبل» را دارد */
priorArchive?: { lens: "current" | "archive" } | null;
priorArchive?: { lens: "current" | "archive"; cutoffAt: string | null } | null;
}
export type BillingPlanCode =
@@ -631,6 +631,12 @@ export interface OrganizationDto {
enabledCurrencies: string[];
exchangeRates: ExchangeRateDto[];
enabledModules: OrgModuleKey[];
priorArchiveCutoffAt?: string | null;
}
export interface UpdatePriorArchiveCutoffRequest {
/** ISO datetime (start of selected Jalali day) or null to clear */
cutoffAt: string | null;
}
export interface UpdateOrganizationRequest {
@@ -951,6 +957,7 @@ export interface DealDto {
code: string | null;
/** منبع ورود: manual | didar | excel */
importSource: string;
promotedFromPriorAt: string | null;
/** شناسه در مبدأ (کد دیدار) */
sourceRef: string | null;
amount: number | null;
@@ -1477,6 +1484,7 @@ export interface ActivityDto {
completedAt: string | null;
/** manual یا didar؛ برای جدا کردن سابقهٔ قبلی */
importSource?: string;
promotedFromPriorAt?: string | null;
tags: string[];
person: PersonSummaryDto | null;
company: CompanySummaryDto | null;