Files
breakpilot-compliance/admin-compliance/lib/sdk/dsr/api.ts
Sharang Parnerkar 58e95d5e8e refactor(admin): split 9 more oversized lib/ files into focused modules
Files split by agents before rate limit:
  - dsr/api.ts (669 → barrel + helpers)
  - einwilligungen/context.tsx (669 → barrel + hooks/reducer)
  - export.ts (753 → barrel + domain exporters)
  - incidents/api.ts (845 → barrel + api-helpers)
  - tom-generator/context.tsx (720 → barrel + hooks/reducer)
  - vendor-compliance/context.tsx (1010 → 234 provider + hooks/reducer)
  - api-docs/endpoints.ts — partially split (3 domain files created)
  - academy/api.ts — partially split (helpers extracted)
  - whistleblower/api.ts — partially split (helpers extracted)

next build passes. api-client.ts (885) deferred to next session.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 19:12:09 +02:00

39 lines
762 B
TypeScript

/**
* DSR API Client — Barrel re-exports
* Preserves the original public API so existing imports work unchanged.
*/
// Types & transform
export { transformBackendDSR, getSdkHeaders } from './api-types'
export type { BackendDSR } from './api-types'
// CRUD operations
export {
fetchSDKDSRList,
createSDKDSR,
fetchSDKDSR,
updateSDKDSRStatus,
updateDSR,
} from './api-crud'
// Workflow actions
export {
verifyDSRIdentity,
assignDSR,
extendDSRDeadline,
completeDSR,
rejectDSR,
fetchDSRCommunications,
sendDSRCommunication,
fetchDSRExceptionChecks,
initDSRExceptionChecks,
updateDSRExceptionCheck,
fetchDSRHistory,
} from './api-workflow'
// Mock data
export {
createMockDSRList,
createMockStatistics,
} from './api-mock'