(
slug: IntegrationSlug,
)
| 2320 | }); |
| 2321 | |
| 2322 | const integrationsGet = ( |
| 2323 | slug: IntegrationSlug, |
| 2324 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 2325 | Effect.gen(function* () { |
| 2326 | const staticIntegration = staticIntegrations().find( |
| 2327 | (integration) => integration.id === String(slug), |
| 2328 | ); |
| 2329 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 2330 | const row = yield* findIntegrationRow(slug); |
| 2331 | return row |
| 2332 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 2333 | : null; |
| 2334 | }); |
| 2335 | |
| 2336 | const integrationsGetRecord = ( |
| 2337 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected