cnpmcore
Version:
Private NPM Registry for Enterprise
14 lines (13 loc) • 823 B
TypeScript
import { Registry as RegistryEntity } from '../core/entity/Registry.ts';
import { type PageOptions, type PageResult } from '../core/util/EntityUtil.ts';
import { AbstractRepository } from './AbstractRepository.ts';
import type { Registry as RegistryModel } from './model/Registry.ts';
export declare class RegistryRepository extends AbstractRepository {
private readonly Registry;
listRegistries(page: PageOptions): Promise<PageResult<RegistryEntity>>;
findRegistry(name?: string): Promise<RegistryEntity | null>;
findRegistryByRegistryId(registryId: string): Promise<RegistryEntity | null>;
findRegistryByRegistryHost(host: string): Promise<RegistryEntity | null>;
saveRegistry(registry: RegistryEntity): Promise<RegistryModel | undefined>;
removeRegistry(registryId: string): Promise<void>;
}