UNPKG

liveperson-functions-cli

Version:
22 lines (21 loc) 671 B
import * as requestGot from 'got'; export declare class CsdsClient { private readonly got; private ttlInSeconds; private lastCacheTimestamp; private domains; private accountId; constructor(got?: typeof requestGot); /** * Returns the desired service domain based on the provided accountId * @param {string} accountId - accountId * @param {string} service - Desired service * @returns {Promise<string>} - csds domain * @memberof CsdsClient */ getUri(accountId: string, service: string): Promise<string>; private getCachedDomains; private isCacheExpired; private getUrl; private getCsdsDomain; }