evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Build a helper that retrieves task summaries from a database while honoring workspace scoping and simple filters.
x-notion-space-id header; results from other spaces must not appear. @testlimit to cap the number of returned tasks, ordered by most recently updated first. @test{ id, title, status, spaceId, lastEdited }. @testexport interface TaskQueryOptions {
spaceId?: string;
status?: string;
search?: string;
limit?: number;
}
export interface TaskSummary {
id: string;
title: string;
status: string;
spaceId: string;
lastEdited: string;
}
export async function querySpaceTasks(
collectionId: string,
viewId: string,
options?: TaskQueryOptions
): Promise<TaskSummary[]>;Provides collection querying with optional space-aware headers.