- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
76 lines
2.5 KiB
TypeScript
76 lines
2.5 KiB
TypeScript
import { SuperadminService } from './superadmin.service';
|
|
import { CreateTenantDto, UpdateTenantDto, UpdateTenantStatusDto, ListTenantsQueryDto } from './dto';
|
|
export declare class SuperadminController {
|
|
private readonly superadminService;
|
|
constructor(superadminService: SuperadminService);
|
|
getDashboardStats(): Promise<{
|
|
totalTenants: number;
|
|
activeTenants: number;
|
|
trialTenants: number;
|
|
suspendedTenants: number;
|
|
totalUsers: number;
|
|
newTenantsThisMonth: number;
|
|
}>;
|
|
listTenants(query: ListTenantsQueryDto): Promise<import("./superadmin.service").PaginatedResult<import("./superadmin.service").TenantWithStats>>;
|
|
getTenant(id: string): Promise<import("./superadmin.service").TenantWithStats>;
|
|
createTenant(dto: CreateTenantDto): Promise<import("../tenants").Tenant>;
|
|
updateTenant(id: string, dto: UpdateTenantDto): Promise<import("../tenants").Tenant>;
|
|
updateTenantStatus(id: string, dto: UpdateTenantStatusDto): Promise<import("../tenants").Tenant>;
|
|
deleteTenant(id: string): Promise<void>;
|
|
getTenantUsers(id: string, page?: number, limit?: number): Promise<import("./superadmin.service").PaginatedResult<import("../auth").User>>;
|
|
getMetricsSummary(): Promise<{
|
|
tenantGrowth: {
|
|
month: string;
|
|
count: number;
|
|
}[];
|
|
userGrowth: {
|
|
month: string;
|
|
count: number;
|
|
}[];
|
|
planDistribution: {
|
|
plan: string;
|
|
count: number;
|
|
percentage: number;
|
|
}[];
|
|
statusDistribution: {
|
|
status: string;
|
|
count: number;
|
|
percentage: number;
|
|
}[];
|
|
topTenants: {
|
|
id: string;
|
|
name: string;
|
|
slug: string;
|
|
userCount: number;
|
|
status: string;
|
|
planName: string;
|
|
}[];
|
|
}>;
|
|
getTenantGrowth(months?: number): Promise<{
|
|
month: string;
|
|
count: number;
|
|
}[]>;
|
|
getUserGrowth(months?: number): Promise<{
|
|
month: string;
|
|
count: number;
|
|
}[]>;
|
|
getPlanDistribution(): Promise<{
|
|
plan: string;
|
|
count: number;
|
|
percentage: number;
|
|
}[]>;
|
|
getStatusDistribution(): Promise<{
|
|
status: string;
|
|
count: number;
|
|
percentage: number;
|
|
}[]>;
|
|
getTopTenants(limit?: number): Promise<{
|
|
id: string;
|
|
name: string;
|
|
slug: string;
|
|
userCount: number;
|
|
status: string;
|
|
planName: string;
|
|
}[]>;
|
|
}
|