(
slug: IntegrationSlug,
)
| 2274 | }); |
| 2275 | |
| 2276 | const integrationsGet = ( |
| 2277 | slug: IntegrationSlug, |
| 2278 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 2279 | Effect.gen(function* () { |
| 2280 | const staticIntegration = staticIntegrations().find( |
| 2281 | (integration) => integration.id === String(slug), |
| 2282 | ); |
| 2283 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 2284 | const row = yield* findIntegrationRow(slug); |
| 2285 | return row |
| 2286 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 2287 | : null; |
| 2288 | }); |
| 2289 | |
| 2290 | const integrationsGetRecord = ( |
| 2291 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected