UNPKG

@adastradev/serverless-discovery-sdk

Version:

Serverless Service Discovery API

20 lines (19 loc) 869 B
export declare class DiscoverySdk { private api; private readonly defaultStageName?; private readonly lookupVersionPostfix?; private cloudDependencies; constructor(serviceEndpointUri: string, region?: string, defaultStageName?: string, lookupVersionPostfix?: string, cloudDeps?: Map<string, string>); get cloudDependencyNames(): string[]; getDependency(name: string): string | undefined; lookupService(serviceName: string, stageName?: string, version?: string, externalID?: string, shouldInvalidateCache?: boolean): Promise<any>; checkIsCurrentVersion(service: string, configVersion: string, shouldInvalidateCache?: boolean): Promise<{ isLatest: boolean; URI?: undefined; currentVersion?: undefined; } | { URI: string | undefined; isLatest: boolean; currentVersion: any; }>; }