ministryplatform-fetch
Version:
A library for fetching data from MinistryPlatform using the customwidget API
37 lines (32 loc) • 750 B
TypeScript
declare type APIData = {
DataSet1?: unknown;
DataSet2?: unknown;
DataSet3?: unknown;
DataSet4?: unknown;
DataSet5?: unknown;
DataSet6?: unknown;
DataSet7?: unknown;
DataSet8?: unknown;
DataSet9?: unknown;
DataSet10?: unknown;
};
declare type APIError = {
status: number;
message: string;
details?: string | null;
};
declare type APIResponse = {
data: APIData | null;
error: APIError | null;
};
export declare const MPFetch: {
getData: (opts: {
host: string;
storedProc: string;
params?: string;
requireUser?: boolean;
debug?: boolean;
cache?: boolean;
}) => Promise<APIResponse>;
};
export { }