michangarrito/apps/backend/dist/modules/integrations/entities/tenant-integration-credential.entity.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

58 lines
1.5 KiB
TypeScript

import { Tenant } from '../../auth/entities/tenant.entity';
export declare enum IntegrationType {
WHATSAPP = "whatsapp",
LLM = "llm",
STRIPE = "stripe",
MERCADOPAGO = "mercadopago",
CLIP = "clip"
}
export declare enum IntegrationProvider {
META = "meta",
OPENAI = "openai",
OPENROUTER = "openrouter",
ANTHROPIC = "anthropic",
OLLAMA = "ollama",
AZURE_OPENAI = "azure_openai",
STRIPE = "stripe",
MERCADOPAGO = "mercadopago",
CLIP = "clip"
}
export interface WhatsAppCredentials {
accessToken: string;
phoneNumberId: string;
businessAccountId?: string;
verifyToken?: string;
}
export interface LLMCredentials {
apiKey: string;
}
export interface LLMConfig {
model?: string;
maxTokens?: number;
temperature?: number;
systemPrompt?: string;
baseUrl?: string;
}
export interface StripeCredentials {
secretKey: string;
publishableKey?: string;
webhookSecret?: string;
}
export declare class TenantIntegrationCredential {
id: string;
tenantId: string;
tenant: Tenant;
integrationType: IntegrationType;
provider: IntegrationProvider;
credentials: WhatsAppCredentials | LLMCredentials | StripeCredentials | Record<string, any>;
config: LLMConfig | Record<string, any>;
isActive: boolean;
isVerified: boolean;
lastVerifiedAt: Date;
verificationError: string;
createdBy: string;
updatedBy: string;
createdAt: Date;
updatedAt: Date;
}