refactor: Move insights trpc router from features package to trpc layer (#25778)

* update imports

* move trpc router from features to trpc

* update imports

* wip

* update imports

* wip

* wip

* wip

* fix import

* create objectToCsv.ts

* rename

* fix: restore proper types and static imports in insights handlers

- Add proper type definitions for all handler options instead of using 'any'
- Restore static imports for PermissionCheckService and MembershipRole
- Remove dynamic imports that were introduced during refactoring

This ensures the refactoring is pure with no behavioral changes.

Co-Authored-By: [email protected] <[email protected]>

* fix: update getEventTypeList import path after utils.ts deletion

Co-Authored-By: [email protected] <[email protected]>

* remove handlers

* fix

* refactor

* wip

* rm

* wip

* select only needed + fix type error

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Eunjae Lee <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-12-14 08:44:36 -03:00
1 parent 9ef650ceed
commit 43b6c63294
8 files changed
+458 -445

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
import { insightsRouter } from "@calcom/features/insights/server/trpc-router";
import { insightsRouter } from "@calcom/trpc/server/routers/viewer/insights/_router";
import { createNextApiHandler } from "@calcom/trpc/server/createNextApiHandler";
export default createNextApiHandler(insightsRouter);