1 | export interface PackageAccess {
|
2 | storage?: string;
|
3 | publish?: string[];
|
4 | proxy?: string[];
|
5 | access?: string[];
|
6 | }
|
7 | export interface PackageList {
|
8 | [key: string]: PackageAccess;
|
9 | }
|
10 | export interface MergeTags {
|
11 | [key: string]: string;
|
12 | }
|
13 | export interface DistFile {
|
14 | url: string;
|
15 | sha: string;
|
16 | registry?: string;
|
17 | }
|
18 | export interface DistFiles {
|
19 | [key: string]: DistFile;
|
20 | }
|
21 | export interface Token {
|
22 | user: string;
|
23 | token: string;
|
24 | key: string;
|
25 | cidr?: string[];
|
26 | readonly: boolean;
|
27 | created: number | string;
|
28 | updated?: number | string;
|
29 | }
|
30 | export interface AttachMents {
|
31 | [key: string]: AttachMentsItem;
|
32 | }
|
33 | export interface AttachMentsItem {
|
34 | content_type?: string;
|
35 | data?: string;
|
36 | length?: number;
|
37 | shasum?: string;
|
38 | version?: string;
|
39 | }
|
40 | export interface GenericBody {
|
41 | [key: string]: string;
|
42 | }
|
43 | export interface UpLinkMetadata {
|
44 | etag: string;
|
45 | fetched: number;
|
46 | }
|
47 | export interface UpLinks {
|
48 | [key: string]: UpLinkMetadata;
|
49 | }
|
50 | export interface Dist {
|
51 | integrity?: string;
|
52 | shasum: string;
|
53 | tarball: string;
|
54 | }
|
55 | export interface Author {
|
56 | name: string;
|
57 | email?: string;
|
58 | url?: string;
|
59 | }
|
60 | export interface PackageUsers {
|
61 | [key: string]: boolean;
|
62 | }
|
63 | export interface Version {
|
64 | name: string;
|
65 | version: string;
|
66 | directories?: any;
|
67 | dist: Dist;
|
68 | author: string | Author;
|
69 | main: string;
|
70 | homemage?: string;
|
71 | license?: string;
|
72 | readme: string;
|
73 | readmeFileName?: string;
|
74 | readmeFilename?: string;
|
75 | description: string;
|
76 | bin?: string;
|
77 | bugs?: any;
|
78 | files?: string[];
|
79 | gitHead?: string;
|
80 | maintainers?: Author[];
|
81 | contributors?: Author[];
|
82 | repository?: string | any;
|
83 | scripts?: any;
|
84 | homepage?: string;
|
85 | etag?: string;
|
86 | dependencies?: Dependencies;
|
87 | peerDependencies?: Dependencies;
|
88 | peerDependenciesMeta?: PeerDependenciesMeta;
|
89 | devDependencies?: Dependencies;
|
90 | optionalDependencies?: Dependencies;
|
91 | bundleDependencies?: Dependencies;
|
92 | keywords?: string | string[];
|
93 | nodeVersion?: string;
|
94 | _id: string;
|
95 | _npmVersion?: string;
|
96 | _npmUser: Author;
|
97 | _hasShrinkwrap?: boolean;
|
98 | deprecated?: string;
|
99 | funding?: {
|
100 | type: string;
|
101 | url: string;
|
102 | };
|
103 | engines?: Engines;
|
104 | cpu?: string[];
|
105 | os?: string[];
|
106 | hasInstallScript?: boolean;
|
107 | }
|
108 | export interface PeerDependenciesMeta {
|
109 | [dependencyName: string]: {
|
110 | optional?: boolean;
|
111 | };
|
112 | }
|
113 | export interface Dependencies {
|
114 | [key: string]: string;
|
115 | }
|
116 | export interface Engines {
|
117 | [key: string]: string;
|
118 | }
|
119 | export interface Versions {
|
120 | [key: string]: Version;
|
121 | }
|
122 | export declare type AbbreviatedVersion = Pick<Version, 'name' | 'version' | 'description' | 'dependencies' | 'devDependencies' | 'bin' | 'dist' | 'engines' | 'funding' | 'peerDependencies'>;
|
123 | export interface AbbreviatedVersions {
|
124 | [key: string]: AbbreviatedVersion;
|
125 | }
|
126 |
|
127 |
|
128 |
|
129 | export declare type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'> & {
|
130 | modified: string;
|
131 | versions: AbbreviatedVersions;
|
132 | };
|
133 | export declare type Package = Manifest;
|
134 | export interface Manifest {
|
135 | _id?: string;
|
136 | name: string;
|
137 | versions: Versions;
|
138 | 'dist-tags': GenericBody;
|
139 | time?: GenericBody;
|
140 | readme?: string;
|
141 | users?: PackageUsers;
|
142 | _distfiles: DistFiles;
|
143 | _attachments: AttachMents;
|
144 | _uplinks: UpLinks;
|
145 | _rev: string;
|
146 | }
|