/** * Parameter decorator to inject the current tenant into a controller method, GraphQL resolver, WebSocket gateway, or microservice handler * * @example REST Controller * ```typescript * @Get('profile') * getProfile(@CurrentTenant() tenant: Tenant) { * return this.service.getProfile(tenant.id); * } * ``` * * @example GraphQL Resolver * ```typescript * @Query(() => User) * async me(@CurrentTenant() tenant: Tenant) { * return this.userService.findByTenant(tenant.id); * } * ``` * * @example WebSocket Gateway * ```typescript * @SubscribeMessage('message') * handleMessage(@CurrentTenant() tenant: Tenant, @MessageBody() data: string) { * return this.chatService.handleMessage(tenant.id, data); * } * ``` * * @example Microservice Handler * ```typescript * @MessagePattern('user.create') * createUser(@CurrentTenant() tenant: Tenant, @Payload() data: CreateUserDto) { * return this.userService.create(tenant.id, data); * } * ``` */ export declare const CurrentTenant: (...dataOrPipes: unknown[]) => ParameterDecorator; /** * Parameter decorator to inject only the current tenant ID into a controller method, GraphQL resolver, WebSocket gateway, or microservice handler * * @example REST Controller * ```typescript * @Get('profile') * getProfile(@TenantId() tenantId: string) { * return this.service.getProfile(tenantId); * } * ``` * * @example GraphQL Resolver * ```typescript * @Query(() => [User]) * async users(@TenantId() tenantId: string) { * return this.userService.findAllByTenant(tenantId); * } * ``` * * @example WebSocket Gateway * ```typescript * @SubscribeMessage('join-room') * handleJoinRoom(@TenantId() tenantId: string, @MessageBody() roomId: string) { * return this.chatService.joinRoom(tenantId, roomId); * } * ``` * * @example Microservice Handler * ```typescript * @EventPattern('order.created') * handleOrderCreated(@TenantId() tenantId: string, @Payload() data: OrderDto) { * return this.orderService.process(tenantId, data); * } * ``` */ export declare const TenantId: (...dataOrPipes: unknown[]) => ParameterDecorator; //# sourceMappingURL=tenant.decorator.d.ts.map