(
slug: IntegrationSlug,
)
| 3179 | }); |
| 3180 | |
| 3181 | const integrationsGet = ( |
| 3182 | slug: IntegrationSlug, |
| 3183 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 3184 | Effect.gen(function* () { |
| 3185 | const staticIntegration = staticIntegrations().find( |
| 3186 | (integration) => integration.id === String(slug), |
| 3187 | ); |
| 3188 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 3189 | const row = yield* findIntegrationRow(slug); |
| 3190 | if (!row) return null; |
| 3191 | const authMethods = yield* describeAuthMethodsForRow(row); |
| 3192 | return rowToIntegration(row, authMethods, describeDisplayForRow(row)); |
| 3193 | }); |
| 3194 | |
| 3195 | const integrationsGetRecord = ( |
| 3196 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected