function searchDumps
searchDumps(
query: string,
page: number,
limit: number,
requestingUserId?: string,
categoryId?: string
): { items: Dump[]; total: number; }

Returns a page of the dumps requestingUserId may see whose title, note, or previewed title or description contains query, newest first, with how many match in all, optionally only those in the dump category categoryId. GET /api/search calls it.

Parameters

query: string
page: number
limit: number
optional
requestingUserId: string
optional
categoryId: string

Return Type

{ items: Dump[]; total: number; }

Usage

import { searchDumps } from "api/services/dump-service.ts";