UNPKG

@onboardbase/cli

Version:

[![Version](https://img.shields.io/npm/v/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![Downloads/week](https://img.shields.io/npm/dw/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![License](https://img

44 lines (43 loc) 1.16 kB
/// <reference types="node" /> import { Command } from "@oclif/config"; export declare type LoginInput = { flags?: { password: string; scope?: string; overwrite: boolean; }; shouldCloseProcess: boolean; additionalProcesses?: { nextFunc: (executor: Command) => Promise<void>; executor: Command; }; }; export declare type HandleAuthenticationInput = { pollingCode: string; newConfig: { scope: string; token: any; }; flags: { password: string; overwrite: boolean; }; shouldCloseProcess: boolean; additionalProcesses: { nextFunc: (executor: Command) => Promise<void>; executor: Command; }; }; export declare type HandlePollingAtIntervalInput = HandleAuthenticationInput & { intervalHandler: NodeJS.Timeout; intervalTimeout: NodeJS.Timeout; }; export declare type HandleSuccessfulAuthInput = Omit<HandlePollingAtIntervalInput, "pollingCode"> & { authTokenResponse: any; }; export declare type AuthCommandFlag = { password: string; scope?: string; shouldCloseProcess?: boolean; overwrite: boolean; };