mongodb-download-url
Version:
Lookup download URLs for MongoDB versions.
45 lines • 1.34 kB
TypeScript
export type ArchiveBaseInfo = {
sha1: string;
sha256: string;
url: string;
};
export type DownloadInfo = {
edition: 'enterprise' | 'targeted' | 'base' | 'source' | 'subscription';
target?: string;
arch?: string;
archive: {
debug_symbols: string;
} & ArchiveBaseInfo;
cryptd?: ArchiveBaseInfo;
csfle?: ArchiveBaseInfo;
crypt_shared?: ArchiveBaseInfo;
shell?: ArchiveBaseInfo;
packages?: string[];
msi?: string;
};
export type VersionInfo = {
changes: string;
notes: string;
date: string;
githash: string;
continuous_release: boolean;
current: boolean;
development_release: boolean;
lts_release: boolean;
production_release: boolean;
release_candidate: boolean;
version: string;
downloads: DownloadInfo[];
};
export type ReleaseTag = 'continuous_release' | 'development_release' | 'production_release' | 'release_candidate' | '*';
export type VersionListOpts = {
version?: string;
versionListUrl?: string;
cachePath?: string;
cacheTimeMs?: number;
productionOnly?: boolean;
allowedTags?: readonly ReleaseTag[];
};
export declare function getVersion(opts: VersionListOpts): Promise<VersionInfo>;
export declare function clearCache(cachePath?: string): Promise<void>;
//# sourceMappingURL=version-list.d.ts.map