feat(subscription): implement effective plan logic and update free plan features

This commit is contained in:
hamed
2026-07-05 10:46:31 +03:30
parent f3ca6d844f
commit 828e3552c0
10 changed files with 148 additions and 30 deletions
+8
View File
@@ -362,6 +362,7 @@ export interface SubscriptionPlan {
level: number;
max_secretaries: number;
features: Record<string, boolean>;
active: boolean;
periods: SubscriptionPeriod[];
}
@@ -388,6 +389,13 @@ export interface MySubscriptionData {
days_remaining?: number;
} | null;
used_trial: boolean;
/** پلن مؤثر: پلن اشتراک فعال یا پلن پیش‌فرض free در نبود اشتراک. */
effective_plan: {
name: string;
level: number;
max_secretaries: number;
features: Record<string, boolean>;
} | null;
}
/** @deprecated use MySubscriptionData */
export interface MySubscription {