UNPKG

cnpmcore

Version:

Private NPM Registry for Enterprise

26 lines (25 loc) 774 B
import type { RegistryType } from '../../common/enum/Registry.ts'; import { type EasyData } from '../util/EntityUtil.ts'; import { Entity, type EntityData } from './Entity.ts'; 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 {};