import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import type { StoreAccountAddress } from "./StoreAddress.js"; import type Contact from "./Contact.js"; declare const geoTypes: readonly ["country", "state", "city"]; export type geoType = typeof geoTypes[number]; /** * Instead of storing City, State, Country as a separate tables, * it is alright to store everything in one table as most likely, * State and Country will be queried infrequently. */ export default class GeoEntity { geoEntityID: number; type: geoType; code: string; countryCode: string; /** This can be used for synchronization */ externalID: string; fips: string; name: string; fullName: string; displayName: string; parentID: number; latitude: number; longitude: number; population: number; location: any; currencyCode: string; currencyName: string; isdCode: string; phoneFormat: string; timezone: string; /** Since zero is a valid timezoneOffset, we will make it nullable * so unavailable timezone can be set as null. */ timezoneOffset: number; dateCreated: DateTime; dateUpdated: DateTime; parent: GeoEntity; children: GeoEntity[]; cityAddresses: StoreAccountAddress[]; cityContacts: Contact[]; } export {}; //# sourceMappingURL=GeoEntity.d.ts.map