(
slug: IntegrationSlug,
)
| 1846 | }); |
| 1847 | |
| 1848 | const integrationsGet = ( |
| 1849 | slug: IntegrationSlug, |
| 1850 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 1851 | Effect.gen(function* () { |
| 1852 | const staticIntegration = staticIntegrations().find( |
| 1853 | (integration) => integration.id === String(slug), |
| 1854 | ); |
| 1855 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 1856 | const row = yield* findIntegrationRow(slug); |
| 1857 | return row |
| 1858 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 1859 | : null; |
| 1860 | }); |
| 1861 | |
| 1862 | const integrationsGetRecord = ( |
| 1863 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected