feat(sync): sync_call_recordings + ENTITY_FUNCS['call_recordings'] 独立下载 pass
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,7 @@ from app.storage.object_store import ObjectStore
|
||||
from app.sync.orchestrator import (
|
||||
SyncResult,
|
||||
sync_all_wechat,
|
||||
sync_call_recordings,
|
||||
sync_departments,
|
||||
sync_phone_calls,
|
||||
sync_sms,
|
||||
@@ -171,6 +172,13 @@ async def _run_sms(
|
||||
return [await sync_sms(session, client)]
|
||||
|
||||
|
||||
async def _run_call_recordings(
|
||||
session: AsyncSession, client: YunkeClient, store: ObjectStore
|
||||
) -> list[SyncResult]:
|
||||
"""Recording-localization pass for already-mirrored ``phone_call`` rows."""
|
||||
return [await sync_call_recordings(session, client, store)]
|
||||
|
||||
|
||||
async def _run_messages(
|
||||
session: AsyncSession, client: YunkeClient, store: ObjectStore
|
||||
) -> list[SyncResult]:
|
||||
@@ -227,6 +235,7 @@ ENTITY_FUNCS: dict[
|
||||
"wa_voice_calls": _run_wa_voice_calls,
|
||||
"phone_calls": _run_phone_calls,
|
||||
"sms": _run_sms,
|
||||
"call_recordings": _run_call_recordings,
|
||||
"messages": _run_messages,
|
||||
"all_wechat": _run_all_wechat,
|
||||
"all": _run_all,
|
||||
|
||||
Reference in New Issue
Block a user