UNPKG

1.24 kBTypeScriptView Raw
1/**
2 * `RegistryMetadata` contains information about the registry itself.
3 *
4 * @see {@link https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#registry}
5 * @see {@link https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get}
6 * @see {@link RegistryMetadataOther}
7 * @see {@link RegistryMetadataSizes}
8 */
9export interface RegistryMetadata {
10 /** Database name, usually `registry` */
11 readonly db_name: string;
12 readonly doc_count: number;
13 readonly doc_del_count: number;
14 readonly update_seq: number;
15 readonly purge_seq: number;
16 readonly compact_running: boolean;
17 readonly disk_size: number;
18 readonly data_size: number;
19 readonly instance_start_time: string;
20 readonly disk_format_version: number;
21 readonly committed_update_seq: number;
22 readonly compacted_seq: number;
23 readonly uuid: string;
24 readonly other: RegistryMetadataOther;
25 readonly sizes: RegistryMetadataSizes;
26}
27export interface RegistryMetadataOther {
28 readonly data_size: number;
29}
30export interface RegistryMetadataSizes {
31 readonly file: number;
32 readonly active: number;
33 readonly external: number;
34}
35//# sourceMappingURL=registry-metadata.d.ts.map
\No newline at end of file