UNPKG

fedapay-cli

Version:
50 lines (49 loc) 1.25 kB
import { flags, Command } from '@oclif/command'; /** * Login Class extending superClass Command */ export default class Login extends Command { /** * @param string * Description of the login command */ static description: string; /** * @param string * login usage */ static usage: string; static flags: { environment: flags.IOptionFlag<string>; interactive: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; help: import("@oclif/parser/lib/flags").IBooleanFlag<void>; }; /** * Send Link request * @param {string} device_name The device name * @param {string} environment The environment * @return {login_url: string; poll_url: string} */ private sendLinksRequest; /** * Send Poll request * @param {string} url * * @return {any} */ private sendPollRequest; /** * Wrap the poll request with a promise. * Resolve it when secret key is defined. * Reject it when max try is reached * @param {string} poll_url The poll url * @return Promise<any> */ private checkSecretKey; /** * The command flags * @var Object * */ run(): Promise<void>; }