1 | import Command, { flags } from "@oclif/command";
|
2 | import Listr, { ListrTask } from "listr";
|
3 | import { ApolloConfig, GraphQLClientProject, GraphQLProject } from "apollo-language-server";
|
4 | import { DeepPartial } from "apollo-env";
|
5 | export interface ProjectContext<Flags = any, Args = any> {
|
6 | project: GraphQLProject;
|
7 | config: ApolloConfig;
|
8 | flags: Flags;
|
9 | args: Args;
|
10 | }
|
11 | export interface Flags {
|
12 | config?: string;
|
13 | header?: string[];
|
14 | endpoint?: string;
|
15 | localSchemaFile?: string;
|
16 | key?: string;
|
17 | engine?: string;
|
18 | tag?: string;
|
19 | variant?: string;
|
20 | graph?: string;
|
21 | skipSSLValidation?: boolean;
|
22 | }
|
23 | export interface ClientCommandFlags extends Flags {
|
24 | includes?: string;
|
25 | queries?: string;
|
26 | excludes?: string;
|
27 | tagName?: string;
|
28 | clientName?: string;
|
29 | clientReferenceId?: string;
|
30 | clientVersion?: string;
|
31 | }
|
32 | export declare abstract class ProjectCommand extends Command {
|
33 | static flags: {
|
34 | config: flags.IOptionFlag<string | undefined>;
|
35 | header: flags.IOptionFlag<string | undefined>;
|
36 | endpoint: flags.IOptionFlag<string | undefined>;
|
37 | key: flags.IOptionFlag<string | undefined>;
|
38 | engine: flags.IOptionFlag<string | undefined>;
|
39 | };
|
40 | project: GraphQLProject;
|
41 | tasks: ListrTask[];
|
42 | protected type: "service" | "client";
|
43 | protected configMap?: (flags: any) => DeepPartial<ApolloConfig>;
|
44 | private ctx;
|
45 | init(): Promise<void>;
|
46 | protected createConfig(flags: Flags): Promise<ApolloConfig | undefined>;
|
47 | protected createService(config: ApolloConfig, flags: Flags): void;
|
48 | runTasks<Result>(generateTasks: (context: ProjectContext) => ListrTask[], options?: Listr.ListrOptions | ((ctx: ProjectContext) => Listr.ListrOptions)): Promise<Result>;
|
49 | catch(err: any): Promise<void>;
|
50 | finally(err: any): Promise<void>;
|
51 | static DEPRECATION_MSG: string;
|
52 | protected printDeprecationWarning(): void;
|
53 | }
|
54 | export declare abstract class ClientCommand extends ProjectCommand {
|
55 | static flags: {
|
56 | clientReferenceId: flags.IOptionFlag<string | undefined>;
|
57 | clientName: flags.IOptionFlag<string | undefined>;
|
58 | clientVersion: flags.IOptionFlag<string | undefined>;
|
59 | tag: flags.IOptionFlag<string | undefined>;
|
60 | variant: flags.IOptionFlag<string | undefined>;
|
61 | graph: flags.IOptionFlag<string | undefined>;
|
62 | queries: flags.IOptionFlag<string | undefined>;
|
63 | includes: flags.IOptionFlag<string | undefined>;
|
64 | excludes: flags.IOptionFlag<string | undefined>;
|
65 | tagName: flags.IOptionFlag<string | undefined>;
|
66 | config: flags.IOptionFlag<string | undefined>;
|
67 | header: flags.IOptionFlag<string | undefined>;
|
68 | endpoint: flags.IOptionFlag<string | undefined>;
|
69 | key: flags.IOptionFlag<string | undefined>;
|
70 | engine: flags.IOptionFlag<string | undefined>;
|
71 | };
|
72 | project: GraphQLClientProject;
|
73 | constructor(argv: any, config: any);
|
74 | }
|
75 | //# sourceMappingURL=Command.d.ts.map |
\ | No newline at end of file |