liveperson-functions-cli
Version:
LivePerson Functions CLI
22 lines (21 loc) • 671 B
TypeScript
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;
}