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>
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
import { ConfigService } from '@nestjs/config';
|
|
import { TenantIntegrationsService } from '../services/tenant-integrations.service';
|
|
import { IntegrationProvider } from '../entities/tenant-integration-credential.entity';
|
|
export declare class InternalIntegrationsController {
|
|
private readonly integrationsService;
|
|
private readonly configService;
|
|
constructor(integrationsService: TenantIntegrationsService, configService: ConfigService);
|
|
private validateInternalKey;
|
|
getWhatsAppCredentials(tenantId: string, internalKey: string): Promise<{
|
|
configured: boolean;
|
|
message: string;
|
|
credentials?: undefined;
|
|
} | {
|
|
configured: boolean;
|
|
credentials: {
|
|
accessToken: any;
|
|
phoneNumberId: any;
|
|
businessAccountId: any;
|
|
verifyToken: any;
|
|
};
|
|
message?: undefined;
|
|
}>;
|
|
getLLMConfig(tenantId: string, internalKey: string): Promise<{
|
|
configured: boolean;
|
|
message: string;
|
|
provider?: undefined;
|
|
credentials?: undefined;
|
|
config?: undefined;
|
|
} | {
|
|
configured: boolean;
|
|
provider: IntegrationProvider;
|
|
credentials: {
|
|
apiKey: any;
|
|
};
|
|
config: {
|
|
model: any;
|
|
maxTokens: any;
|
|
temperature: any;
|
|
baseUrl: any;
|
|
systemPrompt: any;
|
|
};
|
|
message?: undefined;
|
|
}>;
|
|
resolveTenantFromPhoneNumberId(phoneNumberId: string, internalKey: string): Promise<{
|
|
found: boolean;
|
|
message: string;
|
|
tenantId?: undefined;
|
|
} | {
|
|
found: boolean;
|
|
tenantId: string;
|
|
message?: undefined;
|
|
}>;
|
|
}
|