import { IndexEquation, NumberIndexEquation } from "../enums"; import { BetweenValue } from "./dynamodb-filters"; export interface DynamoDBIndex { name: T; value?: IndexType; GSIPartitionKeyValue?: any; } export interface IndexType { value: any; comparisonOperator: any; } export interface IndexStringType extends IndexType { value: string | BetweenValue; comparisonOperator: IndexEquation; } export interface IndexNumberType extends IndexType { value: number | BetweenValue; comparisonOperator: NumberIndexEquation; }