feat(subscription): implement resource quota management based on subscription plans

This commit is contained in:
hamed
2026-08-04 19:38:49 +03:30
parent 0dca245246
commit 3e7028d77a
16 changed files with 408 additions and 18 deletions
+4
View File
@@ -634,6 +634,8 @@ export interface SubscriptionPlan {
name: string;
level: number;
max_secretaries: number;
/** سقف منابع؛ `-1` یعنی بی‌نهایت. */
max_resources: number;
features: Record<string, boolean>;
active: boolean;
periods: SubscriptionPeriod[];
@@ -653,6 +655,7 @@ export interface MySubscriptionData {
name: string;
level: number;
max_secretaries: number;
max_resources: number;
features: Record<string, boolean>;
};
period?: { label: string; duration_months: number };
@@ -667,6 +670,7 @@ export interface MySubscriptionData {
name: string;
level: number;
max_secretaries: number;
max_resources: number;
features: Record<string, boolean>;
} | null;
}