(serverUrl: string, namespace: string)
| 51 | * (e.g. `http://localhost:7243/` → `http://localhost:7243/api/v1/namespaces/default`). |
| 52 | */ |
| 53 | export function temporalNamespaceUrl(serverUrl: string, namespace: string): string { |
| 54 | const base = serverUrl.trim().replace(/\/+$/, '') |
| 55 | return `${base}/api/v1/namespaces/${encodeURIComponent(namespace.trim())}` |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Builds the `/workflows/{workflowId}` URL for a workflow execution, trimming and |
no test coverage detected