(key: string, taskId: string)
| 203 | } |
| 204 | |
| 205 | export function adminCancelTask(key: string, taskId: string) { |
| 206 | return fetchJson<{ cancelled: boolean }>(`/admin/tasks/${encodeURIComponent(taskId)}/cancel`, key, { |
| 207 | method: "POST", |
| 208 | body: "{}", |
| 209 | }); |
| 210 | } |
| 211 | |
| 212 | export function adminKeys(key: string) { |
| 213 | return fetchJson<ProductKey[]>("/admin/keys", key); |
no test coverage detected