|
| 1 | +import type { GoogleProvider } from "../../types/providers"; |
| 2 | +/* import getGlobalAggregateData from "./getGlobalAggregateData"; |
| 3 | +import getGlobalChartData from "./getGlobalChartData"; |
| 4 | +import getPageChartData from "./getPageChartData"; */ |
| 5 | +import getPageAggregateData from "./getPageAggregateData"; |
| 6 | +import getLiveData from "./getLiveData"; |
| 7 | +/* import getReportData from "./getReportData"; */ |
| 8 | +import type { |
| 9 | + ApiProvider, |
| 10 | + GlobalAggregateOptions, |
| 11 | + GlobalChartOptions, |
| 12 | + PageChartOptions, |
| 13 | + PageAggregateOptions, |
| 14 | + LiveDataOptions, |
| 15 | + ReportDataOptions, |
| 16 | +} from ".."; |
| 17 | + |
| 18 | +import { MetricMap } from "./utilities"; |
| 19 | + |
| 20 | +const google = (provider: GoogleProvider): ApiProvider => { |
| 21 | + return { |
| 22 | + getGlobalAggregateData: async (options: GlobalAggregateOptions) => |
| 23 | + await new Promise(() => "test"), |
| 24 | + /* await getGlobalAggregateData(provider, options), */ |
| 25 | + getGlobalChartData: async (options: GlobalChartOptions) => |
| 26 | + await new Promise(() => "test"), |
| 27 | + /* await getGlobalChartData(provider, options), */ |
| 28 | + getPageChartData: async (options: PageChartOptions) => |
| 29 | + await new Promise(() => "test"), |
| 30 | + /* await getPageChartData(provider, options), */ |
| 31 | + getPageAggregateData: async (options: PageAggregateOptions) => |
| 32 | + await getPageAggregateData(provider, options), |
| 33 | + /* await getPageAggregateData(provider, options), */ |
| 34 | + getLiveData: async (options: LiveDataOptions) => |
| 35 | + await getLiveData(provider, options), |
| 36 | + getReportData: async (options: ReportDataOptions) => |
| 37 | + await new Promise(() => "test"), |
| 38 | + /* await getReportData(provider, options), */ |
| 39 | + metricsMap: MetricMap, |
| 40 | + }; |
| 41 | +}; |
| 42 | + |
| 43 | +export default google; |
0 commit comments