1+ import { Analytics } from "../../types/tables" ;
12import type { SimpleQueryConfig } from "../types" ;
23
34export const DevicesBuilders : Record < string , SimpleQueryConfig > = {
45 browser_name : {
5- table : 'analytics .events' ,
6+ table : Analytics . events ,
67 fields : [
78 'browser_name as name' ,
89 'COUNT(*) as pageviews' ,
@@ -19,7 +20,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
1920 } ,
2021
2122 os_name : {
22- table : 'analytics .events' ,
23+ table : Analytics . events ,
2324 fields : [
2425 'os_name as name' ,
2526 'COUNT(*) as pageviews' ,
@@ -36,7 +37,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
3637 } ,
3738
3839 screen_resolution : {
39- table : 'analytics .events' ,
40+ table : Analytics . events ,
4041 fields : [
4142 'screen_resolution as name' ,
4243 'COUNT(*) as pageviews' ,
@@ -52,7 +53,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
5253 } ,
5354
5455 connection_type : {
55- table : 'analytics .events' ,
56+ table : Analytics . events ,
5657 fields : [
5758 'connection_type as name' ,
5859 'COUNT(*) as pageviews' ,
@@ -68,7 +69,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
6869 } ,
6970
7071 browsers_grouped : {
71- table : 'analytics .events' ,
72+ table : Analytics . events ,
7273 fields : [
7374 'CONCAT(browser_name, \' \', browser_version) as name' ,
7475 'browser_name' ,
@@ -92,7 +93,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
9293 } ,
9394
9495 device_types : {
95- table : 'analytics .events' ,
96+ table : Analytics . events ,
9697 fields : [
9798 'screen_resolution as name' ,
9899 'COUNT(*) as pageviews' ,
@@ -110,7 +111,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
110111 } ,
111112
112113 browsers : {
113- table : 'analytics .events' ,
114+ table : Analytics . events ,
114115 fields : [
115116 'browser_name as name' ,
116117 'COUNT(*) as pageviews' ,
@@ -127,7 +128,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
127128 } ,
128129
129130 browser_versions : {
130- table : 'analytics .events' ,
131+ table : Analytics . events ,
131132 fields : [
132133 'CONCAT(browser_name, \' \', browser_version) as name' ,
133134 'COUNT(*) as pageviews' ,
@@ -143,7 +144,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
143144 } ,
144145
145146 operating_systems : {
146- table : 'analytics .events' ,
147+ table : Analytics . events ,
147148 fields : [
148149 'os_name as name' ,
149150 'COUNT(*) as pageviews' ,
@@ -160,7 +161,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
160161 } ,
161162
162163 os_versions : {
163- table : 'analytics .events' ,
164+ table : Analytics . events ,
164165 fields : [
165166 'CONCAT(os_name, \' \', os_version) as name' ,
166167 'COUNT(*) as pageviews' ,
@@ -176,7 +177,7 @@ export const DevicesBuilders: Record<string, SimpleQueryConfig> = {
176177 } ,
177178
178179 screen_resolutions : {
179- table : 'analytics .events' ,
180+ table : Analytics . events ,
180181 fields : [
181182 'screen_resolution as name' ,
182183 'COUNT(*) as pageviews' ,
0 commit comments