( audit: GenerationSessionAudit, stageUsage: GenerationStageUsage, )
| 81 | } |
| 82 | |
| 83 | export function withStageUsage( |
| 84 | audit: GenerationSessionAudit, |
| 85 | stageUsage: GenerationStageUsage, |
| 86 | ): GenerationSessionAudit { |
| 87 | return { |
| 88 | ...audit, |
| 89 | stageUsages: [...audit.stageUsages, stageUsage], |
| 90 | updatedAt: nowIso(), |
| 91 | }; |
| 92 | } |
| 93 | |
| 94 | export function withGraphAttempt( |
| 95 | audit: GenerationSessionAudit, |