feat(telephony/phase4): wiring intégrations + calendrier
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+useTelephonyAgentStoreinjecté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+useTelephonyAgentStoreinjectés -
accountOptions: dérivé des intégrations connectées (platformAccountId) - Sélecteur compte → affiche les vrais comptes ou
(aucun compte connecté)