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