feat(api): add insights endpoints

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-09-08 22:07:09 +02:00
parent d4a1eb88b8
commit df32bb04a0
21 changed files with 1340 additions and 416 deletions

View File

@@ -10,13 +10,13 @@ import {
chQuery,
clix,
conversionService,
createSqlBuilder,
db,
funnelService,
getChartPrevStartEndDate,
getChartStartEndDate,
getEventMetasCached,
getSelectPropertyKey,
getSettingsForProject,
toDate,
} from '@openpanel/db';
import {
zChartInput,
@@ -40,11 +40,7 @@ import {
protectedProcedure,
publicProcedure,
} from '../trpc';
import {
getChart,
getChartPrevStartEndDate,
getChartStartEndDate,
} from './chart.helpers';
import { getChart } from './chart.helpers';
function utc(date: string | Date) {
if (typeof date === 'string') {