2021-03-30 07:05:58 -05:00
|
|
|
// REMOVE and VERIFY where these types are used and remove the package
|
2021-10-29 10:33:05 -05:00
|
|
|
import { Callback, Package, RemoteUser } from '@verdaccio/types';
|
2018-07-15 16:23:14 -05:00
|
|
|
|
2018-08-21 01:05:34 -05:00
|
|
|
export type JWTPayload = RemoteUser & {
|
|
|
|
password?: string;
|
2020-08-13 16:36:23 -05:00
|
|
|
};
|
2018-08-21 01:05:34 -05:00
|
|
|
|
2019-07-16 01:40:01 -05:00
|
|
|
export interface Utils {
|
2018-07-15 16:23:14 -05: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 01:40:01 -05:00
|
|
|
semverSort: (keys: string[]) => string[];
|
2018-07-15 16:23:14 -05:00
|
|
|
}
|
|
|
|
|
2019-07-16 01:40:01 -05:00
|
|
|
export interface Profile {
|
2018-10-12 04:07:55 -05:00
|
|
|
tfa: boolean;
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
email_verified: string;
|
|
|
|
created: string;
|
|
|
|
updated: string;
|
|
|
|
cidr_whitelist: any;
|
|
|
|
fullname: string;
|
|
|
|
}
|
|
|
|
|
2018-12-13 13:05:47 -05:00
|
|
|
/**
|
|
|
|
* @property { string | number | Styles } [ruleOrSelector]
|
|
|
|
*/
|
2019-07-16 01:40:01 -05:00
|
|
|
export interface Styles {
|
|
|
|
[ruleOrSelector: string]: string | number | Styles;
|
2021-03-14 02:42:46 -05:00
|
|
|
}
|