UNPKG

1.04 kBTypeScriptView Raw
1import BaseCommand from '../../base-command';
2export default class PackFunctions extends BaseCommand {
3 static description: string;
4 static hidden: boolean;
5 static flags: {
6 help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
7 path: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
8 silent: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9 };
10 static args: {
11 name: string;
12 required: boolean;
13 }[];
14 run(): Promise<void>;
15 retrieveAuthConfig(config: {
16 functions: Record<string, string>[];
17 }): Promise<TBearerConfig>;
18 retrieveFunctions(): Promise<TFunctionNames>;
19}
20declare type TFunctionNames = string[];
21declare type TBearerConfig = {
22 functions: Record<string, string>[];
23 auth?: any;
24};
25declare type TLambdaDefinition = {
26 config: {
27 functions: Record<string, string>[];
28 };
29 handlers: string;
30};
31export declare function buildLambdaDefinitions(functions: TFunctionNames): TLambdaDefinition;
32export {};