api client refactor
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { api as api } from '../../api';
|
||||
|
||||
export async function recordPageView(input: any): Promise<any> {
|
||||
return await api.analytics.recordPageView(input);
|
||||
}
|
||||
|
||||
export async function recordEngagement(input: any): Promise<any> {
|
||||
return await api.analytics.recordEngagement(input);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { api as api } from '../../api';
|
||||
|
||||
export async function getDashboardOverview(): Promise<any> {
|
||||
// TODO: aggregate data
|
||||
return {};
|
||||
}
|
||||
Reference in New Issue
Block a user