@codecovevienna/gittt-cli
Version:
Tracking time with CLI into a git repository
29 lines (28 loc) • 1.98 kB
TypeScript
import { IJiraLink, IMultipieInputLink, IMultipieStoreLink, IProject, IRecord } from "../interfaces";
import { RECORD_TYPES } from "../types";
export declare class QuestionHelper {
static filterJiraEndpoint: (input: any) => boolean | string | Promise<boolean | string>;
static askYear: (defaultValue?: number | undefined) => Promise<number>;
static askMonth: (defaultValue?: number | undefined) => Promise<number>;
static askDay: (defaultValue?: number | undefined) => Promise<number>;
static askHour: (defaultValue?: number | undefined) => Promise<number>;
static askMinute: (defaultValue?: number | undefined) => Promise<number>;
static askAmount: (oldAmount?: number | undefined) => Promise<number>;
static askMessage: (defaultValue?: string | undefined) => Promise<string | undefined>;
static askGitUrl: () => Promise<string>;
static askJiraLink: (project: IProject, prevData?: IJiraLink | undefined, endpointVersion?: string) => Promise<IJiraLink>;
static askMultipieLink: (project: IProject, prevData?: IMultipieStoreLink | undefined) => Promise<IMultipieInputLink>;
static chooseRecord: (records: IRecord[]) => Promise<IRecord>;
static chooseType: (oldType?: RECORD_TYPES | undefined) => Promise<RECORD_TYPES>;
static chooseRole: (project: IProject, record: IRecord, oldRole?: string | undefined) => Promise<string>;
static chooseIntegration: () => Promise<string>;
static chooseDomain: (domains: string[]) => Promise<string>;
static chooseProjectFile: (projects: IProject[]) => Promise<string>;
static chooseOverrideLocalChanges: () => Promise<number>;
static confirmMigration: () => Promise<boolean>;
static confirmLinkCreation: () => Promise<boolean>;
static confirmPushLocalChanges: () => Promise<boolean>;
static confirmSetup: () => Promise<boolean>;
static confirmInit: () => Promise<boolean>;
static confirmTicketNumber: (ticketNumber: string) => Promise<boolean>;
}