UNPKG

@commercelayer/cli

Version:
26 lines (25 loc) 2 kB
import { Command, type Config } from '@oclif/core'; import type { AppAuth, AppInfo, AuthScope } from '@commercelayer/cli-core'; export default class ApplicationsLogin extends Command { static description: string; static aliases: string[]; static examples: string[]; static flags: { organization: import("@oclif/core/lib/interfaces/parser").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; domain: import("@oclif/core/lib/interfaces/parser").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; clientId: import("@oclif/core/lib/interfaces/parser").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; clientSecret: import("@oclif/core/lib/interfaces/parser").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; scope: import("@oclif/core/lib/interfaces/parser").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; email: import("@oclif/core/lib/interfaces/parser").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; password: import("@oclif/core/lib/interfaces/parser").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; alias: import("@oclif/core/lib/interfaces/parser").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; debug: import("@oclif/core/lib/interfaces/parser").BooleanFlag<boolean>; }; catch(error: any): Promise<any>; parse(c: any): Promise<any>; run(): Promise<any>; } declare const getApplicationInfo: (auth: AppAuth, accessToken: string) => Promise<AppInfo>; declare const checkScope: (scopeFlags: string[] | undefined) => AuthScope; declare const checkAlias: (alias: string, config?: Config, organization?: string) => string; export { getApplicationInfo, checkScope, checkAlias };