michangarrito/apps/backend/dist/modules/integrations/controllers/integrations.controller.d.ts
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- 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>
2026-01-07 04:41:02 -06:00

73 lines
2.6 KiB
TypeScript

import { TenantIntegrationsService } from '../services/tenant-integrations.service';
import { UpsertWhatsAppCredentialsDto, UpsertLLMCredentialsDto, CreateIntegrationCredentialDto, IntegrationCredentialResponseDto, IntegrationStatusResponseDto } from '../dto/integration-credentials.dto';
import { IntegrationType, IntegrationProvider } from '../entities/tenant-integration-credential.entity';
export declare class IntegrationsController {
private readonly integrationsService;
constructor(integrationsService: TenantIntegrationsService);
getStatus(req: any): Promise<IntegrationStatusResponseDto>;
getWhatsAppConfig(req: any): Promise<{
configured: boolean;
usesPlatformNumber: boolean;
message: string;
isVerified?: undefined;
lastVerifiedAt?: undefined;
hasAccessToken?: undefined;
phoneNumberId?: undefined;
} | {
configured: boolean;
usesPlatformNumber: boolean;
isVerified: boolean;
lastVerifiedAt: Date;
hasAccessToken: boolean;
phoneNumberId: any;
message?: undefined;
}>;
upsertWhatsAppCredentials(req: any, dto: UpsertWhatsAppCredentialsDto): Promise<{
success: boolean;
message: string;
id: string;
}>;
deleteWhatsAppCredentials(req: any): Promise<void>;
getLLMConfig(req: any): Promise<{
configured: boolean;
usesPlatformDefault: boolean;
message: string;
provider?: undefined;
isVerified?: undefined;
config?: undefined;
hasApiKey?: undefined;
} | {
configured: boolean;
usesPlatformDefault: boolean;
provider: IntegrationProvider;
isVerified: boolean;
config: {
model: any;
maxTokens: any;
temperature: any;
hasSystemPrompt: boolean;
};
hasApiKey: boolean;
message?: undefined;
}>;
upsertLLMCredentials(req: any, dto: UpsertLLMCredentialsDto): Promise<{
success: boolean;
message: string;
id: string;
provider: IntegrationProvider;
}>;
deleteLLMCredentials(req: any, provider: IntegrationProvider): Promise<void>;
getAllCredentials(req: any): Promise<IntegrationCredentialResponseDto[]>;
createCredential(req: any, dto: CreateIntegrationCredentialDto): Promise<{
success: boolean;
message: string;
id: string;
}>;
toggleCredential(req: any, type: IntegrationType, provider: IntegrationProvider, body: {
isActive: boolean;
}): Promise<{
success: boolean;
isActive: boolean;
}>;
}