(
slug: IntegrationSlug,
)
| 3010 | }); |
| 3011 | |
| 3012 | const integrationsGet = ( |
| 3013 | slug: IntegrationSlug, |
| 3014 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 3015 | Effect.gen(function* () { |
| 3016 | const staticIntegration = staticIntegrations().find( |
| 3017 | (integration) => integration.id === String(slug), |
| 3018 | ); |
| 3019 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 3020 | const row = yield* findIntegrationRow(slug); |
| 3021 | return row |
| 3022 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 3023 | : null; |
| 3024 | }); |
| 3025 | |
| 3026 | const integrationsGetRecord = ( |
| 3027 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected