Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
577 B
TypeScript
16 lines
577 B
TypeScript
import { Repository } from 'typeorm';
|
|
import { User } from '../auth/entities/user.entity';
|
|
export declare class UsersService {
|
|
private readonly userRepository;
|
|
constructor(userRepository: Repository<User>);
|
|
findAllByTenant(tenantId: string, page: number, limit: number): Promise<{
|
|
data: Partial<User>[];
|
|
total: number;
|
|
page: number;
|
|
limit: number;
|
|
}>;
|
|
findOne(id: string, tenantId: string): Promise<Partial<User>>;
|
|
update(id: string, updateDto: any, tenantId: string): Promise<Partial<User>>;
|
|
private sanitizeUser;
|
|
}
|