UNPKG

@swell/cli

Version:

Swell's command line interface/utility

28 lines (27 loc) 944 B
import { HttpMethod } from './lib/api.js'; import { SwellCommand } from './swell-command.js'; export declare abstract class SwellApiCommand extends SwellCommand { protected abstract get method(): HttpMethod; protected request(command: typeof SwellApiCommand, requestOptions?: Api.RequestOptions): Promise<void>; protected catch(error: Error): Promise<any>; private parseCommand; /** * Resolve app ObjectId from a friendly slug or return as-is if already an ObjectId. */ private resolveAppId; /** * Resolve function ID from app ID and function name. */ private resolveFunctionId; private isPlainObject; /** * Build a function invocation request via the admin /:functions endpoint. */ private buildFunctionCallRequest; private parseQueryString; private processBody; private isFilePath; private handleResponse; private onSuccess; private onError; }