UNPKG

1.16 kBPlain TextView 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}
27
28export interface RegistryMetadataOther {
29 readonly data_size: number;
30}
31
32export interface RegistryMetadataSizes {
33 readonly file: number;
34 readonly active: number;
35 readonly external: number;
36}