2021-03-30 14:05:58 +02:00
|
|
|
// REMOVE and VERIFY where these types are used and remove the package
|
2021-10-29 17:33:05 +02:00
|
|
|
import { Callback, Package, RemoteUser } from '@verdaccio/types';
|
2018-07-15 23:23:14 +02:00
|
|
|
|
2018-08-21 08:05:34 +02:00
|
|
|
export type JWTPayload = RemoteUser & {
|
|
|
|
password?: string;
|
2020-08-13 23:36:23 +02:00
|
|
|
};
|
2018-08-21 08:05:34 +02:00
|
|
|
|
2019-07-16 08:40:01 +02:00
|
|
|
export interface Utils {
|
2018-07-15 23:23:14 +02:00
|
|
|
ErrorCode: any;
|
|
|
|
getLatestVersion: Callback;
|
|
|
|
isObject: (value: any) => boolean;
|
|
|
|
validate_name: (value: any) => boolean;
|
|
|
|
tag_version: (value: any, version: string, tag: string) => void;
|
|
|
|
normalizeDistTags: (pkg: Package) => void;
|
2019-07-16 08:40:01 +02:00
|
|
|
semverSort: (keys: string[]) => string[];
|
2018-07-15 23:23:14 +02:00
|
|
|
}
|
|
|
|
|
2019-07-16 08:40:01 +02:00
|
|
|
export interface Profile {
|
2018-10-12 11:07:55 +02:00
|
|
|
tfa: boolean;
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
email_verified: string;
|
|
|
|
created: string;
|
|
|
|
updated: string;
|
|
|
|
cidr_whitelist: any;
|
|
|
|
fullname: string;
|
|
|
|
}
|
|
|
|
|
2018-12-13 19:05:47 +01:00
|
|
|
/**
|
|
|
|
* @property { string | number | Styles } [ruleOrSelector]
|
|
|
|
*/
|
2019-07-16 08:40:01 +02:00
|
|
|
export interface Styles {
|
|
|
|
[ruleOrSelector: string]: string | number | Styles;
|
2021-03-14 08:42:46 +01:00
|
|
|
}
|
2021-11-08 17:24:15 +01:00
|
|
|
|
|
|
|
export type SearchResultWeb = {
|
|
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
};
|