ministry-platform-provider
Version:
TypeScript client library for Ministry Platform API integration
19 lines (18 loc) • 848 B
TypeScript
import { MinistryPlatformClient } from "../core/ministryPlatformClient.js";
import { ProcedureInfo, QueryParams } from "../Interfaces/mpProviderInterfaces.js";
export declare class ProcedureService {
private client;
constructor(client: MinistryPlatformClient);
/**
* Returns the list of procedures available to the current user with basic metadata.
*/
getProcedures(search?: string): Promise<ProcedureInfo[]>;
/**
* Executes the requested stored procedure retrieving parameters from the query string.
*/
executeProcedure(procedure: string, params?: QueryParams): Promise<unknown[][]>;
/**
* Executes the requested stored procedure with provided parameters in the request body.
*/
executeProcedureWithBody(procedure: string, parameters: Record<string, unknown>): Promise<unknown[][]>;
}