(
slug: IntegrationSlug,
)
| 2179 | }); |
| 2180 | |
| 2181 | const integrationsGet = ( |
| 2182 | slug: IntegrationSlug, |
| 2183 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 2184 | Effect.gen(function* () { |
| 2185 | const staticIntegration = staticIntegrations().find( |
| 2186 | (integration) => integration.id === String(slug), |
| 2187 | ); |
| 2188 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 2189 | const row = yield* findIntegrationRow(slug); |
| 2190 | return row |
| 2191 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 2192 | : null; |
| 2193 | }); |
| 2194 | |
| 2195 | const integrationsGetRecord = ( |
| 2196 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected