(
slug: IntegrationSlug,
)
| 2840 | }); |
| 2841 | |
| 2842 | const integrationsGet = ( |
| 2843 | slug: IntegrationSlug, |
| 2844 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 2845 | Effect.gen(function* () { |
| 2846 | const staticIntegration = staticIntegrations().find( |
| 2847 | (integration) => integration.id === String(slug), |
| 2848 | ); |
| 2849 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 2850 | const row = yield* findIntegrationRow(slug); |
| 2851 | return row |
| 2852 | ? rowToIntegration(row, describeAuthMethodsForRow(row), describeDisplayForRow(row)) |
| 2853 | : null; |
| 2854 | }); |
| 2855 | |
| 2856 | const integrationsGetRecord = ( |
| 2857 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected