@basictech/cli
Version:
Basic CLI for creating & managing your projects
23 lines • 1.01 kB
TypeScript
import type { Project, Team, Schema, ValidationResult, CreateProjectData } from './types';
export declare class ApiClient {
private static instance;
private authService;
constructor();
static getInstance(): ApiClient;
private request;
getProjects(): Promise<Project[]>;
createProject(data: CreateProjectData): Promise<Project>;
createProjectWithTeam(name: string, slug: string, teamId: string): Promise<Project>;
getProject(projectId: string): Promise<Project>;
getTeams(): Promise<Team[]>;
createTeam(name: string, slug: string): Promise<Team>;
checkTeamSlugAvailability(slug: string): Promise<boolean>;
getProjectSchema(projectId: string): Promise<Schema | null>;
pushProjectSchema(projectId: string, schema: Schema): Promise<void>;
validateSchema(schema: Schema): Promise<ValidationResult>;
compareSchema(schema: Schema): Promise<{
valid: boolean;
}>;
checkLatestRelease(): Promise<string>;
}
//# sourceMappingURL=api.d.ts.map