UNPKG

@xmobitea/gn-server

Version:

GearN Server by XmobiTea (Pro)

12 lines (11 loc) 706 B
import * as mongoDB from "mongodb"; import { ICountryIPDetailService, IPDetailResponse } from "./ICountryIPDetailService"; export declare class CountryIPDetailService implements ICountryIPDetailService { private getIPApiUrl; private countryCodeRegionCollection; private ipAddressUserCollection; init(getIPApiUrl: string, countryCodeRegionCollection: mongoDB.Collection, ipAddressUserCollection: mongoDB.Collection): void; private getIPAddressKeyInDb; getIPDetailResponse(ipAddress: string): Promise<IPDetailResponse>; updateUserIP(userId: string, ipAddress: string, oldCountryCode: string, oldRegionCode: string, newCountryCode: string, newRegionCode: string): Promise<void>; }