Skip to content

feat(telephony/phase4): wiring intégrations + calendrier

idevx1 a demandé de fusionner feature/telephony-integrations-calendar-phase4 vers develop

Phase 4 — Wiring Intégrations + Calendrier

Nouveau store useTelephonyIntegrationStore

  • Endpoints : /api/phone-agent/integrations/agent/{agentUid}
  • fetchByAgent, createIntegration, deleteIntegration, connect, disconnect, activate, deactivate
  • Type IntegrationResponse + TELEPHONY_INTEGRATION_CREDENTIAL_TYPES (GOOGLE_CALENDAR, OUTLOOK)

integrations-section.tsx

  • useTelephonyIntegrationStore + useTelephonyAgentStore injectés
  • fetchByAgent(agentUid) au mount
  • getIsConnected() : vérifie statut réel depuis le store
  • handleConnect() async : storeCreateIntegration(agentUid, userUid, { credentialType, credentialData })
  • Graceful degradation : update local state si erreur API

calendar-section.tsx

  • useTelephonyIntegrationStore + useTelephonyAgentStore injectés
  • accountOptions : dérivé des intégrations connectées (platformAccountId)
  • Sélecteur compte → affiche les vrais comptes ou (aucun compte connecté)

Rapports de requête de fusion