import { DynamoDB } from "aws-sdk" ; import { S2RegionCoverer } from "nodes2ts" ; export class GeoDataManagerConfiguration { static MERGE_THRESHOLD = 2 ; tableName : string ; consistentRead : boolean = false ; hashKeyAttributeName : string = "hashKey" ; rangeKeyAttributeName : string = "rangeKey" ; geohashAttributeName : string = "geohash" ; geoJsonAttributeName : string = "geoJson" ; geohashIndexName : string = "geohash-index" ; hashKeyLength : number = 2 ; type { boolean } longitudeFirst : boolean = true ; type { string } geoJsonPointType : 'Point' | 'POINT' = 'Point' ; dynamoDBClient : DynamoDB ; S2RegionCoverer : typeof S2RegionCoverer ; constructor ( dynamoDBClient , tableName ) { this . dynamoDBClient = dynamoDBClient ; this . tableName = tableName ; this . S2RegionCoverer = S2RegionCoverer ; } }