hackages
Version:
CLI tool for learning software development concepts through test-driven development
33 lines (32 loc) • 1.19 kB
TypeScript
import { LearningGoal } from "../types/index.js";
export declare const apiClient: {
auth: {
checkCode: (userHandle: string) => Promise<any>;
getAuthUrl: () => Promise<any>;
login: (code: string) => Promise<any>;
getCurrentUser: () => Promise<any>;
};
exercises: {
generate: (learningGoal: LearningGoal, exerciseNumber: number) => Promise<any>;
review: ({ topic, skillLevel, technology, sourceFiles }: {
topic: string;
skillLevel: string;
technology: string;
sourceFiles: {
[filename: string]: string;
};
}) => Promise<import("axios").AxiosResponse<any, any>>;
};
tech: {
getAllTechnologies: () => Promise<any>;
getTechnologyConfig: (tech: string) => Promise<any>;
};
progress: {
getProgress: () => Promise<any>;
updateProgress: (exerciseId: string, status: string, score?: number) => Promise<any>;
};
learning: {
getExercise: (exerciseId: string) => Promise<any>;
getHint: (learningGoalId: string, implementation: string, preferredLanguage?: string) => Promise<any>;
};
};