import { Operator } from "./operator" ; export function Equal < T > ( value ) { return new Operator ( "equal" , value ) ; } export function NotEqual < T > ( value ) { return new Operator ( "notEqual" , value ) ; } export function LessThan < T > ( value ) { return new Operator ( "lessThan" , value ) ; } export function LessThanOrEqual < T > ( value ) { return new Operator ( "lessThanOrEqual" , value ) ; } export function GreaterThan < T > ( value ) { return new Operator ( "greaterThan" , value ) ; } export function GreaterThanOrEqual < T > ( value ) { return new Operator ( "greaterThanOrEqual" , value ) ; } export function Between < T > ( from , to ) { return new Operator ( "between" , [ from , to ] as any ) ; } export function In < T > ( value ) { return new Operator ( "in" , value as any ) ; } export function AttributeExists ( ) { return new Operator ( "attributeExists" , undefined as any , false ) ; } export function AttributeNotExists ( ) { return new Operator ( "attributeNotExists" , undefined as any , false ) ; } export function BeginsWith < T > ( value ) { return new Operator ( "beginsWith" , value ) ; } export function Contains < T > ( value ) { return new Operator ( "contains" , value ) ; }