(scope: LeaseScope)
| 118 | } |
| 119 | |
| 120 | export function leaseScopeToCommandFlags(scope: LeaseScope): Record<string, unknown> { |
| 121 | return stripUndefined({ |
| 122 | tenant: scope.tenantId, |
| 123 | runId: scope.runId, |
| 124 | leaseId: scope.leaseId, |
| 125 | leaseBackend: scope.leaseBackend, |
| 126 | leaseProvider: scope.leaseProvider, |
| 127 | deviceKey: scope.deviceKey, |
| 128 | clientId: scope.clientId, |
| 129 | }); |
| 130 | } |
| 131 | |
| 132 | export function leaseScopeToAllocateRequest(scope: LeaseScope): LeaseAllocateRequestScope { |
| 133 | return stripUndefined({ |
no test coverage detected