(info: TemporalRawExecutionInfo | undefined)
| 223 | * describe and list tools. int64 fields arrive as JSON strings and are coerced to numbers. |
| 224 | */ |
| 225 | export function mapExecutionInfo(info: TemporalRawExecutionInfo | undefined) { |
| 226 | return { |
| 227 | workflowId: info?.execution?.workflowId ?? null, |
| 228 | runId: info?.execution?.runId ?? null, |
| 229 | workflowType: info?.type?.name ?? null, |
| 230 | status: stripEnumPrefix(info?.status, 'WORKFLOW_EXECUTION_STATUS_'), |
| 231 | startTime: info?.startTime ?? null, |
| 232 | closeTime: info?.closeTime ?? null, |
| 233 | executionTime: info?.executionTime ?? null, |
| 234 | historyLength: info?.historyLength != null ? Number(info.historyLength) : null, |
| 235 | taskQueue: info?.taskQueue ?? null, |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Maps a raw history event to a flat shape, extracting the event's `*EventAttributes` |
no test coverage detected