feat(subscription): implement effective plan logic and update free plan features
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user