docs(api): deprecate report routes and document migration compatibility
This commit is contained in:
1 parent
7c4406bad0
commit
4fbaa5300d
46 files changed
+564
-72
No files matched your search
@@ -30,11 +30,11 @@ vi.mock('@/queries/sql/breakdown/getBreakdown', () => ({ getBreakdown: mocks.que
|
||||
vi.mock('@/queries/sql/attribution/getAttribution', () => ({ getAttribution: mocks.query }));
|
||||
vi.mock('@/queries/sql/heatmap/getHeatmap', () => ({ getHeatmap: mocks.query }));
|
||||
|
||||
import { GET as attribution } from '@/app/api/websites/[websiteId]/attribution/route';
|
||||
import { GET as breakdown } from '@/app/api/websites/[websiteId]/breakdown/route';
|
||||
import { GET as heatmaps } from '@/app/api/websites/[websiteId]/heatmaps/route';
|
||||
import { GET as journeys } from '@/app/api/websites/[websiteId]/journeys/route';
|
||||
import { GET as retention } from '@/app/api/websites/[websiteId]/retention/route';
|
||||
import { GET as breakdown } from '@/app/api/websites/[websiteId]/breakdown/route';
|
||||
import { GET as attribution } from '@/app/api/websites/[websiteId]/attribution/route';
|
||||
import { GET as heatmaps } from '@/app/api/websites/[websiteId]/heatmaps/route';
|
||||
|
||||
const cases = [
|
||||
['journeys', journeys, { steps: '3' }],
|
||||
|
||||
@@ -5,9 +5,9 @@ import {
|
||||
filterParams,
|
||||
funnelReportSchema,
|
||||
goalReportSchema,
|
||||
pagingParams,
|
||||
heatmapReportSchema,
|
||||
journeyReportSchema,
|
||||
pagingParams,
|
||||
timezoneParam,
|
||||
unitParam,
|
||||
} from './schema';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
|
||||
const state = vi.hoisted(() => ({
|
||||
report: null as any,
|
||||
sectionAllowed: true,
|
||||
@@ -33,10 +34,11 @@ vi.mock('@/lib/request', () => ({
|
||||
},
|
||||
getQueryFilters: async () => ({ startDate: new Date(1500), endDate: new Date(2000) }),
|
||||
}));
|
||||
import * as goal from '@/app/api/websites/[websiteId]/goals/[goalId]/route';
|
||||
|
||||
import * as funnel from '@/app/api/websites/[websiteId]/funnels/[funnelId]/route';
|
||||
import { GET as goalStats } from '@/app/api/websites/[websiteId]/goals/[goalId]/stats/route';
|
||||
import { GET as funnelStats } from '@/app/api/websites/[websiteId]/funnels/[funnelId]/stats/route';
|
||||
import * as goal from '@/app/api/websites/[websiteId]/goals/[goalId]/route';
|
||||
import { GET as goalStats } from '@/app/api/websites/[websiteId]/goals/[goalId]/stats/route';
|
||||
|
||||
const context = { params: Promise.resolve({ websiteId: 'website', goalId: 'id', funnelId: 'id' }) };
|
||||
const request = () =>
|
||||
|
||||
Reference in new issue
Block a user