UNPKG

1.6 kBTypeScriptView Raw
1import { Authentications } from '@bearer/types/lib/authentications';
2import { flags } from '@oclif/command';
3import BaseCommand from '../base-command';
4export default class New extends BaseCommand {
5 static description: string;
6 static flags: {
7 help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
8 skipInstall: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9 withViews: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10 authType: flags.IOptionFlag<string | undefined>;
11 path: flags.IOptionFlag<string | undefined>;
12 silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
13 };
14 static args: {
15 name: string;
16 }[];
17 private destinationFolder;
18 private path?;
19 run(): Promise<void>;
20 getVars: (name: string, authType: Authentications) => {
21 integrationTitle: string;
22 componentName: string;
23 componentTagName: string;
24 bearerTagVersion: string;
25 bearerRestClient: string;
26 };
27 bearerRestClient(authType: Authentications): string;
28 readonly copyDestFolder: string;
29 createStructure(name: string, authType: Authentications): Promise<string[]>;
30 initViewsVars: (name: string, authType: Authentications) => {
31 setup: string;
32 integrationTitle: string;
33 componentName: string;
34 componentTagName: string;
35 bearerTagVersion: string;
36 bearerRestClient: string;
37 };
38 createAuthenticationFiles(name: string, authType: Authentications): Promise<string[]>;
39 askForAuthType(): Promise<Authentications>;
40}