| 16 | import { ExecutorService } from "../services"; |
| 17 | |
| 18 | const toResponse = (c: Connection) => ({ |
| 19 | owner: c.owner, |
| 20 | name: c.name, |
| 21 | integration: c.integration, |
| 22 | template: c.template, |
| 23 | provider: c.provider, |
| 24 | address: c.address, |
| 25 | identityLabel: c.identityLabel ?? null, |
| 26 | description: c.description ?? null, |
| 27 | expiresAt: c.expiresAt ?? null, |
| 28 | oauthClient: c.oauthClient ?? null, |
| 29 | oauthClientOwner: c.oauthClientOwner ?? null, |
| 30 | oauthScope: c.oauthScope ?? null, |
| 31 | missingOAuthScopes: c.missingOAuthScopes ?? [], |
| 32 | lastHealth: c.lastHealth ?? null, |
| 33 | }); |
| 34 | |
| 35 | const toolToResponse = (t: Tool) => ({ |
| 36 | address: String(t.address), |