Commit Graph

5 Commits

Author SHA1 Message Date
Michael Chihlas
540208a923 feat(psa): implement list_members in ConnectWise provider with cache
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:45:14 -04:00
Michael Chihlas
74ee5009c2 feat(psa): implement post_note and update_ticket_status in CW provider
Replaces NotImplementedError stubs with working implementations:
- post_note maps note_type to CW flag fields (internalAnalysisFlag,
  resolutionFlag, detailDescriptionFlag) with appropriate visibility
  and notification settings
- update_ticket_status uses CW JSON Patch format to update status

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:28:46 -04:00
Michael Chihlas
5a35c933e0 feat(psa): implement search_tickets, get_ticket_statuses, list_companies in CW provider
Implement all remaining NotImplementedError stubs in ConnectWiseProvider:
- search_tickets: query by summary with board_id, status_id, include_closed filters
- get_ticket_statuses: fetch statuses for a service board
- list_companies: list companies with optional status filter
- get_company: fetch a single company by ID
- get_ticket_configurations: fetch configs attached to a ticket
- Extract shared _map_ticket helper to reduce duplication

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:06:57 -04:00
Michael Chihlas
2a53f48d69 feat(psa): implement get_ticket in ConnectWise provider
Replace NotImplementedError stub with real implementation that fetches
a ticket by ID via CW REST API and maps it to PSATicket.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 22:44:58 -04:00
Michael Chihlas
2086ecb5ea feat(psa): add ConnectWiseProvider with test_connection + provider registry
ConnectWiseProvider implements PSAProvider with test_connection() that
calls GET /system/info to verify credentials and connectivity. All other
methods raise NotImplementedError with slice references for future work.

Provider registry (get_provider_for_account) looks up the account's
PsaConnection, decrypts stored credentials, and instantiates the
correct provider. Currently supports connectwise only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 21:52:23 -04:00