@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
15 lines (14 loc) • 559 B
TypeScript
import type { Accountability, Item, PermissionsAction } from '@directus/types';
import type { Context } from '../../types.js';
export interface ProcessPayloadOptions {
accountability: Accountability;
action: PermissionsAction;
collection: string;
payload: Item;
nested: string[];
}
/**
* @note this only validates the top-level fields. The expectation is that this function is called
* for each level of nested insert separately
*/
export declare function processPayload(options: ProcessPayloadOptions, context: Context): Promise<any>;