( body: T, context: FunctionRouteExecutionContext )
| 867 | } |
| 868 | |
| 869 | async function compactFunctionRouteBody<T>( |
| 870 | body: T, |
| 871 | context: FunctionRouteExecutionContext |
| 872 | ): Promise<T> { |
| 873 | return compactExecutionPayload(body, { |
| 874 | workflowId: context.workflowId, |
| 875 | workspaceId: context.workspaceId, |
| 876 | executionId: context.executionId, |
| 877 | userId: context.userId, |
| 878 | preserveRoot: true, |
| 879 | requireDurable: Boolean(context.workspaceId && context.workflowId && context.executionId), |
| 880 | }) |
| 881 | } |
| 882 | |
| 883 | async function functionJsonResponse<T>( |
| 884 | body: T, |
no test coverage detected