datadirect
Version:
Types for working with Blackbaud's front-end APIs
15 lines (14 loc) • 428 B
JavaScript
import * as Endpoint from '../../../../Endpoint.js';
export function widget() {
return (payload, base) => {
// TODO filter widget payload
if (!payload.contextValue) {
throw new Error(`contextValue must be set (usually to the group or section ID)`);
}
return Endpoint.prepare({
payload,
base,
path: `/api/widget/WidgetGet/`
});
};
}