27 lines
632 B
TypeScript
27 lines
632 B
TypeScript
import { ApiKey } from './api-key.entity';
|
|
export declare enum TenantPlan {
|
|
FREE = "FREE",
|
|
STARTER = "STARTER",
|
|
PRO = "PRO",
|
|
ENTERPRISE = "ENTERPRISE"
|
|
}
|
|
export declare enum TenantRole {
|
|
USER = "USER",
|
|
ADMIN = "ADMIN"
|
|
}
|
|
export declare const QUOTA_LIMITS: Record<TenantPlan, number>;
|
|
export declare const RATE_LIMITS: Record<TenantPlan, number>;
|
|
export declare class Tenant {
|
|
id: string;
|
|
name: string;
|
|
email: string;
|
|
plan: TenantPlan;
|
|
firebaseUid: string;
|
|
role: TenantRole;
|
|
photoUrl: string;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
apiKeys: ApiKey[];
|
|
}
|