feat(superoffice): POC API handshake & auth flow [2ff88f42]

Establishes the initial structure for the SuperOffice connector. Implements the complete, iterative authentication process, culminating in a successful refresh token exchange. Documents the process and the final blocker (API authorization) in the integration plan, awaiting IT action to change the application type to 'Server to server'.
This commit is contained in:
2026-02-06 13:52:44 +00:00
parent e6a3a24750
commit ff62024ef7
10 changed files with 310 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
"""
This module contains the core logic for the synchronization process.
- Fetches data from Company Explorer.
- Fetches data from SuperOffice.
- Performs deduplication checks.
- Creates or updates companies and contacts in SuperOffice.
"""
class SyncEngine:
def __init__(self, superoffice_client, explorer_client):
self.so_client = superoffice_client
self.ex_client = explorer_client
def run_sync(self):
"""
Executes a full synchronization run.
"""
# 1. Get companies from Explorer
# 2. For each company, check if it exists in SuperOffice
# 3. If not, create it
# 4. If yes, update it (or skip)
pass