(
slug: IntegrationSlug,
)
| 1862 | }); |
| 1863 | |
| 1864 | const integrationsGet = ( |
| 1865 | slug: IntegrationSlug, |
| 1866 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 1867 | Effect.gen(function* () { |
| 1868 | const staticIntegration = staticIntegrations().find( |
| 1869 | (integration) => integration.id === String(slug), |
| 1870 | ); |
| 1871 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 1872 | const row = yield* findIntegrationRow(slug); |
| 1873 | return row |
| 1874 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 1875 | : null; |
| 1876 | }); |
| 1877 | |
| 1878 | const integrationsGetRecord = ( |
| 1879 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected