@cumulus/api-client
Version:
API client for working with the Cumulus archive API
20 lines • 905 B
TypeScript
import { ApiGatewayLambdaHttpProxyResponse, HttpMethod, InvokeApiFunction } from './types';
/**
* Query orca recovery requests
* GET /orca/recovery
* @param {Object} params - params
* @param {string} [params.query] - query to pass the API lambda
* @param {Function} params.callback - async function to invoke the api lambda
* that takes a prefix / user payload. Defaults
* to cumulusApiClient.invokeApifunction to invoke the
* api lambda
* @returns {Promise<Object>} - the response from the callback
*/
export declare const submitRequestToOrca: (params: {
prefix: string;
httpMethod: HttpMethod;
path: string;
body: object;
callback?: InvokeApiFunction;
}) => Promise<ApiGatewayLambdaHttpProxyResponse>;
//# sourceMappingURL=orca.d.ts.map