@omlet/cli
Version:
Omlet (https://omlet.dev) is a component analytics tool that uses a CLI to scan your codebase to detect components and their usage. Get real usage insights from customizable charts to measure adoption across all projects and identify opportunities to impr
38 lines (37 loc) • 1.51 kB
TypeScript
import { type ErrorResponseCode, type TrackerEventProps } from "./apiClient";
export declare enum Command {
init = "init",
analyze = "analyze",
login = "login",
none = "none"
}
interface RequiredProps {
deviceId: string;
cliVersion: string;
distinct_id: string;
command: Command;
ci_vendor?: string;
}
declare type EventProps = Omit<TrackerEventProps, keyof RequiredProps>;
export declare function setDefaultProps(props: EventProps): void;
export declare function trackLogin(): void;
export declare function trackHookScript(): void;
export declare function trackAnalyzeBeforeInitError(): void;
export declare function trackAnalysisLimitReachedError(): void;
export declare function trackInitAfterAnalyzeError(): void;
export declare function trackInitSecondScan(): void;
export declare function trackInitSecondScanError(errorMessage: string): void;
export declare function trackAnalyzeError(errorMessage: string, props?: {
code?: ErrorResponseCode;
}): void;
export declare function trackConfigLoadingError(errorMessage: string): void;
interface SetupValidationErrorProps {
numberOfIssues: number;
numberOfWarnings: number;
numberOfErrors: number;
}
export declare function trackProjectSetupValidationError(errorMessage: string, props?: SetupValidationErrorProps): void;
export declare function trackInitInCIError(): void;
export declare function trackLoginFailedError(): void;
export declare function trackCommandFailedError(error: string): void;
export {};