(
slug: IntegrationSlug,
)
| 3235 | }); |
| 3236 | |
| 3237 | const integrationsGet = ( |
| 3238 | slug: IntegrationSlug, |
| 3239 | ): Effect.Effect<Integration | null, StorageFailure> => |
| 3240 | Effect.gen(function* () { |
| 3241 | const staticIntegration = staticIntegrations().find( |
| 3242 | (integration) => integration.id === String(slug), |
| 3243 | ); |
| 3244 | if (staticIntegration) return staticDeclToIntegration(staticIntegration); |
| 3245 | const row = yield* findIntegrationRow(slug); |
| 3246 | if (!row) return null; |
| 3247 | const authMethods = yield* describeAuthMethodsForRow(row); |
| 3248 | return rowToIntegration(row, authMethods, describeDisplayForRow(row)); |
| 3249 | }); |
| 3250 | |
| 3251 | const integrationsGetRecord = ( |
| 3252 | slug: IntegrationSlug, |
nothing calls this directly
no test coverage detected