(c: Connection)
| 34 | const decodeOAuthSessionNotFoundError = Schema.decodeUnknownOption(OAuthSessionNotFoundError); |
| 35 | |
| 36 | const connectionToResponse = (c: Connection) => ({ |
| 37 | owner: c.owner, |
| 38 | name: c.name, |
| 39 | integration: c.integration, |
| 40 | template: c.template, |
| 41 | provider: c.provider, |
| 42 | address: c.address, |
| 43 | identityLabel: c.identityLabel ?? null, |
| 44 | expiresAt: c.expiresAt ?? null, |
| 45 | oauthClient: c.oauthClient ?? null, |
| 46 | oauthClientOwner: c.oauthClientOwner ?? null, |
| 47 | oauthScope: c.oauthScope ?? null, |
| 48 | missingOAuthScopes: c.missingOAuthScopes ?? [], |
| 49 | }); |
| 50 | |
| 51 | const startResultToResponse = (result: ConnectResult) => |
| 52 | result.status === "connected" |
no outgoing calls
no test coverage detected