bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
22 lines (21 loc) • 1.22 kB
TypeScript
import { BitIds, BitId } from '../../bit-id';
import ComponentObjects from '../../scope/component-objects';
import { ScopeDescriptor } from '../scope';
import Component from '../../consumer/component';
import { ListScopeResult } from '../../consumer/component/components-list';
import DependencyGraph from '../graph/scope-graph';
import { SSHConnectionStrategyName } from './ssh/ssh';
import { ComponentLogs } from '../models/model-component';
export interface Network {
close(): void;
describeScope(): Promise<ScopeDescriptor>;
fetch(bitIds: BitIds): Promise<ComponentObjects[]>;
list(namespacesUsingWildcards?: string, strategiesNames?: SSHConnectionStrategyName[]): Promise<ListScopeResult[]>;
search(query: string, reindex: boolean): Promise<string>;
show(bitId: BitId): Promise<Component | null | undefined>;
deprecateMany(ids: string[], context: Record<string, any> | null | undefined): Promise<Record<string, any>[]>;
undeprecateMany(ids: string[], context: Record<string, any> | null | undefined): Promise<Record<string, any>[]>;
log(id: BitId): Promise<ComponentLogs>;
latestVersions(bitIds: BitIds): Promise<string[]>;
graph(bitId?: BitId): Promise<DependencyGraph>;
}