(workspaceId: string, filters: LogFilters, cursor: string | null)
| 105 | } |
| 106 | |
| 107 | function buildListQuery(workspaceId: string, filters: LogFilters, cursor: string | null) { |
| 108 | const params = new URLSearchParams() |
| 109 | applyFilterParams(params, filters) |
| 110 | |
| 111 | return { |
| 112 | workspaceId, |
| 113 | limit: filters.limit, |
| 114 | sortBy: filters.sortBy, |
| 115 | sortOrder: filters.sortOrder, |
| 116 | ...(cursor ? { cursor } : {}), |
| 117 | ...Object.fromEntries(params.entries()), |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | interface LogsPage { |
| 122 | logs: WorkflowLogSummary[] |
no test coverage detected