(
slug: IntegrationSlug,
)
| 1937 | }); |
| 1938 | |
| 1939 | const integrationsGet = ( |
| 1940 | slug: IntegrationSlug, |
| 1941 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 1942 | Effect.gen(function* () { |
| 1943 | const staticIntegration = staticIntegrations().find( |
| 1944 | (integration) => integration.id === String(slug), |
| 1945 | ); |
| 1946 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 1947 | const row = yield* findIntegrationRow(slug); |
| 1948 | return row |
| 1949 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 1950 | : null; |
| 1951 | }); |
| 1952 | |
| 1953 | const integrationsGetRecord = ( |
| 1954 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected