UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

88 lines (87 loc) 3.04 kB
export declare const items: import("../types.js").ToolConfig<{ collection: string; action: "create"; data: Record<string, any> | Record<string, any>[]; query?: { fields?: string[] | undefined; sort?: string[] | undefined; filter?: Record<string, any> | undefined; limit?: number | undefined; offset?: number | undefined; page?: number | undefined; search?: string | undefined; deep?: Record<string, any> | undefined; alias?: Record<string, string> | undefined; aggregate?: { count?: string[] | undefined; sum?: string[] | undefined; avg?: string[] | undefined; min?: string[] | undefined; max?: string[] | undefined; } | undefined; backlink?: boolean | undefined; version?: string | undefined; versionRaw?: boolean | undefined; export?: string | undefined; groupBy?: string[] | undefined; } | undefined; } | { collection: string; action: "read"; keys?: (string | number)[] | undefined; query?: { fields?: string[] | undefined; sort?: string[] | undefined; filter?: Record<string, any> | undefined; limit?: number | undefined; offset?: number | undefined; page?: number | undefined; search?: string | undefined; deep?: Record<string, any> | undefined; alias?: Record<string, string> | undefined; aggregate?: { count?: string[] | undefined; sum?: string[] | undefined; avg?: string[] | undefined; min?: string[] | undefined; max?: string[] | undefined; } | undefined; backlink?: boolean | undefined; version?: string | undefined; versionRaw?: boolean | undefined; export?: string | undefined; groupBy?: string[] | undefined; } | undefined; } | { collection: string; action: "update"; data: Record<string, any> | Record<string, any>[]; keys?: (string | number)[] | undefined; query?: { fields?: string[] | undefined; sort?: string[] | undefined; filter?: Record<string, any> | undefined; limit?: number | undefined; offset?: number | undefined; page?: number | undefined; search?: string | undefined; deep?: Record<string, any> | undefined; alias?: Record<string, string> | undefined; aggregate?: { count?: string[] | undefined; sum?: string[] | undefined; avg?: string[] | undefined; min?: string[] | undefined; max?: string[] | undefined; } | undefined; backlink?: boolean | undefined; version?: string | undefined; versionRaw?: boolean | undefined; export?: string | undefined; groupBy?: string[] | undefined; } | undefined; } | { collection: string; action: "delete"; keys: (string | number)[]; }>;