import * as TYPE from 'vega-lite/build/src/type' ; import { FieldSchema , PrimitiveType , Schema } from '../src/schema' ; const fixtures = [ { name : 'Q' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 100 } as any , } , { name : 'Q1' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 100 } as any , } , { name : 'Q2' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 100 } as any , } , { name : 'Q5' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 5 } as any , } , { name : 'Q10' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 10 } as any , } , { name : 'Q15' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 15 } as any , } , { name : 'Q20' , vlType : TYPE . QUANTITATIVE , type : PrimitiveType . NUMBER , stats : { distinct : 20 } as any , } , { name : 'T' , vlType : TYPE . TEMPORAL , type : PrimitiveType . DATETIME , stats : { distinct : 100 , unique : { '2000/1/1' : 1 , '2000/1/2' : 1 } , } as any , timeStats : { year : { distinct : 2 , unique : { '2000/1/1' : 1 , '2000/1/2' : 1 } , } , month : { distinct : 2 , unique : { '2000/1/1' : 1 , '2000/1/2' : 1 } , } , day : { distinct : 2 , unique : { '2000/1/1' : 1 , '2000/1/2' : 1 } , } , } as any , } , { name : 'T1' , vlType : TYPE . TEMPORAL , type : PrimitiveType . DATETIME , stats : { distinct : 100 } as any , timeStats : { year : { distinct : 5 } , month : { distinct : 12 } , day : { distinct : 5 } } as any , } , { name : 'O' , vlType : TYPE . ORDINAL , type : PrimitiveType . STRING , stats : { distinct : 6 } as any , } , { name : 'O_10' , vlType : TYPE . ORDINAL , type : PrimitiveType . STRING , stats : { distinct : 10 } as any , } , { name : 'O_20' , vlType : TYPE . ORDINAL , type : PrimitiveType . STRING , stats : { distinct : 20 } as any , } , { name : 'O_100' , vlType : TYPE . ORDINAL , type : PrimitiveType . STRING , stats : { distinct : 100 } as any , } , { name : 'N' , vlType : TYPE . NOMINAL , type : PrimitiveType . STRING , stats : { distinct : 6 } as any , } , { name : 'N20' , vlType : TYPE . NOMINAL , type : PrimitiveType . STRING , stats : { distinct : 20 } as any , } , ] ; for ( const fieldSchema of fixtures ) { fieldSchema . binStats = { } ; } export const schema = new Schema ( { fields : fixtures } ) ;