cnpmcore
Version:
Private NPM Registry for Enterprise
15 lines (14 loc) • 794 B
TypeScript
import { Scope } from '../core/entity/Scope.ts';
import { type PageOptions, type PageResult } from '../core/util/EntityUtil.ts';
import { AbstractRepository } from './AbstractRepository.ts';
import type { Scope as ScopeModel } from './model/Scope.ts';
export declare class ScopeRepository extends AbstractRepository {
private readonly Scope;
countByRegistryId(registryId: string): Promise<number>;
findByName(name: string): Promise<Scope | null>;
listScopesByRegistryId(registryId: string, page: PageOptions): Promise<PageResult<Scope>>;
listScopes(page: PageOptions): Promise<PageResult<Scope>>;
saveScope(scope: Scope): Promise<ScopeModel | undefined>;
removeScope(scopeId: string): Promise<void>;
removeScopeByRegistryId(registryId: string): Promise<void>;
}