(
slug: IntegrationSlug,
)
| 2260 | }); |
| 2261 | |
| 2262 | const integrationsGet = ( |
| 2263 | slug: IntegrationSlug, |
| 2264 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 2265 | Effect.gen(function* () { |
| 2266 | const staticIntegration = staticIntegrations().find( |
| 2267 | (integration) => integration.id === String(slug), |
| 2268 | ); |
| 2269 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 2270 | const row = yield* findIntegrationRow(slug); |
| 2271 | return row |
| 2272 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 2273 | : null; |
| 2274 | }); |
| 2275 | |
| 2276 | const integrationsGetRecord = ( |
| 2277 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected