mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
- Added package.json for OneUptime CLI with scripts for development and build processes. - Included TypeScript configuration (tsconfig.json) with strict type checking and module settings.
35 lines
577 B
TypeScript
35 lines
577 B
TypeScript
export interface CLIContext {
|
|
name: string;
|
|
apiUrl: string;
|
|
apiKey: string;
|
|
}
|
|
|
|
export interface CLIConfig {
|
|
currentContext: string;
|
|
contexts: Record<string, CLIContext>;
|
|
defaults: {
|
|
output: string;
|
|
limit: number;
|
|
};
|
|
}
|
|
|
|
export enum OutputFormat {
|
|
JSON = "json",
|
|
Table = "table",
|
|
Wide = "wide",
|
|
}
|
|
|
|
export interface ResourceInfo {
|
|
name: string;
|
|
singularName: string;
|
|
pluralName: string;
|
|
apiPath: string;
|
|
tableName: string;
|
|
modelType: "database" | "analytics";
|
|
}
|
|
|
|
export interface ResolvedCredentials {
|
|
apiUrl: string;
|
|
apiKey: string;
|
|
}
|