(id: string, action?: string)
| 52 | } |
| 53 | |
| 54 | function factProposalPath(id: string, action?: string): string { |
| 55 | const path = `${AUTOMATION_BASE}/fact-proposals/${encodeURIComponent(id)}`; |
| 56 | return action ? `${path}/${action}` : path; |
| 57 | } |
| 58 | |
| 59 | function postAutomationRun<TReport = Record<string, unknown>>( |
| 60 | path: string, |