(sandbox: Record<string, any>)
| 79 | * Maps a raw Daytona sandbox object to the normalized summary shape. |
| 80 | */ |
| 81 | export function mapDaytonaSandbox(sandbox: Record<string, any>): DaytonaSandboxSummary { |
| 82 | return { |
| 83 | id: sandbox.id ?? '', |
| 84 | name: sandbox.name ?? '', |
| 85 | state: sandbox.state ?? null, |
| 86 | snapshot: sandbox.snapshot ?? null, |
| 87 | target: sandbox.target ?? null, |
| 88 | cpu: sandbox.cpu ?? null, |
| 89 | gpu: sandbox.gpu ?? null, |
| 90 | memory: sandbox.memory ?? null, |
| 91 | disk: sandbox.disk ?? null, |
| 92 | labels: sandbox.labels ?? {}, |
| 93 | public: sandbox.public ?? null, |
| 94 | errorReason: sandbox.errorReason ?? null, |
| 95 | autoStopInterval: sandbox.autoStopInterval ?? null, |
| 96 | createdAt: sandbox.createdAt ?? null, |
| 97 | updatedAt: sandbox.updatedAt ?? null, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Shared output property map for sandbox summary outputs. |
no outgoing calls
no test coverage detected