feat: global platform update
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
SpendingAnalytics,
|
||||
CreativeAnalyticsItem,
|
||||
ChannelAnalyticsItem,
|
||||
OverviewAnalytics,
|
||||
} from "@/lib/types/api";
|
||||
import {
|
||||
demoWorkspace,
|
||||
@@ -26,6 +27,7 @@ import {
|
||||
demoSpendingAnalytics,
|
||||
demoCreativeAnalytics,
|
||||
demoChannelAnalytics,
|
||||
demoOverviewAnalytics,
|
||||
} from "./mock-data";
|
||||
import { DEMO_USER } from "./constants";
|
||||
|
||||
@@ -191,6 +193,13 @@ export const demoApi = {
|
||||
}
|
||||
return Promise.resolve(paginate(items));
|
||||
},
|
||||
overview: (_params?: {
|
||||
project_id?: string;
|
||||
date_from?: string;
|
||||
date_to?: string;
|
||||
}): Promise<OverviewAnalytics> => {
|
||||
return Promise.resolve(demoOverviewAnalytics);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user