cnpmcore
Version:
26 lines (25 loc) • 755 B
TypeScript
import { Entity, EntityData } from './Entity';
import { EasyData } from '../util/EntityUtil';
import type { RegistryType } from '../../common/enum/Registry';
interface RegistryData extends EntityData {
name: string;
registryId: string;
host: string;
changeStream: string;
userPrefix: string;
type: RegistryType;
authToken?: string;
}
export type CreateRegistryData = Omit<EasyData<RegistryData, 'registryId'>, 'id'>;
export declare class Registry extends Entity {
name: string;
registryId: string;
host: string;
changeStream: string;
userPrefix: string;
type: RegistryType;
authToken?: string;
constructor(data: RegistryData);
static create(data: CreateRegistryData): Registry;
}
export {};